diff options
author | heinz <heinz@pkgsrc.org> | 2007-06-04 00:07:48 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2007-06-04 00:07:48 +0000 |
commit | 735d0a6656340b66312a75c829bd5d5d3f4e14b3 (patch) | |
tree | 9919c39d4d27bc7f63ddc7ee72bb4d516c6b9b9f /mk | |
parent | 6218de2b57f15746b11371f98a844fc2c9931379 (diff) | |
download | pkgsrc-735d0a6656340b66312a75c829bd5d5d3f4e14b3.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.
Diffstat (limited to 'mk')
-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; \ |