-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libxmlsec1
formula can't seem to pin or roll back to 1.2.37
#135418
Comments
There's already a comment in the issue that you link explaining how to do this: xmlsec/python-xmlsec#254 (comment) If you encounter errors doing
and then try
when you're done. |
Thanks for the quick response @carlocab but I'm not sure how to extract a specific revision of the formula by synthesizing your advice and that of the comment you've linked. I package it up in a bash script and ran it, here's the script and the failure log. I'm not quite sure what I've missed here — seems like the I'm now digging into the source for my new extractor script as written> cat ./install-libxmlsec-1.2.37.bash
#!/bin/bash
set -eo pipefail
set -vx
# create a local tap for specific versions of formulas
brew tap-new $USER/local
# download the desired version and extract it as a local formula
export HOMEBREW_NO_INSTALL_FROM_API=1
brew tap homebrew/core
brew extract --version=1.2.37 libxmlsec1 $USER/local
brew install $USER/local/libxmlsec@1.2.37
unset HOMEBREW_NO_INSTALL_FROM_API
brew untap homebrew/core log of running my script and not quite achieving the desired outcome
|
Ah, your script has a typo:
should be
That is, you dropped the |
That definitely helped, thank you! Unfortunately the install still ultimately fails with a "You must install Xcode.app" error as there's no Looks like omitting bottles when cloning a Formula is intended behavior for |
Yes, you'll need to build from source to install older versions. For You can try modifying your local formula to get rid of the Xcode requirement, but you might find your build failing as a result. |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputbrew config
brew doctor
Verification
brew doctor
output" saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
The April 1.3 release of
libxmlsec1
breaks some XML/SAML functionality baked intopython-xmlsec
(see xmlsec/python-xmlsec#254). I'm not a Homebrew wizard but folks have been struggling to roll back or otherwise pin to1.2.37
.Despite a few readings of Homebrew's Formula version schema guidance docs since April I'm not quite sure if this is something that can be easily resolved with a change to the currently published
libxmlsec1
formula.The last commit to the
libxmlsec1
formula before 1.3 rolled out is here: https://raw.githubusercontent.com/Homebrew/homebrew-core/7f35e6ede954326a10949891af2dba47bbe1fc17/Formula/libxmlsec1.rbI've tried a few ways to use
brew extract
to make my own copy or maybe even fork the last-known-goodv1.2.37
formula over togithub.com/dpritchett
but so far I'm not having much luck.FWIW there are a good number of other folks experiencing this issue and not just me, so a
libxmlsec1@1.2
formula might be a decent fix for them. I'm getting by with my lame hack of just cloning the aforementioned1.2.37
revision of the formula and runningbrew install --formula /tmp/libxmlsec1.rb
What happened (include all command output)?
Not much, there doesn't seem to be a way to pull that specific revision of the formula short of maybe creating a fork of the formula.
What did you expect to happen?
Ideally there'd be a reliable one-line command to install the latest
libxmlsec1
v1.2.x
.Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: