-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
brew deps --os linux
does not report Linux dependencies on macOS ARM
#19021
Comments
Issue is JSON API specific as variations are recorded based on os/arch combination: ❯ curl -sL https://formulae.brew.sh/api/formula/[email protected] | jq .variations
{
"x86_64_linux": {
"dependencies": [
"mpdecimal",
"openssl@3",
"sqlite",
"xz",
"berkeley-db@5",
"libnsl",
"libtirpc"
]
}
} If run on tap, then behavior is as expected: ❯ HOMEBREW_NO_INSTALL_FROM_API=1 brew deps --os linux [email protected]
berkeley-db@5
bzip2
ca-certificates
expat
krb5
libedit
libffi
libnsl
libtirpc
libxcrypt
mpdecimal
ncurses
openssl@3
readline
sqlite
unzip
xz
zlib |
IIRC, we only currently support x86_64 on Linux, right? If that's the case, maybe we could just assume that when the os is Linux and the arch is not provided that it should be x86_64. |
It's unsupported but should still work under at least This is really a API-specific issue because variations don't model the generic case very well unlike the equivalent Ruby DSLs. So I guess you could force the arch to be x86_64 if under API mode. Bit of a hack. |
Are there any plans to add arm64 Linux to the API at some point? If not, I think that the hack you mentioned above might be worth it since that seems to be the expected behavior. |
I see some more work being done related to arm64 on Linux so I don't think automatically forcing the arch to be |
Maybe eventually, but it's hard to say when that will happen. It depends largely on how hard it will be to bottle most existing formulae in Homebrew/core. It could be easy, but it could also be a lot of work. |
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
List all Linux dependencies for a formula, so I could install on a different machine to create a bottle.
What happened (include all command output)?
What did you expect to happen?
The 3
on_linux
dependencies to be included in the output. I assume leaving--arch
blank means it's using--arch arm
on my M1 Mac, but these dependencies are not architecture-dependent on Linux.per https://github.com/Homebrew/homebrew-core/blob/3f636c3ff7244707e4c13a613f672aaee6cb8582/Formula/p/python%403.12.rb#L41C1-L45C6
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: