Subject: pkg/11024: Added USE_PERL5_CURRENT variable to bsd.pkg.mk to use perl5-current
To: None <gnats-bugs@gnats.netbsd.org>
From: None <willem@brwn.org>
List: netbsd-bugs
Date: 09/14/2000 22:58:17
>Number: 11024
>Category: pkg
>Synopsis: Added USE_PERL5_CURRENT variable to bsd.pkg.mk to use perl5-current
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Sep 14 22:59:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Willem Brown
>Release: 1.4.3_ALPHA
>Organization:
>Environment:
NetBSD perch 1.4.3_ALPHA NetBSD 1.4.3_ALPHA (GENERIC) #0: Thu Sep 14 14:31:35 SAST 2000 root@segue:/opt/relsrc/sys/arch/i386/compile/GENERIC i386
>Description:
Patched usr/pkgsrc/mk/bsd.pkg.mk to allow the use of perl5-current
instead of perl5 when building a package.
By specifying USE_PERL5_CURRENT on the command line or in the make file
the build process will set the dependency to perl5-current instead of
perl5
>How-To-Repeat:
N/A
>Fix:
The patch agains /usr/pkgsrc/mk/bsd.pkg.mk
# diff -uN mk/bsd.pkg.mk.orig mk/bsd.pkg.mk
--- mk/bsd.pkg.mk.orig Fri Sep 15 07:25:46 2000
+++ mk/bsd.pkg.mk Fri Sep 15 07:29:19 2000
@@ -133,7 +133,11 @@
BUILD_DEFS+= KERBEROS
.endif
-.if defined(USE_PERL5)
+.if defined(USE_PERL5_CURRENT)
+DEPENDS+= perl-*:../../lang/perl5-current
+.endif
+
+.if defined(USE_PERL5) && !defined(USE_PERL5_CURRENT)
DEPENDS+= perl-*:../../lang/perl5
.endif
>Release-Note:
>Audit-Trail:
>Unformatted: