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

From: Stefan Hegnauer <stefan.hegnauer_at_gmx.ch>
Date: Sun, 11 Oct 2009 17:30:35 +0200
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
_at__at_ -264,7 +264,7 _at__at_
                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
Received on Sun Oct 11 2009 - 13:57:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:56 UTC