Gentoo Archives: gentoo-dev

From: Michael Cummings <mcummings@g.o>
To: gentoo-dev@g.o, gentoo-core@g.o
Subject: Re: [gentoo-dev] IF YOUR EBUILD USES PERL, PLEASE READ
Date: Fri, 13 Sep 2002 11:03:51
Message-Id: 20020913160411.GA32657@datanode.net
In Reply to: RE: [gentoo-dev] IF YOUR EBUILD USES PERL, PLEASE READ by David Wilde
1 I have both a fix and a bug report for imagemagick :) (actually in
2 that order too) Missed that fix when I did the other updates, will be
3 up when I get home tonight.
4
5 On Fri, Sep 13, 2002 at 11:53:52AM -0400, David Wilde wrote:
6 > Not sure if this is way OT, but I'm trying to emerge koffice-1.2_rc1.ebuild
7 > right now and I've been getting access violations building ImageMagick. It
8 > started with an access denied to
9 > /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Image then Image/Magick then
10 > ../Image and ../Image/Magick. I created those directories and now am
11 > getting this:
12 >
13 > ----------------------------- ACCESS VIOLATION SUMMARY
14 > ------------------------------------------------------
15 > LOG FILE = "/tmp/sandbox-imagemagick-5.4.7-2899.log"
16 >
17 > open_wr:
18 > /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Image/Magick/Magick.so
19 > chmod:
20 > /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Image/Magick/Magick.so
21 > open_wr:
22 > /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Image/Magick/Magick.bs
23 > chmod:
24 > /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Image/Magick/Magick.bs
25 > open_wr:
26 > /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Image/Magick/autosplit.ix
27 > chmod:
28 > /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Image/Magick/autosplit.ix
29 > open_wr:
30 > /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Image/Magick.pm
31 > chmod: /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Image/Magick.pm
32 > open_wr: /usr/man/man3pm/Image::Magick.3pm
33 > chmod: /usr/man/man3pm/Image::Magick.3pm
34 > open_wr:
35 > /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Image/Magick/.packlist
36 > ----------------------------------------------------------------------------
37 > ---------------------------------
38 >
39 > Not sure if this has anything to do, but I know that ImageMagick uses the
40 > MakeFile.PL for PerlMagick, and that looks like what is going on here. I
41 > would cc this to the ImageMagick package maintainer as well, but I don't
42 > know who that is. TIA
43 >
44 > Dave
45 >
46 > -----Original Message-----
47 > From: Michael Cummings [mailto:mcummings@g.o]
48 > Sent: Thursday, September 12, 2002 6:58 PM
49 > To: gentoo-dev@g.o; gentoo-core@g.o
50 > Subject: [gentoo-dev] IF YOUR EBUILD USES PERL, PLEASE READ
51 >
52 > Sorry for the caps, but sometimes it's the surest way to get attention.
53 >
54 > If your ebuild uses perl, there are some things you need to be aware of.
55 > Perl 5.6.1's default MakeMaker module, that portion that creates the make
56 > file from the perl Makefile.PL file, was flawed. Although it didn't violate
57 > the sandbox, it doesn't always honor your target build directories. It also
58 > failed to recognize build syntax that it was supposed to understand, such as
59 > not always honoring the PREFIX you passed it. Because the potential harm
60 > outweighed the mess I have now, this has been fixed for future/current
61 > users. THIS ONLY AFFECTS EBUILDS THAT USE PERL MAKEFILE, NOT EBUILDS THAT
62 > MERELY COMPILE AGAINST PERL'S LIBRARIES/BINARIES.
63 >
64 > The result? If your ebuild at any point generates a perl module as an add
65 > on, and you are manually passing it a "perl Makfile.PL" instead of
66 > incorporating the perl-modules eclass, it *will* break. These bugs are
67 > getting assigned to me right now, and I am fixing them, but I wanted to make
68 > you aware should you have a new release come up and you don't check to see
69 > if any changes were made to the ebuild since last time.
70 >
71 > If you need a piece-meal example of incorporating the perl-module.eclass, I
72 > would recommend looking at the (masked) cyrus-imapd ebuild. I have rewritten
73 > the portion that deals with the perl module and included the inherit
74 > perl-module line to make it work. It isn't pretty, but it is using the
75 > eclass fully.
76 >
77 > Please ping me if you have any questions, happy to answer, sometimes even
78 > coherenly. =:)
79 >
80 >
81 > Mike
82 >
83 > I would strongly encourage using the inherit perl-module if at all possible
84 > (and of course applicable).
85 > _______________________________________________
86 > gentoo-dev mailing list
87 > gentoo-dev@g.o
88 > http://lists.gentoo.org/mailman/listinfo/gentoo-dev