Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 672050

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 packagesAssignee: Portage team <dev-portage>
Severity: normal CC: oli.huber, slyfox, toolchain
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---

Description Guilherme Amadio gentoo-dev 2018-11-27 10:48:04 UTC
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/
>>> 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/ line 54: canonicalize: command not found
/cvmfs/ line 54: canonicalize: command not found
 * QA Notice: the following files use invalid (possible non-prefixed) shebangs:
 *   cvmfs/ (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:
 *, line 503:  Called install_qa_check
 *, 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/'
 * S: '/var/cache/portage/app-misc/pax-utils-1.2.3-r3/work/pax-utils-1.2.3'
!!! post install failed; exiting.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-27 22:47:36 UTC
I think portage lost canonicalize() by accident at:
Comment 2 Guilherme Amadio gentoo-dev 2019-01-23 08:47:04 UTC
This is not a problem anymore with Portage 2.3.58.