Subject: pkg/13295: Fix for audit-packages on Solaris
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mike@ethmoid.org>
List: netbsd-bugs
Date: 06/24/2001 10:35:56
>Number: 13295
>Category: pkg
>Synopsis: Fix for audit-packages on Solaris
>Confidential: no
>Severity: critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 24 07:34:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Michael Santos
>Release: Zoularis 20010323
>Organization:
>Environment:
System: NetBSD ack 1.5W NetBSD 1.5W (ack) #26: Tue Jun 19 20:49:58 EDT 2001 root@ack:/amd/ns/root/usr/a/src/sys/arch/i386/compile/ack i386
Architecture: i386
Machine: i386
>Description:
The audit-packages pkg breaks with Solaris' /bin/sh.
>How-To-Repeat:
Install audit-packages on Solaris. Run.
# audit-packages
test: argument expected
#
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/audit-packages/Makefile,v
retrieving revision 1.11
diff -u -2 -r1.11 Makefile
--- Makefile 2001/06/06 23:37:52 1.11
+++ Makefile 2001/06/24 14:06:24
@@ -21,4 +21,5 @@
-e 's|\$${PKG_INFO}|${PKG_INFO}|g' \
-e 's|\$${TOUCH}|${TOUCH}|g' \
+ -e 's|\$${SH}|${SH}|g' \
${FILESDIR}/$$f > ${WRKSRC}/$$f; \
done
Index: files/audit-packages
===================================================================
RCS file: /cvsroot/pkgsrc/security/audit-packages/files/audit-packages,v
retrieving revision 1.4
diff -u -2 -r1.4 audit-packages
--- audit-packages 2001/04/24 09:32:14 1.4
+++ audit-packages 2001/06/24 14:06:24
@@ -1,3 +1,3 @@
-#! /bin/sh
+#!${SH}
if [ ! -f ${DISTDIR}/vulnerabilities ] ;then
@@ -17,5 +17,5 @@
/^#.*/ { next }
NF == 0 { next }
- { cmd = sprintf("${PKG_INFO} -qe \"%s\" && echo Package \"`${PKG_INFO} -e \"%s\"`\" has a %s vulnerability, see %s", $1, $1, $2, $3);
+ { cmd = sprintf("${PKG_INFO} -qe \"%s\" && echo Package \"`${PKG_INFO} -e '\''%s'\''`\" has a %s vulnerability, see %s", $1, $1, $2, $3);
system(cmd); }
' ${DISTDIR}/vulnerabilities
Index: files/download-vulnerability-list
===================================================================
RCS file: /cvsroot/pkgsrc/security/audit-packages/files/download-vulnerability-list,v
retrieving revision 1.8
diff -u -2 -r1.8 download-vulnerability-list
--- download-vulnerability-list 2001/06/06 23:37:53 1.8
+++ download-vulnerability-list 2001/06/24 14:06:24
@@ -1,3 +1,3 @@
-#! /bin/sh
+#!${SH}
if [ ! -e ${DISTDIR} ]; then
>Release-Note:
>Audit-Trail:
>Unformatted: