Subject: pkg/24042: Incorrect path to perl binary in pkgtools/pkglint
To: None <gnats-bugs@gnats.NetBSD.org>
From: Min Sik Kim <minskim@bawi.org>
List: netbsd-bugs
Date: 01/10/2004 16:28:36
>Number: 24042
>Category: pkg
>Synopsis: Incorrect path to perl binary in pkgtools/pkglint
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 10 22:29:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Min Sik Kim
>Release: NetBSD 1.6ZG
>Organization:
>Environment:
>Description:
The perl binary is not available at ${PREFIX}/bin/perl for pkgviews
packages. Use ${PERL5} instead.
>How-To-Repeat:
>Fix:
Apply the following patch and bump the version number.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkglint/Makefile,v
retrieving revision 1.174
diff -u -r1.174 Makefile
--- Makefile 2004/01/05 11:32:40 1.174
+++ Makefile 2004/01/10 19:08:59
@@ -49,6 +49,7 @@
-e 's|@PORTSDIR@|${_PKGSRCDIR}|g' \
-e 's|@DISTVER@|${DISTVER}|g' \
-e 's|@MAKE@|${MAKE}|g' \
+ -e 's|@PERL@|${PERL5}|g' \
< ${WRKSRC}/src/${FILE}.pl \
> ${WRKSRC}/${FILE}
.endfor
Index: files/lintpkgsrc.pl
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkglint/files/lintpkgsrc.pl,v
retrieving revision 1.86
diff -u -r1.86 lintpkgsrc.pl
--- files/lintpkgsrc.pl 2003/10/11 08:03:40 1.86
+++ files/lintpkgsrc.pl 2004/01/10 19:09:00
@@ -1,4 +1,4 @@
-#!@PREFIX@/bin/perl
+#!@PERL@
# $NetBSD: lintpkgsrc.pl,v 1.86 2003/10/11 08:03:40 wiz Exp $
Index: files/pkglint.pl
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkglint/files/pkglint.pl,v
retrieving revision 1.93
diff -u -r1.93 pkglint.pl
--- files/pkglint.pl 2003/12/24 09:54:39 1.93
+++ files/pkglint.pl 2004/01/10 19:09:01
@@ -1,4 +1,4 @@
-#!@PREFIX@/bin/perl
+#!@PERL@
#
# pkglint - lint for package directory
#
Index: files/plist-clash.pl
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkglint/files/plist-clash.pl,v
retrieving revision 1.1
diff -u -r1.1 plist-clash.pl
--- files/plist-clash.pl 1998/08/07 22:13:44 1.1
+++ files/plist-clash.pl 2004/01/10 19:09:01
@@ -1,4 +1,4 @@
-#!@PREFIX@/bin/perl
+#!@PERL@
#
# $NetBSD: plist-clash.pl,v 1.1 1998/08/07 22:13:44 tsarna Exp $
#
>Release-Note:
>Audit-Trail:
>Unformatted:
Environment:
System: NetBSD sulley.infnis.com 1.6ZG NetBSD 1.6ZG (SULLEY) #1: Tue Dec 16 01:53:13 CST 2003 root@sulley.infnis.com:/usr/obj/sys/arch/i386/compile/SULLEY i386
Architecture: i386
Machine: i386