ports/161948: ports-mgmt/bpkg: Fixed syntax error on 9.x in shell script

Grzegorz Blach magik at roorback.net
Sun Oct 23 23:30:03 UTC 2011


>Number:         161948
>Category:       ports
>Synopsis:       ports-mgmt/bpkg: Fixed syntax error on 9.x in shell script
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 23 23:30:02 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Grzegorz Blach
>Release:        9.0-RC1
>Organization:
>Environment:
FreeBSD silver.nine 9.0-RC1 FreeBSD 9.0-RC1 #1: Sat Oct 22 17:56:19 CEST 2011     root at silver.nine:/usr/obj/usr/src/sys/SILVER  amd64

>Description:
On 9.x bpkg display error message on startup
: bpkg: 407: Syntax error: Bad function name

Reason is '-' at the end of pkg_which-() function name.

>How-To-Repeat:
Try run bpkg on 9.x

>Fix:
Remove '-' from pkg_which-() function name on lines: 407 and 814


Patch attached with submission follows:

diff -ruN ports-mgmt/bpkg/Makefile ports-mgmt/bpkg/Makefile
--- ports-mgmt/bpkg/Makefile	2010-09-29 18:02:01.000000000 +0200
+++ ports-mgmt/bpkg/Makefile	2011-10-24 00:59:32.171594133 +0200
@@ -9,6 +9,7 @@
 
 PORTNAME=	bpkg
 PORTVERSION=	2.1.3
+PORTREVISION=	1
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	# none
 DISTFILES=	# none
diff -ruN ports-mgmt/bpkg/files/bpkg.sh.in ports-mgmt/bpkg/files/bpkg.sh.in
--- ports-mgmt/bpkg/files/bpkg.sh.in	2010-09-29 18:02:01.000000000 +0200
+++ ports-mgmt/bpkg/files/bpkg.sh.in	2011-10-24 00:59:32.171594133 +0200
@@ -404,7 +404,7 @@
 	exit 0
 }
 
-pkg_which-()
+pkg_which()
 {
 	grep "$pkg"$ /var/db/pkg/*/+CONTENTS |
 	    awk -F 'pkg/' '{ print $2 }' |
@@ -811,7 +811,7 @@
 		s) pkg=$OPTARG
 		   pkg_info-xs ;;
 		w) pkg=$OPTARG
-		   pkg_which- ;;
+		   pkg_which ;;
 		z) pkg=$OPTARG
 		   make_ldd ;;
 		B) pkg_backup_all ;;


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list