Repository navigation
build: Drop the use of patchelf(1) - #942
Conversation
The subsequent commit will further bump the minimum Meson version to 0.58.0. This will make it easier to read. containers#942
ffb8270 to
f8629dc
Compare
|
Build failed.
|
|
recheck |
|
Build failed.
|
The subsequent commit will further bump the minimum Meson version to 0.58.0. This will make it easier to read. containers#942
|
We have a bootstrapping problem here. The build fails because |
Some downstream distributors like RHEL don't have patchelf(1). Relying on patchelf(1) during the build will make it difficult for such downstreams to distribute Toolbox. containers#942
f8629dc to
4f27ef0
Compare
|
Build failed.
|
Turns out that the linker flag is We still need to double-check if the path to the dynamic linker is specified correctly for each architecture. |
Some downstream distributors like RHEL don't have patchelf(1). Relying on patchelf(1) during the build will make it difficult for such downstreams to distribute Toolbox. Fortunately, the path of the dynamic linker (ie., PT_INTERP) is hardcoded in the ABI specification of each architecture [1]. This means that Toolbox's build system can keep it's own architecture to dynamic linker mapping, and specify it during the build through the GNU ld linker's --dynamic-linker flag, as opposed to using a tool like patchelf(1) to change the path of the dynamic linker in the built binary to the one inside /run/host. Currently, the list of architectures covers the ones that Fedora builds for. [1] https://sourceware.org/glibc/wiki/ABIList containers#942
4f27ef0 to
8dd7ee4
Compare
|
Build succeeded.
|
But for the final binary to be operational the |
Yes.
I haven't looked at #840 - we'll see when we get to that. Currently, we urgently need to roll a release, and we can't do that as long as we require |
Some downstream distributors like RHEL don't have patchelf(1). Relying
on patchelf(1) during the build will make it difficult for such
downstreams to distribute Toolbox.
Fortunately, the path of the dynamic linker (ie., PT_INTERP) is
hardcoded in the ABI specification of each architecture [1]. This means
that Toolbox's build system can keep it's own architecture to dynamic
linker mapping, and specify it during the build through the GNU ld
linker's --dynamic-linker flag, as opposed to using a tool like
patchelf(1) to change the path of the dynamic linker in the built
binary to the one inside /run/host. Currently, the list of
architectures covers the ones that Fedora builds for.
[1] https://sourceware.org/glibc/wiki/ABIList