diff options
author | rillig <rillig@pkgsrc.org> | 2006-11-05 07:41:06 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-11-05 07:41:06 +0000 |
commit | 7104495b24e9bbc714b3acb5bfaac23fbafa46f2 (patch) | |
tree | af5232c141014a72e1e834a53cb0a74787550d1a /mk/configure/libtool-override.mk | |
parent | 77a6252f95479a3c195b7335fba648c4ee4be9ee (diff) | |
download | pkgsrc-7104495b24e9bbc714b3acb5bfaac23fbafa46f2.tar.gz |
The config.guess, config.sub and libtool files should also be
overwritten when the package-provided files are (possibly dead)
symlinks. Since on Mac OS X, ls(1) does not return the status I
expected, I investigated a little in the available options of test(1),
and found that the "-h" option should be quite portable. So let's try
that instead.
This fixes PR 34865.
Diffstat (limited to 'mk/configure/libtool-override.mk')
-rw-r--r-- | mk/configure/libtool-override.mk | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/configure/libtool-override.mk b/mk/configure/libtool-override.mk index 58684f7c658..32401e0e957 100644 --- a/mk/configure/libtool-override.mk +++ b/mk/configure/libtool-override.mk @@ -1,4 +1,4 @@ -# $NetBSD: libtool-override.mk,v 1.7 2006/10/05 02:59:54 rillig Exp $ +# $NetBSD: libtool-override.mk,v 1.8 2006/11/05 07:41:06 rillig Exp $ ###################################################################### ### {libtool,shlibtool}-override (PRIVATE) @@ -34,7 +34,7 @@ libtool-override: set -- dummy ${LIBTOOL_OVERRIDE}; shift; \ while ${TEST} $$# -gt 0; do \ file="$$1"; shift; \ - ${TEST} -f "$$file" || continue; \ + [ -f "$$file" ] || [ -h "$$file" ] || continue; \ ${_SCRIPT.${.TARGET}}; \ done .else @@ -43,7 +43,7 @@ libtool-override: depth=0; pattern=libtool; \ while ${TEST} $$depth -le ${OVERRIDE_DIRDEPTH.libtool}; do \ for file in $$pattern; do \ - ${LS} "$$file" 1>/dev/null 2>&1 || continue; \ + [ -f "$$file" ] || [ -h "$$file" ] || continue; \ ${_SCRIPT.${.TARGET}}; \ done; \ depth=`${EXPR} $$depth + 1`; pattern="*/$$pattern"; \ @@ -59,7 +59,7 @@ shlibtool-override: set -- dummy ${SHLIBTOOL_OVERRIDE}; shift; \ while ${TEST} $$# -gt 0; do \ file="$$1"; shift; \ - ${TEST} -f "$$file" || continue; \ + [ -f "$$file" ] || [ -h "$$file" ] || continue; \ ${_SCRIPT.${.TARGET}}; \ done .else @@ -68,7 +68,7 @@ shlibtool-override: depth=0; pattern=libtool; \ while ${TEST} $$depth -le ${OVERRIDE_DIRDEPTH.shlibtool}; do \ for file in $$pattern; do \ - ${TEST} -f "$$file" || continue; \ + [ -f "$$file" ] || [ -h "$$file" ] || continue; \ ${_SCRIPT.${.TARGET}}; \ done; \ depth=`${EXPR} $$depth + 1`; pattern="*/$$pattern"; \ |