Gentoo Archives: gentoo-dev

From: James Le Cuirot <chewi@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 2/2] perl-module.class: Enable EAPI=7 support
Date: Wed, 14 Aug 2019 09:17:19
In Reply to: Re: [gentoo-dev] [PATCH 2/2] perl-module.class: Enable EAPI=7 support by Kent Fredric
On Wed, 14 Aug 2019 11:42:16 +1200
Kent Fredric <kentnl@g.o> wrote:

> On Tue, 13 Aug 2019 20:39:01 +0100 > James Le Cuirot <chewi@g.o> wrote: > > > Unfortunately there's currently no way to say that the versions of a > > package across BDEPEND, DEPEND, and RDEPEND must be (roughly?) equal so > > there's nothing to stop an ancient Perl in / building a module for a > > newer Perl in ROOT but that's a problem that goes far beyond Perl. > > Cross-compiling Perl modules is still a bit of a car crash anyway. > > I'd imagine that for CC, you'd need all perl modules installed to > BDEPEND _and_ DEPEND _AND_ RDEPEND, > > Because the configure stage runs Makefile.PL on the host perl, and it > checks the existence of all "runtime" and "compile time" dependencies > itself, and it does this by *loading* them into the host perl. > > Failure to load them on the host perl produces lots of warnings in the > best of cases, and errors in the worst of cases.
Yes, I thought that was probably the case. Python is more forgiving in this regard. When trying to solve this problem in cross-boss, I found that Makefile-based modules would usually build if you ran Perl through QEMU during src_configure and ran Make with some tweaked variables during src_compile and src_install but this is extremely hacky. -- James Le Cuirot (chewi) Gentoo Linux Developer