Created attachment 521824 [details] emerge --info I'm using a prefix environment (RAP), but that seems to be not important in this case. If I try to install a Perl module package (eg. dev-perl/Clone), it complains that local::lib settings are set (via environment variables), which would prevent Portage to install the packages to the system directories: * perl-module.eclass: Suspicious environment values found. * PERL_MM_OPT="INSTALL_BASE=/home/evidgbo/perl5" * PERL5LIB="/home/evidgbo/perl5/lib/perl5:/home/evidgbo/perl5/lib/perl5:/home/evidgbo/perl5/lib/perl5:" * PERL_MB_OPT="--install_base /home/evidgbo/perl5" * Your environment settings may lead to undefined behavior and/or build failures. * ERROR: dev-perl/Clone-0.390.0::gentoo failed (configure phase): * Please fix your environment ( ~/.bashrc, package.env, ... ), see above for details. In case of media-gfx/imagemagick, this check is not done, so it (would) install its Perl modules to local path instead of the system's path. This behaviour has been captured in my prefixed Gentoo as: * QA Notice: the following files are outside of the prefix: * /home/evidgbo/perl5 * /home/evidgbo/perl5/man * /home/evidgbo/perl5/man/man3 * /home/evidgbo/perl5/man/man3/Image::Magick::Q16.3pm * /home/evidgbo/perl5/man/man3/Image::Magick.3pm * /home/evidgbo/perl5/lib * /home/evidgbo/perl5/lib/perl5 * /home/evidgbo/perl5/lib/perl5/x86_64-linux-thread-multi * /home/evidgbo/perl5/lib/perl5/x86_64-linux-thread-multi/Image * /home/evidgbo/perl5/lib/perl5/x86_64-linux-thread-multi/Image/Magick * /home/evidgbo/perl5/lib/perl5/x86_64-linux-thread-multi/Image/Magick/Q16.pm * /home/evidgbo/perl5/lib/perl5/x86_64-linux-thread-multi/Image/Magick.pm * /home/evidgbo/perl5/lib/perl5/x86_64-linux-thread-multi/auto * /home/evidgbo/perl5/lib/perl5/x86_64-linux-thread-multi/auto/Image * /home/evidgbo/perl5/lib/perl5/x86_64-linux-thread-multi/auto/Image/Magick * /home/evidgbo/perl5/lib/perl5/x86_64-linux-thread-multi/auto/Image/Magick/.packlist * /home/evidgbo/perl5/lib/perl5/x86_64-linux-thread-multi/auto/Image/Magick/Q16 * /home/evidgbo/perl5/lib/perl5/x86_64-linux-thread-multi/auto/Image/Magick/Q16/Q16.so * /home/evidgbo/perl5/lib/perl5/x86_64-linux-thread-multi/auto/Image/Magick/Q16/autosplit.ix * ERROR: media-gfx/imagemagick-7.0.7.21::gentoo failed: * Aborting due to QA concerns: there are files installed outside the prefix In my opinion Perl modules bundled with ImageMagick should execute the same check as simple Perl packages, and prevent installation of the modules to path set up by local::lib. Of course temporarily disabling local::lib in the shell that calls emerge helped to install ImageMagick modules to their proper place.
@graphics: Should be simple to implement: inherit perl-functions .... src_configure() { ... use perl && perl_check_env ... }
I can confirm that the suggested fix works as expected.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fee6befae7ab3b05a905830fc098371943fe698 commit 4fee6befae7ab3b05a905830fc098371943fe698 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2018-09-09 00:10:04 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2018-09-09 00:16:13 +0000 media-gfx/imagemagick: add check ENV safeguard for USE=perl Bug: https://bugs.gentoo.org/649342 Package-Manager: Portage-2.3.49, Repoman-2.3.10 media-gfx/imagemagick/imagemagick-9999.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Will appear in regular versions with the next bump.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af3be064e336c35b4d63fad1b268fa3447b65e52 commit af3be064e336c35b4d63fad1b268fa3447b65e52 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2018-09-30 20:40:53 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2018-09-30 20:44:39 +0000 media-gfx/imagemagick: add check ENV safeguard for USE=perl Closes: https://bugs.gentoo.org/649342 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> Package-Manager: Portage-2.3.50, Repoman-2.3.11 media-gfx/imagemagick/imagemagick-6.9.10.12.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)