Summary: | sys-apps/sandbox-2.20 fails to install on prefix (sys-devel/binutils-config[-native-symlinks], tool-prefixed readelf) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexey <alexey+gentoo> |
Component: | Current packages | Assignee: | Sandbox Maintainers <sandbox> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexey+gentoo, prefix |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
build.log config.log sandbox-9999-0001-configure.ac-use-tool-prefixed-READELF.patch sandbox-2.20-readelf.patch |
Created attachment 671689 [details]
build.log
Created attachment 671692 [details]
config.log
The script tries to detect libc.so.6 by inspecting NEEDED tag value in a sample executable (should be "NEEDED: libc.so.6" or similar). configure.ac snippet is: https://gitweb.gentoo.org/proj/sandbox.git/tree/configure.ac#n372 """ AC_MSG_CHECKING([libc version]) dnl the sed script at the end here looks funny but it's ok ... echo "int main(void) { return 0; }" > libctest.c $CC $CFLAGS $CPPFLAGS $LDFLAGS -o libctest libctest.c LIBC_VERSION=$( $READELF -d libctest | \ $EGREP 'NEEDED.* \@<:@libc\.so' | \ $AWK '{print $NF}' | [sed -e 's:\[::' -e 's:\]::'] ) rm -f libctest* if test "$LIBC_VERSION"x = x ; then AC_MSG_ERROR([Unable to determine LIBC VERSION]) fi """ config.log says it failed to find readelf on your system: "READELF='false'". Do you know why? binutils and binutils-config are supposed to provide 'readelf' and/or 'x86_64-pc-linux-gnu-readelf' depending on USE=flags. Created attachment 671734 [details, diff]
sandbox-9999-0001-configure.ac-use-tool-prefixed-READELF.patch
If you happen to use USE=-native-symlinks for sys-devel/binutils-config then the bug is in missing tool-prefixed search. sandbox-9999-0001-configure.ac-use-tool-prefixed-READELF.patch should fix it for live ebuild. I'll attach a similar patch for current release.
Created attachment 671737 [details, diff]
sandbox-2.20-readelf.patch
sandbox-2.20-readelf.patch is the same as for live ebuild with added regenerated ./configure. Should be appliable as is by placing patch to $EPREFIX/etc/portage/patches/sys-apps/sandbox/.
> If you happen to use USE=-native-symlinks for sys-devel/binutils-config then
the bug is in missing tool-prefixed search.
Ah, yes, I do. I should have mentioned that, sorry. The patch fixes it, thanks
Fixed in 2.21 |
Created attachment 671686 [details] emerge --info Even though I use FEATURES="-usersandbox -sandbox" already. checking libc path... /home/user/gentoo/lib64/libc.so.6 checking libc version... configure: error: Unable to determine LIBC VERSION