Skip to content

M2 bottle is not relocatable #178

@mahrud

Description

@mahrud

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions