Subject: x11-links and Solaris
To: None <tech-pkg@NetBSD.ORG>
From: MLH <MLH@goathill.org>
List: tech-pkg
Date: 09/19/2003 02:06:54
The x11-links pkg breaks with Solaris' /bin/sh.

SunOS 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-5_10

(-current cvs and bootpkgsrc)

Makefile:
while read file; do                                             \
	if [ -e ${X11BASE}/$$file ]; then                       \
		${LN} -fs ${X11BASE}/$$file                     \
			${X11_LINKS_BUILD_DIR}/$$file;          \
		${ECHO} "${X11_LINKS_SUBDIR}/$$file"            \
			>> ${PLIST_SRC.files};                  \
	fi;                                                     \
done

/usr/bin/cat /usr/pkgsrc/pkgtools/x11-links/files/openwin | /usr/xpg4/bin/grep
-v "^#" | /usr/bin/sort -u |                              while read file; do
if [ -e /usr/openwin/$file ]; then                      /usr/bin/ln -fs
/usr/openwin/$file
/export/home/pkgsrc/pkgtools/x11-links/work/share/x11-links/$file;
/usr/ucb/echo "share/x11-links/$file"           >>
/export/home/pkgsrc/pkgtools/x11-links/work/.PLIST_SRC.files;
fi;                                                     done
/bin/sh: test: argument expected
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/x11-links

Any ideas on what exactly isn't getting substituted here?
Thanks