On Wed, 14 Aug 2019 11:42:16 +1200
Kent Fredric <[email protected]> wrote:

> On Tue, 13 Aug 2019 20:39:01 +0100
> James Le Cuirot <[email protected]> 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

Attachment: pgppqvcDDOp1z.pgp
Description: OpenPGP digital signature

Reply via email to