Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608428 - dev-lang/perl-5.22.3_rc4 doesn't crosscompile
Summary: dev-lang/perl-5.22.3_rc4 doesn't crosscompile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL: https://github.com/arsv/perl-cross/is...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2017-02-06 13:19 UTC by Hasso Tepper
Modified: 2017-12-13 06:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hasso Tepper 2017-02-06 13:19:02 UTC
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;
 *
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-02-06 13:53:45 UTC
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
Comment 2 Hasso Tepper 2017-02-06 14:29:21 UTC
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.
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-02-07 08:12:15 UTC
Guess I might have to ping upstream here.
Comment 4 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-02-23 20:27:53 UTC
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