summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upd-instroot13
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 6a9281f91..801d6cc21 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -93,6 +93,15 @@ expandPackageSet() {
TZDATA=$n
fi
rpm2cpio $n | (cd $PKGDEST; cpio -E $KEEPFILES --quiet -iumd)
+ ( cd $PKGDEST/$LIBDIR
+ if [ -d obsolete/linuxthreads/ ]; then
+ for x in obsolete/linuxthreads/*-* ; do
+ lib_base=$(basename $x | cut -d- -f1)
+ rm -f ./$lib_base*
+ mv -f obsolete/linuxthreads/$lib_base* .
+ done
+ rmdir obsolete/linuxthreads obsolete
+ fi )
[ -n "$DEBUG" ] && echo -ne "\rExpanding packages..." "$(basename $n | sed 's/./ /g')"
done
}
@@ -247,8 +256,8 @@ KEEPFILE=/tmp/keepfile.$$
# XXX gross hack, until we're sure NPTL anaconda builds work, which is
# highly suspect today.
-if [ "$NPTL" = "0" -a -d /lib/obsolete/linuxthreads/ ]; then
- EXPR="s,$LIBDIR/,$LIBDIR/obsolete/linuxthreads/,"
+if [ "$NPTL" = "0" ]; then
+ EXPR="p; s,$LIBDIR/,$LIBDIR/obsolete/linuxthreads/,"
else
# this won't get us NPTL if we've got a glibc that doesn't put it
# in /lib directly, but really this hack is to make sure we _don't_