ports/67264: [PATCH] Mk/bsd.port.mk: Perl Makefile honour ${PREFIX} under 5.005_03
Lars Thegler
lth at dask.thegler.dk
Thu May 27 19:11:08 UTC 2004
>Number: 67264
>Category: ports
>Synopsis: [PATCH] Mk/bsd.port.mk: Perl Makefile honour ${PREFIX} under 5.005_03
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu May 27 12:10:10 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Lars Thegler
>Release: FreeBSD 4.10-BETA i386
>Organization:
>Environment:
System: FreeBSD dask.thegler.dk 4.10-BETA FreeBSD 4.10-BETA #3: Mon Apr 12 17:02:50 CEST 2004 root at dask.thegler.dk:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Extutils::MakeMaker as included with the 5.005_03 base system
perl of FreeBSD 4.x, does not properly honour a ${PREFIX} setting,
but sets /usr/local in 6 specific Makefile variables.
>How-To-Repeat:
With any p5- port, under perl 5.005_03:
# PREFIX=/tmp/foo make install
and watch as files are installed under /usr/local/... instead of /tmp/foo/...
>Fix:
Apply the following patch:
--- bsd.port.mk.patch begins here ---
--- /usr/ports/Mk/bsd.port.mk.orig Tue May 25 19:02:18 2004
+++ /usr/ports/Mk/bsd.port.mk Tue May 25 19:45:52 2004
@@ -3049,6 +3049,10 @@
.if !defined(PERL_MODBUILD)
@cd ${CONFIGURE_WRKSRC} && \
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile
+.if ${PERL_LEVEL} <= 500503
+ @cd ${CONFIGURE_WRKSRC} && \
+ ${PERL5} -pi -e 's/^(INSTALLSITELIB|INSTALLSITEARCH|SITELIBEXP|SITEARCHEXP|INSTALLMAN1DIR|INSTALLMAN3DIR) = \/usr\/local/$$1 = \$$(PREFIX)/' Makefile
+.endif
.endif
.endif
.if defined(USE_IMAKE)
--- bsd.port.mk.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list