dev-lang/perl-5.22.3_rc4, which is currently the latest stable one, doesn't crosscompile – it fails in src_prepare phase. It's possible that it's because of wrong perl-cross release – perl-cross 1.1.1 doesn't support 5.22 at all. Reproducible: Always Actual Results: A snippet from build: sed: can't read cnf/diffs/perl5-5.22.3_rc4/makemaker-test.patch: No such file or directory * ERROR: dev-lang/perl-5.22.3_rc4::portage-stable failed (prepare phase): * (no error message) * * Call stack: * ebuild.sh, line 133: Called src_prepare * environment, line 2881: Called die * The specific snippet of code: * sed -i -e 's/(15 + $CLEANUP)/(13 + $CLEANUP)/' cnf/diffs/perl5-${PV}/makemaker-test.patch || die; *
Does flipping the variable CROSS_VER to 1.0.2 fix the problem? Its not clear from upstream notes which perl-cross'es work with 5.22.3
There is no perl-cross supporting 5.22.3, seems. 1.0.2 seems to be latest for 5.22.x, but it's for 5.22.1, it has a different directory layout and doesn't have makemaker-test.patch at all, so it's not certainly not so trivial as switching the versions.
Guess I might have to ping upstream here.
Should be fixed in 5.22.3 final with perl-cross 1.1.4 commit f7f55098218de72848fed8ab450b5d895efc02eb Author: Kent Fredric <kentnl@gentoo.org> Date: Wed Feb 22 05:56:13 2017 +1300 dev-lang/perl,virtual/perl-Module-CoreList: Bump to 5.22.3 Final - Fix bug with patching now-missing CPANPLUS code #608966 - Update cross-perl to 1.1.4 - Fix cross-compile bugs - Fix GCC6 + lto bugs #583532 - Backport fixes from Compress-Raw-Zlib 2.074 for zlib 1.2.9+ #606374 Bug: https://bugs.gentoo.org/608966 Bug: https://bugs.gentoo.org/583532 Bug: https://bugs.gentoo.org/606374