Gentoo Archives: gentoo-dev

From: Michael Cummings <mcummings@g.o>
To: gentoo-dev@g.o, gentoo-core@g.o
Subject: [gentoo-dev] IF YOUR EBUILD USES PERL, PLEASE READ
Date: Thu, 12 Sep 2002 20:57:36
Message-Id: 20020912215814.57804d12.mcummings@gentoo.org
1 Sorry for the caps, but sometimes it's the surest way to get attention.
2
3 If your ebuild uses perl, there are some things you need to be aware of. Perl 5.6.1's default MakeMaker module, that portion that creates the make file from the perl Makefile.PL file, was flawed. Although it didn't violate the sandbox, it doesn't always honor your target build directories. It also failed to recognize build syntax that it was supposed to understand, such as not always honoring the PREFIX you passed it. Because the potential harm outweighed the mess I have now, this has been fixed for future/current users. THIS ONLY AFFECTS EBUILDS THAT USE PERL MAKEFILE, NOT EBUILDS THAT MERELY COMPILE AGAINST PERL'S LIBRARIES/BINARIES.
4
5 The result? If your ebuild at any point generates a perl module as an add on, and you are manually passing it a "perl Makfile.PL" instead of incorporating the perl-modules eclass, it *will* break. These bugs are getting assigned to me right now, and I am fixing them, but I wanted to make you aware should you have a new release come up and you don't check to see if any changes were made to the ebuild since last time.
6
7 If you need a piece-meal example of incorporating the perl-module.eclass, I would recommend looking at the (masked) cyrus-imapd ebuild. I have rewritten the portion that deals with the perl module and included the inherit perl-module line to make it work. It isn't pretty, but it is using the eclass fully.
8
9 Please ping me if you have any questions, happy to answer, sometimes even coherenly. =:)
10
11
12 Mike
13
14 I would strongly encourage using the inherit perl-module if at all possible (and of course applicable).