[patch] typo in portaudit - fails with latest /bin/sh

Stefan Hegnauer stefan.hegnauer at gmx.ch
Sun Oct 11 15:57:18 UTC 2009


Hi,

portaudit (/usr/ports/ports-mgmt/portaudit) did not work anymore on a recent
build of FreeBSD 9.0-CURRENT #0 as of Fri Oct  9 09:27:54 CEST 2009.

As it turns out there seems to be a typo in the portaudit script which
manifests itself since the changes applied to /bin/sh in
http://svn.freebsd.org/viewvc/base?view=revision&sortby=date&revision=197691

The following patch cures this typo:

--- /usr/local/sbin/portaudit.orig   2009-10-09 12:36:10.000000000 +0200
+++ /usr/local/sbin/portaudit   2009-10-09 12:39:11.000000000 +0200
@@ -264,7 +264,7 @@
                return 2
        fi

-       PKGNAME=`make -VPKGNAME 2>/dev/null || true"`
+       PKGNAME=`make -VPKGNAME 2>/dev/null || true`

        if [ -z "$PKGNAME" ]; then
                echo "portaudit: Can't determine the package name" >&2


If somebody (eik at FreeBSD.org ?) could merge this in, please ...

--SH



More information about the freebsd-ports mailing list