-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
linuxbrew overrides some basic toolchain commands #110877
Comments
Please provide these. Your reproduction instructions only prove that brew is in path, which is expected. |
@SMillerDev tell me what exactly you want me to provide please, as a basic example, as binutils is being installed, ldd ia being installed too, as a result we have:
then if somebody wants to invoke
So, we can see that ls is linked with brew's libc, while in reality if we call system-provided ldd directly by invoking we see that it uses a system-provided libc:
Given the overall number of important toolchain binaries brew installs I think it might cause, say, people who compile their binaries with gcc and binutils some kind of headache due to being a bit unpredictable. (Actually it has already caused problems for us in the actions/runner-images repository). |
Related: #109998 We should just make |
Agreed. @carlocab I think this also relates to e.g. |
I think |
@danielnachun Thanks for the information ❤️. Yes, in that case, I think both should be keg-only. Users can manually
Handy 👍🏻 |
Except for the GCC library symlinks we still create in |
See discussion at Homebrew#110877.
@carlocab when can we expect a PR to be merged approximately? Do not think on me being pushy, just our workflows depend on it right now. |
@mikhailkoliada Can you clarify whether the issue is purely |
I'm planning to merge Homebrew/brew#13873 and #109998 today (after some testing). This will allow glibc and binutils to be keg-only, which will I probably do this weekend (along with a 3.6.2 tag) to allow some time for any critical issues to be reported.
|
@MikeMcQuaid gcc@11 is fine as it is versioned, glibc and bintils are culprits |
Could you elaborate on what the issue with |
I've released Homebrew 3.6.2 and related formula updates which hopefully address this. Let me know if there's any further issues. |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
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)?
calling some basic toolchain and glibc-provided commands with a default homebrew installation (locale, iconv, ar, as, ldd, etc)
What happened (include all command output)?
brew-owned commands supplied first as gcc@11 pulls binutils as well and brew installs non-diversified version of toolchain (unlike gcc). As by default the installation script adds brew first in $PATH, its commands has higher priority for any command call, that breaks lots of toolchain stuff due to inconsistency. Moving brew to the end of the $PATH also might cause troubles.
What did you expect to happen?
brew does not conflict with ubuntu-provided packages
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: