summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2006-10-17 11:29:36 +0000
committertv <tv@pkgsrc.org>2006-10-17 11:29:36 +0000
commitc26a7e701db1a7043535762d4d21c2e8891e6d43 (patch)
tree43280956105c3655ec823e0468e93456044ee2e5 /net
parent21894e62a9d6a3ff939c39f44b270292a7bd34f8 (diff)
downloadpkgsrc-c26a7e701db1a7043535762d4d21c2e8891e6d43.tar.gz
Don't use .for with on-demand expanded variables that depend on an
extracted source tree. That expands them at parse time, and without the source tree, causes all kinds of headaches in bmake, e.g. /usr/bin/awk: can't open file /export/SRC/netbsd/pkgsrc/net/samba/work.i386/samba-3.0.22/source/Makefile.in source line number 1 make: "/usr/bin/awk -F= '/^LIBMSRPC_MAJOR/ { print $2; }' /export/SRC/netbsd/pkgsrc/net/samba/work.i386/samba-3.0.22/source/Makefile.in" returned non-zero status Rewrite to use a shell loop.
Diffstat (limited to 'net')
-rw-r--r--net/samba/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile
index 5875b98003f..5d216742182 100644
--- a/net/samba/Makefile
+++ b/net/samba/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.166 2006/10/17 05:46:09 rillig Exp $
+# $NetBSD: Makefile,v 1.167 2006/10/17 11:29:36 tv Exp $
.include "Makefile.mirrors"
@@ -137,10 +137,10 @@ SMBVERSION.smbclient= ${LIBSMBCLIENT_MAJOR} ${LIBSMBCLIENT_MAJOR}.${LIBSMBCLIENT
.PHONY: install-samba-lib-symlinks
install-samba-lib-symlinks:
.for l in ${SMBLIBS}
-. for v in ${SMBVERSION.${l}}
- cd ${SAMBA_LIBDIR} && rm -f lib${l}.so.${v} \
- && ln -s lib${l}.so lib${l}.so.${v}
-. endfor
+ for v in ${SMBVERSION.${l}}; do \
+ (cd ${SAMBA_LIBDIR} && rm -f lib${l}.so.$$v && \
+ ln -s lib${l}.so lib${l}.so.$$v); \
+ done
.endfor
post-extract: