Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Nov 2001 23:10:27 -0500
From:      Jerry A! <jerry@thehutt.org>
To:        Ken Bolingbroke <hacker@bolingbroke.com>
Cc:        Phillip Neumann <phillip@chile.com>, freebsd-stable@FreeBSD.ORG
Subject:   Re: perl 5.6.1
Message-ID:  <20011104231027.A3151@nomad.thehutt.org>
In-Reply-To: <Pine.BSF.4.21.0111041944070.60601-100000@fremont.bolingbroke.com>; from hacker@bolingbroke.com on Sun, Nov 04, 2001 at 07:47:54PM -0800
References:  <1004898373.2334.3.camel@demonio> <Pine.BSF.4.21.0111041944070.60601-100000@fremont.bolingbroke.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--/9DWx/yDrRhgMJTb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Sun, Nov 04, 2001 at 07:47:54PM -0800, Ken Bolingbroke wrote:
:
: I also had need of Perl 5.6.1 and my solution was to install the new Perl
: manually (ie; get the source and compile it yourself, rather than using
: the Ports Perl install), and when prompted, insert a custom path.  For
: example, I used /usr/local/perl/* for everything.  That way, all the
: system stuff still uses the old /usr/bin/perl, but I can make my scripts
: use /usr/local/perl/bin/perl, which might be ugly, but at least everything
: plays nice...

Here's a patch that I posted to the list last week.  All you need to do
is set "USE_PORTS_PERL= yes" in /etc/make.conf.  Apply the following
patch in /usr/ports to modify lang/perl5/Makefile and Mk/bsd.port.mk.
Then perl5 will build and any p5-modules will also use the ports version
of perl.

Please feel free to contact me if you have any questions or problems.

        --Jerry

--/9DWx/yDrRhgMJTb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="use_ports_perl.patch"

--- Mk/bsd.port.mk.orig	Tue Oct  9 03:37:34 2001
+++ Mk/bsd.port.mk	Wed Oct 31 13:15:31 2001
@@ -905,6 +905,17 @@
 .endif
 .endif
 
+.if defined(USE_PORTS_PERL)
+PERL_VERSION=	5.6.1
+PERL_VER=		5.6.1
+PERL5=			${LOCALBASE}/bin/perl${PERL_VERSION}
+PERL=			${LOCALBASE}/bin/perl
+.if defined(USE_PERL5) || defined(PERL_CONFIGURE)
+BUILD_DEPENDS+=	perl${PERL_VERSION}:${PORTSDIR}/lang/perl5
+RUN_DEPENDS+=	perl${PERL_VERSION}:${PORTSDIR}/lang/perl5
+.endif
+.endif
+
 .if defined(USE_XLIB)
 .if ${XFREE86_VERSION} == 3
 # Don't try to build XFree86-3 even if ALWAYS_BUILD_DEPENDS is defined --

--- lang/perl5/Makefile.orig	Wed Oct 31 13:16:36 2001
+++ lang/perl5/Makefile	Wed Oct 31 13:20:20 2001
@@ -31,7 +31,7 @@
 .include <bsd.port.pre.mk>
 
 # If you know what you are doing, you may disable this!
-.if ${OSVERSION} > 300003
+.if ${OSVERSION} > 300003 && !defined(USE_PORTS_PERL)
 FORBIDDEN=	perl is in system
 .endif
 

--/9DWx/yDrRhgMJTb--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011104231027.A3151>