Subject: pkg/23641: show-shlib-type broken with mk/bsd.pkg.mk 1.1311
To: None <gnats-bugs@gnats.netbsd.org>
From: None <snj@pobox.com>
List: netbsd-bugs
Date: 12/03/2003 21:44:53
>Number:         23641
>Category:       pkg
>Synopsis:       show-shlib-type broken with mk/bsd.pkg.mk 1.1311
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 03 21:45:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Soren Jacobsen
>Release:        NetBSD 1.6.1
>Organization:
>Environment:
Bleeding edge pkgsrc.
>Description:
elif is used instead of if, which causes
Syntax error: ";" unexpected
when installing a package.
>How-To-Repeat:
cd category/package; make install
>Fix:
Index: bsd.pkg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.1311
diff -u -r1.1311 bsd.pkg.mk
--- bsd.pkg.mk	2003/12/03 18:31:06	1.1311
+++ bsd.pkg.mk	2003/12/03 21:41:11
@@ -2974,7 +2974,7 @@
 	${_PKG_SILENT}${_PKG_DEBUG}					\
 	cd ${WRKDIR} &&							\
 	sotype=none;							\
-	elif [ "X${MKPIC}" != "Xno" -a "X${NOPIC}" = "X" ]; then		\
+	if [ "X${MKPIC}" != "Xno" -a "X${NOPIC}" = "X" ]; then		\
 		${ECHO} "int main() { exit(0); }" > a.$$$$.c;		\
 		${CC} ${CFLAGS} a.$$$$.c -o a.$$$$.out;			\
 		case `${FILE_CMD} a.$$$$.out` in			\
>Release-Note:
>Audit-Trail:
>Unformatted: