Gentoo Archives: gentoo-dev

From: Kent Fredric <kentnl@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 2/2] perl-module.class: Enable EAPI=7 support
Date: Tue, 13 Aug 2019 23:42:44
Message-Id: 20190814114216.7b976191@katipo2.lan
In Reply to: Re: [gentoo-dev] [PATCH 2/2] perl-module.class: Enable EAPI=7 support by James Le Cuirot
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.

Replies