summaryrefslogtreecommitdiffstats
path: root/compat32-tools
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-04-21 21:04:24 +0000
committer Eric Hameleers <alien@slackware.com>2015-04-21 21:04:24 +0000
commitd43f544b9fdeface6528347f3eb605de13a7c717 (patch)
tree52770975f5d122e196b7799db810441368eb8132 /compat32-tools
parente4ae82fe25de442499ff423a9369b286481c08b4 (diff)
downloadmultilib-d43f544b9fdeface6528347f3eb605de13a7c717.tar.gz
multilib-d43f544b9fdeface6528347f3eb605de13a7c717.tar.xz
Deal with dangling symlinks in ./32 subdirectory
Diffstat (limited to 'compat32-tools')
-rwxr-xr-xcompat32-tools/convertpkg-compat323
1 files changed, 2 insertions, 1 deletions
diff --git a/compat32-tools/convertpkg-compat32 b/compat32-tools/convertpkg-compat32
index f12d596..e1efc1d 100755
--- a/compat32-tools/convertpkg-compat32
+++ b/compat32-tools/convertpkg-compat32
@@ -261,7 +261,8 @@ elif [ -f install/doinst.sh ]; then
|grep -v "etc/ld.so.conf" |grep -v "../sbin/" \
|grep -E '(usr/bin |lib |lib/)' > install/doinst.sh.2
cat install/doinst.sh.1 install/doinst.sh.2 \
- |sed -e 's#usr/bin#usr/bin/32#g' > install/doinst.sh
+ |sed -e 's# usr/bin# usr/bin/32#g' \
+ |sed -e 's#32 ; ln -sf ../#&../#' > install/doinst.sh
rm -f install/doinst.sh.1 install/doinst.sh.2 ) || true
fi