From owner-freebsd-stable Sun Nov 4 20:11:26 2001 Delivered-To: freebsd-stable@freebsd.org Received: from thehutt.org (cj205544-a.alex1.va.home.com [67.160.12.87]) by hub.freebsd.org (Postfix) with ESMTP id 1EEAC37B405 for ; Sun, 4 Nov 2001 20:11:23 -0800 (PST) Received: from jerry by nomad.thehutt.org with local (Exim 3.33 #1) id 160b5f-0001E0-00; Sun, 04 Nov 2001 23:10:27 -0500 Date: Sun, 4 Nov 2001 23:10:27 -0500 From: Jerry A! To: Ken Bolingbroke Cc: Phillip Neumann , freebsd-stable@FreeBSD.ORG Subject: Re: perl 5.6.1 Message-ID: <20011104231027.A3151@nomad.thehutt.org> Reply-To: jerry@thehutt.org References: <1004898373.2334.3.camel@demonio> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from hacker@bolingbroke.com on Sun, Nov 04, 2001 at 07:47:54PM -0800 Organization: Broken Toys Unlimited Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --/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 # 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