diff options
author | heinz <heinz> | 2007-06-04 00:07:48 +0000 |
---|---|---|
committer | heinz <heinz> | 2007-06-04 00:07:48 +0000 |
commit | 1e3de127aafd20a110854eb4d6a6b2017c383cdc (patch) | |
tree | 9919c39d4d27bc7f63ddc7ee72bb4d516c6b9b9f | |
parent | 74bd84b6779bbe54c7446f910a21c67537b0c4d2 (diff) | |
download | pkgsrc-1e3de127aafd20a110854eb4d6a6b2017c383cdc.tar.gz |
Avoid usage of modern kinds of parameter expansion (##, #, %%, %)
because /bin/sh on Solaris doesn't understand this syntax and bmake
uses this ancient shell.
bmake should really be built with /bin/ksh or /usr/xpg4/bin/sh as the
default shell.
-rw-r--r-- | mk/flavor/pkg/metadata.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/flavor/pkg/metadata.mk b/mk/flavor/pkg/metadata.mk index ac7913dfe3c..3e5774c03b0 100644 --- a/mk/flavor/pkg/metadata.mk +++ b/mk/flavor/pkg/metadata.mk @@ -1,4 +1,4 @@ -# $NetBSD: metadata.mk,v 1.22 2007/05/28 13:54:25 heinz Exp $ +# $NetBSD: metadata.mk,v 1.23 2007/06/04 00:07:48 heinz Exp $ ###################################################################### ### The targets below are all PRIVATE. @@ -86,8 +86,9 @@ ${_BUILD_INFO_FILE}: plist esac; \ for i in "" $$libs; do \ ${TEST} "$$i" != "" || continue; \ - ${ECHO} "PROVIDES=$${i#${DESTDIR}}" >> ${.TARGET}.tmp; \ - done; \ + ${ECHO} "PROVIDES=$${i}"; \ + done | ${SED} -e 's,^PROVIDES=${DESTDIR},PROVIDES=,' \ + >> ${.TARGET}.tmp; \ for req in "" $$requires; do \ ${TEST} "$$req" != "" || continue; \ ${ECHO} "REQUIRES=$$req" >> ${.TARGET}.tmp; \ |