Subject: [patch] mk/bsd.pkg.mk
To: None <tech-pkg@netbsd.org>
From: Roland Illig <roland.illig@gmx.de>
List: tech-pkg
Date: 06/23/2004 12:16:22
This is a multi-part message in MIME format.
--------------080408060607020405060601
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
The native "[" program on SunOS does not know the operator "-nt".
Therefore the commands "test" and "[" should be replaced by "${TEST}" in
pkgsrc wherever possible.
Additionally, "bmake show-var" does not work in the top-level directory.
Roland
--------------080408060607020405060601
Content-Type: text/plain;
name="bsd.pkg.mk-sunos-portability.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="bsd.pkg.mk-sunos-portability.patch"
Index: mk/bsd.pkg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.1468
diff -u -r1.1468 bsd.pkg.mk
--- mk/bsd.pkg.mk 5 Jun 2004 09:10:41 -0000 1.1468
+++ mk/bsd.pkg.mk 23 Jun 2004 10:11:28 -0000
@@ -1789,8 +1789,8 @@
${_PKG_SILENT}${_PKG_DEBUG} \
ppid=`${PS} -p $$$$ -o ppid | ${AWK} 'NR == 2 { print $$1 }'`; \
while true; do \
- if [ -f /var/run/dmesg.boot -a -f ${LOCKFILE} -a \
- /var/run/dmesg.boot -nt ${LOCKFILE} ]; then \
+ if ${TEST} -f /var/run/dmesg.boot -a -f ${LOCKFILE} -a \
+ /var/run/dmesg.boot -nt ${LOCKFILE}; then \
${ECHO} "=> Removing stale ${LOCKFILE}"; \
${RM} ${LOCKFILE}; \
fi; \
--------------080408060607020405060601--