4.x Perl with customized $(PREFIX)
Gerald Pfeifer
gerald at pfeifer.com
Tue Oct 7 14:34:22 PDT 2003
This is from ports/56403: update port: mail/grepmail
How should we (I) handle this? Install the update nevertheless, or
ask for/hack up a port local fix?
Gerald
---------- Forwarded message ----------
From: Yen-Ming Lee <leeym at FreeBSD.org>
To: freebsd-gnats-submit at FreeBSD.org
That problem only occurs in 4.x (perl-5.00503) with customized $(PREFIX).
When configuring grepmail with customized $(PREFIX), the ExtUtils::MakeMaker
of perl-5.00503 will discard the $(PREFIX) and generate these two lines:
INSTALLSITELIB = /usr/local/lib/perl5/site_perl/5.005
INSTALLSITEARCH = /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
while ExtUtils::MakeMaker of perl-5.6.1 will still respect $(PREFIX):
INSTALLSITELIB = $(PREFIX)/lib/perl5/site_perl/5.6.1
INSTALLSITEARCH = $(PREFIX)/lib/perl5/site_perl/5.6.1/mach
It's a general case (for perl-5.00503), therefore I prefer *NOT* to fix it
within the port by using some quick-and-dirty hack, such as
post-configure:
${PERL} -pi -e 's,/usr/local,${PREFIX},g' ${WRKSRC}/Makefile
regards,
--
Yen-Ming Lee [§õ«Û©ú] KeyID: 0x5EB52E51 : www.leeym.com : Taipei, Taiwan
More information about the freebsd-ports
mailing list