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
Augeas bottles for Big Sur are broken due to an outdated configure script #83407
Comments
You should create a pull request for Augeas and then also add a patch block to the homebrew formula. See https://docs.brew.sh/Updating-Software-in-Homebrew for more information on the latter |
Digging into this a bit more, the real root problem here is in GNU's libtool. The files it generates do not properly set compiler flags for macOS 11+. The issues for this in their bug tracker are https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44684 and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44605 which I just bumped. Homebrew is maintaining a patch for this at https://github.com/Homebrew/formula-patches/blob/50a00afbf4549fbc0ffd3855c884f7d045cf4f93/libtool/dynamic_lookup-11.patch. With this in mind, would you all accept a similar patch modifying Augeas' For what it's worth, I would expect other Homebrew formula using |
Any thoughts on the above proposal? A patch implementing this would look something like:
If a patch like this would be accepted, I'd implement the TODO and am happy to put the patch outside of the formula if that is desired. |
Please suggest formula changes as a pull request. It's really much easier for us to judge the effects that way. |
PR is #84083. |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputbrew 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)?
I work at EFF on Certbot which is packaged in Homebrew. Due to this problem in
augeas
which is one of Certbot's dependencies, many of our users are reporting problems using Certbot on Big Sur. This is my attempt to report the root problem and I apologize that these instructions are somewhat convoluted.What happened (include all command output)?
To reproduce the problem, you can run:
where
break.py
is:The output of the last command is:
What did you expect to happen?
python break.py
in the above section should just outputNone
. This is the behavior you should see on versions of macOS other than Big Sur or if you installaugeas
on Big Sur usingbrew install augeas --head
. I've reproduced this problem both on Intel and M1 Macs running Big Sur. The error you see in my output above is Augeas failing to parse its own lenses.I believe the root cause here is that the configure script in the latest Augeas release doesn't properly handle the macOS version number change from 10.x to 11. I reported this problem upstream a month ago at hercules-team/augeas#729 and received no response. At least until Augeas does another release, I'd love it if Homebrew would patch its copy of the configure script to properly set the compiler flags to avoid this problem and to fix the issue in the Augeas bottles for Big Sur.
Step-by-step reproduction instructions (by running
brew
commands)brew install augeas brew install python # Then run the commands in the "What happened" section
The text was updated successfully, but these errors were encountered: