Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649342 - media-gfx/imagemagick-7.0.7.21: attempts to honor local::lib settings for the Perl modules
Summary: media-gfx/imagemagick-7.0.7.21: attempts to honor local::lib settings for the...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-02 10:13 UTC by Gábor VIDA
Modified: 2018-09-30 20:44 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info.txt,5.82 KB, text/plain)
2018-03-02 10:13 UTC, Gábor VIDA
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gábor VIDA 2018-03-02 10:13:49 UTC
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.
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2018-03-02 20:25:26 UTC
@graphics: Should be simple to implement:


inherit perl-functions

.... 

src_configure() {
...
use perl && perl_check_env
...
}
Comment 2 Gábor VIDA 2018-04-24 15:11:24 UTC
I can confirm that the suggested fix works as expected.
Comment 3 Larry the Git Cow gentoo-dev 2018-09-09 00:16:26 UTC
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(-)
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-09 00:17:26 UTC
Will appear in regular versions with the next bump.
Comment 5 Larry the Git Cow gentoo-dev 2018-09-30 20:44:56 UTC
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(-)