Subject: pkg/28545: errors from bsd.options.mk
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <htodd@twofifty.com>
List: pkgsrc-bugs
Date: 12/05/2004 21:42:01
>Number:         28545
>Category:       pkg
>Synopsis:       errors from bsd.options.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 05 21:42:01 +0000 2004
>Originator:     H. Todd Fujinaka
>Release:        NetBSD 2.99.11
>Organization:
None
>Environment:
	
	
System: NetBSD kerry.i8u.org 2.99.11 NetBSD 2.99.11 (KERRY) #1: Sat Dec 4 23:28:19 PST 2004 htodd@kerry.i8u.org:/usr/obj/sys/arch/i386/compile.i386/KERRY i386
Architecture: i386
Machine: i386
>Description:
pkg_chk gives the error:
make: "../../mk/../../mk/bsd.options.mk" line 186: warning: Couldn't read shell's output for "echo  | /usr/bin/xargs -n 1 | /usr/bin/sort"
	
>How-To-Repeat:
pkg_chk -B, or pkg_chk -u
	
>Fix:
	
This is my hack. I'm not really good at makefiles, and I'm not sure about PKG_OPTIONS.

diff -u -r1.12 bsd.options.mk
--- bsd.options.mk      5 Dec 2004 09:20:48 -0000       1.12
+++ bsd.options.mk      5 Dec 2004 21:35:44 -0000
@@ -182,7 +182,7 @@
 .if !defined(_PKG_OPTIONS_DEFAULT)
 _PKG_OPTIONS_DEFAULT!=         ${ECHO} ${PKG_DEFAULT_OPTIONS} | ${XARGS} -n 1 | ${SORT}
 .endif
-.if !defined(_PKG_OPTIONS_ENABLED)
+.if !defined(_PKG_OPTIONS_ENABLED) && defined(_PKG_OPTIONS)
 _PKG_OPTIONS_ENABLED!=         ${ECHO} ${PKG_OPTIONS} | ${XARGS} -n 1 | ${SORT}
 .endif

>Unformatted: