diff options
author | tv <tv> | 2006-10-17 11:29:36 +0000 |
---|---|---|
committer | tv <tv> | 2006-10-17 11:29:36 +0000 |
commit | 48349a9b6e6af144c5d929a576ec86393fa02fbd (patch) | |
tree | 43280956105c3655ec823e0468e93456044ee2e5 /net | |
parent | 26777293b34c8c98535da192c5fc6a951ea3367d (diff) | |
download | pkgsrc-48349a9b6e6af144c5d929a576ec86393fa02fbd.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/Makefile | 10 |
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: |