Subject: pkg/36898: security/uvscan variables substitutions fixes
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <njoly@pasteur.fr>
List: pkgsrc-bugs
Date: 09/04/2007 16:35:00
>Number:         36898
>Category:       pkg
>Synopsis:       security/uvscan variables substitutions fixes
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 04 16:35:00 +0000 2007
>Originator:     Nicolas Joly
>Release:        NetBSD 4.99.30
>Organization:
Institut Pasteur, Paris.
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 4.99.30 NetBSD 4.99.30 (LANFEUST_DEVEL) #35: Mon Sep 3 11:51:55 CEST 2007 njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj/amd64/sys/arch/amd64/compile/LANFEUST_DEVEL amd64
Architecture: x86_64
Machine: amd64
>Description:
With recent emul changes, i installed security/uvscan on my -current
NetBSD/amd64 workstation, and noticed that `update_dat' script does not run.
There is a small mismatch in SUBST_VARS.paths list: UVSCAN instead of UVSCANDIR.
While here, the patch remove the unneeded (not substitued) `GREP' variable.
>How-To-Repeat:
Install security/uvscan and try to run `update_dat' script.
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/uvscan/Makefile,v
retrieving revision 1.43
diff -u -r1.43 Makefile
--- Makefile	29 Jul 2007 05:19:50 -0000	1.43
+++ Makefile	4 Sep 2007 16:20:32 -0000
@@ -46,7 +46,7 @@
 SUBST_CLASSES+=		paths
 SUBST_FILES.paths=	update_dat.sh uvscan.sh
 SUBST_VARS.paths=	AWK BASENAME CP DATFILES ECHO GTAR MKDIR MV	\
-			PREFIX RM SED UVSCAN
+			PREFIX RM SED UVSCANDIR
 SUBST_STAGE.paths=	post-patch
 
 post-extract:
Index: files/update_dat.sh
===================================================================
RCS file: /cvsroot/pkgsrc/security/uvscan/files/update_dat.sh,v
retrieving revision 1.4
diff -u -r1.4 update_dat.sh
--- files/update_dat.sh	29 Jul 2007 05:19:50 -0000	1.4
+++ files/update_dat.sh	4 Sep 2007 16:20:32 -0000
@@ -11,7 +11,6 @@
 BASENAME="@BASENAME@"
 CP="@CP@"
 ECHO="@ECHO@"
-GREP="@GREP@"
 GTAR="@GTAR@"
 MKDIR="@MKDIR@"
 MV="@MV@"