Skip to content
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

M2 bottle is not relocatable #178

Open
mahrud opened this issue Mar 14, 2023 · 0 comments
Open

M2 bottle is not relocatable #178

mahrud opened this issue Mar 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mahrud
Copy link
Member

mahrud commented Mar 14, 2023

Currently bottles for M2 are not relocatable on x86_64_linux only because of the following offenses:

==> Detecting if macaulay2--1.21_2.x86_64_linux.bottle.tar.gz is relocatable...
Warning: String '/home/linuxbrew/.linuxbrew/opt' still exists in these files:
/home/linuxbrew/.linuxbrew/Cellar/macaulay2/1.21_2/bin/M2-binary
 --> match '/home/linuxbrew/.linuxbrew/opt/libatomic_ops/include' at offset 0xcaaa2cc
 --> match '/home/linuxbrew/.linuxbrew/opt/gmp/include' at offset 0xcaab4d3
 --> match '/home/linuxbrew/.linuxbrew/opt/mpfr/include' at offset 0xcaab4fe
 --> match '/home/linuxbrew/.linuxbrew/opt/mpfi/include' at offset 0xcaab52a
 --> match '/home/linuxbrew/.linuxbrew/opt/gdbm/include' at offset 0xcaabb7f
 --> match '/home/linuxbrew/.linuxbrew/opt/libffi/include' at offset 0xcab1e52

This might be fixed by stripping the binary (which might also explain why the size of the binary on linux is almost 2x as large as on macos).

The benefit of relocatable bottles is that brew would not rebuild from source in situations like this: #176

@mahrud mahrud added the enhancement New feature or request label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant