Date: Thu, 27 May 2004 21:02:08 +0200 (CEST) From: Lars Thegler <lth@dask.thegler.dk> To: FreeBSD-gnats-submit@FreeBSD.org Cc: mat@FreeBSD.org Subject: ports/67264: [PATCH] Mk/bsd.port.mk: Perl Makefile honour ${PREFIX} under 5.005_03 Message-ID: <20040527190208.8DC1F3EFD@dask.thegler.dk> Resent-Message-ID: <200405271910.i4RJAAEr012334@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040527190208.8DC1F3EFD>