bug #645804 Reproducible: Always
like bug #645804. I'm trying install a fresh prefix bootstrap. meet this error on stage3. I checked Errno_pm.PL, found the search path root at line 132 was: ${EPRIFIX}/tmp/ It should been modified by these lines in perl-5.26.2.ebuild: # Use errno.h from prefix rather than from host system, bug #645804 if use prefix && ! use prefix-guest; then sed -i "/my..sysroot/s:'':'${EPREFIX}':" ext/Errno/Errno_pm.PL || die fi I found errno.h in ${EPREFIX}/usr/include/. but ${EPREFIX}/tmp/usr/include/ do not contain errno.h. seem bootstrap-prefix script change the environment variable ${EPREFIX} to ${EPREFIX}/tmp cause this?
I think we should turn this into: if use prefix && [[ -e ${EPREFIX}/usr/include/errno.h ]] ; then sed -i .... || die fi Do you have the ability to test this?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e39a7b89df99dce85a08af276ec31429b2be786 commit 2e39a7b89df99dce85a08af276ec31429b2be786 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2018-12-06 10:49:05 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2018-12-06 10:49:05 +0000 dev-lang/perl: fix fix for #645804 during bootstrap Closes: https://bugs.gentoo.org/670836 Signed-off-by: Fabian Groffen <grobian@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 dev-lang/perl/perl-5.26.2.ebuild | 4 ++-- dev-lang/perl/perl-5.26.9999.ebuild | 4 ++-- dev-lang/perl/perl-5.28.0.ebuild | 4 ++-- dev-lang/perl/perl-5.28.9999.ebuild | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)
I think this is rather a bug of the bootstrap process than of the perl ebuild.
During stage3, EPREFIX should always be ${EPREFIX}, not ${EPREFIX}/tmp.
It was bootstrapped into ${EPREFIX}/tmp because of EAPI-7 installing into BROOT during cross-eprefix.
Well, the fix at least does not harm.