From owner-freebsd-ports Wed Oct 31 10:30:15 2001 Delivered-To: freebsd-ports@freebsd.org Received: from bobo.thehutt.org (cj205544-a.alex1.va.home.com [67.160.12.87]) by hub.freebsd.org (Postfix) with ESMTP id 77E3A37B403; Wed, 31 Oct 2001 10:30:06 -0800 (PST) Received: from jerry by bobo.thehutt.org with local (Exim 3.33 #1) id 15z07c-0001dI-00; Wed, 31 Oct 2001 13:29:52 -0500 Date: Wed, 31 Oct 2001 13:29:52 -0500 From: Jerry A! To: freebsd-ports@freebsd.org, freebsd-stable@freebsd.org Subject: RFC: Perl5/Ports Modification Message-ID: <20011031132952.A6273@bobo.thehutt.org> Reply-To: jerry@thehutt.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: Broken Toys Unlimited Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I maintain a bunch of -stable boxes that have a need for perl 5.6.1 and various modules compiled against that version. As anyone running -stable knows, it can be a real hassle to maintain 5.6.1 in addition to ensuring that modules use the ports and not userland (5.0053) version of perl. I've come up with the following patches than I'm hoping people could test and comment on. Hopefully, if there aren't any issues they could be rolled into the ports system. Apply the patches and define "USE_PORTS_PERL= true" in /etc/make.conf. I've been using these patches for a while and have not had any problems. Also, a big shout-out to Knu and his portinstall package. It's recursive bulid/install features have made all this absolutely easy to test. --Jerry --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="use_ports_perl::perl5.patch" --- 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 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="use_ports_perl::mk.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 -- --u3/rZRmxL6MmkK24-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message