aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-02-13 05:55:05 -0500
committerMike Frysinger <vapier@gentoo.org>2010-02-13 05:55:05 -0500
commit1e97e66bba7fe605b56e109d2c08f5dfc5a7de71 (patch)
treea052f40837ab766989b743648013e13fa8d676b6
parentcross-pkg-config: relax pkg-config requirement (diff)
downloadcrossdev-1e97e66bba7fe605b56e109d2c08f5dfc5a7de71.tar.gz
crossdev-1e97e66bba7fe605b56e109d2c08f5dfc5a7de71.tar.bz2
crossdev-1e97e66bba7fe605b56e109d2c08f5dfc5a7de71.zip
cross-fix-root: handle no config scripts case
If there are no -config scripts to mess with, avoid trying to generate broken symlinks to '*-config'. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xwrappers/cross-fix-root1
1 files changed, 1 insertions, 0 deletions
diff --git a/wrappers/cross-fix-root b/wrappers/cross-fix-root
index 97bb783..c74f9a0 100755
--- a/wrappers/cross-fix-root
+++ b/wrappers/cross-fix-root
@@ -68,6 +68,7 @@ if [ -d usr/bin ] ; then
if [ -n "${CROSS_BINDIR}" ] && [ -d "${CROSS_BINDIR}" ] && [ -n "${CROSS_PREFIX}" ] ; then
cd usr/bin || exit 1
for config in *-config ; do
+ [ -x "${config}" ] || continue # avoid empty globs
# work around a possible race condition if multiple make jobs
# are generating the same symlink at the same time. a `mv`
# is "atomic" (it uses rename()) while a `ln` is actually