Summary: | sys-apps/portage-2.3.52-r1: fails to emerge app-misc/pax-utils on prefix (broken shebang for lddtree) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Guilherme Amadio <amadio> |
Component: | Current packages | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | oli.huber, slyfox, toolchain |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=670484 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
I think portage lost canonicalize() by accident at: https://github.com/gentoo/portage/commit/aa0a94198794f8ee8eedad26251b02f7b01dce17#diff-cf86ce58971ab048a75e43d3ce7b9a05L48 This is not a problem anymore with Portage 2.3.58. |
Last lines of the build log for pax-utils are shown below. Note that python_fix_shebang is called, but shebang somehow is not fixed, but remains /usr/bin/python3.6 in the script. The only change from -r2 to -r3 is a patch for Python 3.7, and -r2 worked before. This points to a problem in portage and indeed, with portage 2.3.49 it emerges fine, but with latest portage emerging fails with the error below. make[2]: Leaving directory '/var/cache/portage/app-misc/pax-utils-1.2.3-r3/work/pax-utils-1.2.3' make[1]: Leaving directory '/var/cache/portage/app-misc/pax-utils-1.2.3-r3/work/pax-utils-1.2.3' * Fixing shebang in /cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64//usr/bin/lddtree. >>> Completed installing pax-utils-1.2.3-r3 into /var/cache/portage/app-misc/pax-utils-1.2.3-r3/image/ * Final size of build directory: 8308 KiB (8.1 MiB) * Final size of installed tree: 384 KiB /cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/portage/python3.6/install-qa-check.d/05prefix: line 54: canonicalize: command not found /cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/portage/python3.6/install-qa-check.d/05prefix: line 54: canonicalize: command not found * QA Notice: the following files use invalid (possible non-prefixed) shebangs: * cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/bin/lddtree:/usr/bin/python3.6 (explicit EPREFIX but target not found) * ERROR: app-misc/pax-utils-1.2.3-r3::gentoo failed: * Aborting due to QA concerns: invalid shebangs found * * Call stack: * misc-functions.sh, line 503: Called install_qa_check * misc-functions.sh, line 122: Called source 'install_symlink_html_docs' * 05prefix, line 114: Called install_qa_check_prefix * 05prefix, line 110: Called die * The specific snippet of code: * die "Aborting due to QA concerns: invalid shebangs found" * * If you need support, post the output of `emerge --info '=app-misc/pax-utils-1.2.3-r3::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-misc/pax-utils-1.2.3-r3::gentoo'`. * The complete build log is located at '/var/cache/portage/app-misc/pax-utils-1.2.3-r3/temp/build.log'. * The ebuild environment file is located at '/var/cache/portage/app-misc/pax-utils-1.2.3-r3/temp/environment'. * Working directory: '/var/cache/portage/app-misc/pax-utils-1.2.3-r3/image/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64' * S: '/var/cache/portage/app-misc/pax-utils-1.2.3-r3/work/pax-utils-1.2.3' !!! post install failed; exiting.