From c29f0955045cdd02965a14300ce5e99364db2d1b Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Fri, 21 Mar 2003 00:09:53 +0000 Subject: merge taroon branch up until now. tagged as before-taroon-merge before and will be tagged after-taroon-merge after. taroon at this point is tagged taroon-merge-point for where to base merges from in the future --- scripts/upd-instroot | 104 +++++++++++++++++++++++++-------------------------- 1 file changed, 50 insertions(+), 54 deletions(-) (limited to 'scripts/upd-instroot') diff --git a/scripts/upd-instroot b/scripts/upd-instroot index 50ecdb51e..064dcdc33 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -28,7 +28,7 @@ if [ -z "$ARCH" ]; then ARCH=`rpm -qp --qf "%{ARCH}" $PACKAGEDIR/anaconda-runtime*.rpm` fi -if [ $ARCH = x86_64 ]; then +if [ $ARCH = x86_64 -o $ARCH = s390x ]; then LIBDIR=lib64 else LIBDIR=lib @@ -115,10 +115,11 @@ if [ $ARCH = ia64 ]; then fi if [ $ARCH = s390 -o $ARCH = s390x ]; then - PACKAGES="$PACKAGES s390utils oco binutils s390installer pdksh wget - net-tools inetd openssh openssh-server coreutils modutils - initscripts gawk xauth - portmap telnet-server login ssh_keys" + PACKAGES="$PACKAGES s390utils binutils libgcc tcp_wrappers + sed net-tools xinetd openssl openssh openssh-server coreutils + login initscripts XFree86-xauth bash portmap pam + libcrack telnet-server login mount grep modutils gawk + XFree86-libs" fi # xpm is missing @@ -181,16 +182,6 @@ if [ $ARCH = ia64 ]; then PACKAGESGR="$PACKAGESGR elilo" fi -# -# special packages for particular arches -# -if [ $ARCH = s390 -o $ARCH = s390x ]; then - PACKAGESGR="$PACKAGESGR s390utils oco binutils s390installer pdksh - net-tools inetd openssh openssh-server coreutils login - wget initscripts xauth - modutils portmap openssl telnet-server strace ssh_keys" -fi - if [ $ARCH = ppc ]; then PACKAGESGR="$PACKAGESGR fbset" fi @@ -362,7 +353,6 @@ EOF if [ $ARCH = s390 -o $ARCH = s390x ]; then cat >> $KEEPFILE < 1) { - print gensub(/\..*$/,tolower("." a[2]),"",$5); +{ gsub("-", "", $4); + print $4; + print gensub(/\..*$/,"","",$4); + print gensub(/_.*$/,"","",$4); + if (split ($4, a, "\.") > 1) { + print gensub(/\..*$/,tolower("." a[2]),"",$4); }; - gsub("-", "", $8); - print $8; - print gensub(/\..*$/,"","",$8); - print gensub(/_.*$/,"","",$8); - if (split ($8, a, "\.") > 1) { - print gensub(/\..*$/,tolower("." a[2]),"",$8); + gsub("-", "", $7); + print $7; + print gensub(/\..*$/,"","",$7); + print gensub(/_.*$/,"","",$7); + if (split ($7, a, "\.") > 1) { + print gensub(/\..*$/,tolower("." a[2]),"",$7); }; } ' | LC_ALL=C sort -u > $DESTGR/locales @@ -842,8 +843,7 @@ fi echo "Getting pango modules" if [ -n "$NEEDGR" ]; then if [ -x /usr/bin/runroot -a -n "$COMPONENT" ]; then - REALPATH=`(cd $DESTGR; /bin/pwd | sed 's,/md1/,/,g')` - runroot $COMPONENT --onlyone --arch $ARCH "LD_LIBRARY_PATH=/usr/X11R6/$LIBDIR:$LD_LIBRARY_PATH /usr/sbin/chroot $REALPATH /usr/bin/pango-querymodules 2> $REALPATH/etc/pango/pango.modules" + runroot $COMPONENT --onlyone --arch $ARCH "LD_LIBRARY_PATH=/usr/X11R6/$LIBDIR:$LD_LIBRARY_PATH /usr/sbin/chroot $DESTGR /usr/bin/pango-querymodules 2> $DESTGR/etc/pango/pango.modules" else LD_LIBRARY_PATH=/usr/X11R6/$LIBDIR:$LD_LIBRARY_PATH /usr/sbin/chroot $DESTGR /usr/bin/pango-querymodules > $DESTGR/etc/pango/pango.modules fi @@ -853,8 +853,7 @@ fi echo "Getting gtk2 input method modules" if [ -n "$NEEDGR" ]; then if [ -x /usr/bin/runroot -a -n "$COMPONENT" ]; then - REALPATH=`(cd $DESTGR; /bin/pwd | sed 's,/md1/,/,g')` - runroot $COMPONENT --onlyone --arch $ARCH "LD_LIBRARY_PATH=/usr/X11R6/$LIBDIR:$LD_LIBRARY_PATH /usr/sbin/chroot $REALPATH /usr/bin/gtk-query-immodules-2.0 2> $REALPATH/etc/gtk-2.0/gtk.immodules" + runroot $COMPONENT --onlyone --arch $ARCH "LD_LIBRARY_PATH=/usr/X11R6/$LIBDIR:$LD_LIBRARY_PATH /usr/sbin/chroot $DESTGR /usr/bin/gtk-query-immodules-2.0 2> $DESTGR/etc/gtk-2.0/gtk.immodules" else LD_LIBRARY_PATH=/usr/X11R6/$LIBDIR:$LD_LIBRARY_PATH /usr/sbin/chroot $DESTGR /usr/bin/gtk-query-immodules-2.0 > $DESTGR/etc/gtk-2.0/gtk.immodules fi @@ -864,12 +863,11 @@ fi echo "Getting gtk2 gdk-pixbuf loaders" if [ -n "$NEEDGR" ]; then if [ -x /usr/bin/runroot -a -n "$COMPONENT" ]; then - runroot $COMPONENT --onlyone --arch $ARCH "LD_LIBRARY_PATH=/usr/X11R6/$LIBDIR:$LD_LIBRARY_PATH /usr/sbin/chroot $REALPATH /usr/bin/gdk-pixbuf-query-loaders 2> $REALPATH/etc/gtk-2.0/gdk-pixbuf.loaders" + runroot $COMPONENT --onlyone --arch $ARCH "LD_LIBRARY_PATH=/usr/X11R6/$LIBDIR:$LD_LIBRARY_PATH /usr/sbin/chroot $DESTGR /usr/bin/gdk-pixbuf-query-loaders 2> $DESTGR/etc/gtk-2.0/gdk-pixbuf.loaders" else LD_LIBRARY_PATH=/usr/X11R6/$LIBDIR:$LD_LIBRARY_PATH /usr/sbin/chroot $DESTGR /usr/bin/gdk-pixbuf-query-loaders > $DESTGR/etc/gtk-2.0/gdk-pixbuf.loaders fi rm -f $DESTGR/usr/bin/gdk-pixbuf-query-loaders - fi # make the changes we want to fonts.conf for anaconda (#65913) @@ -950,8 +948,7 @@ for p in $DEST $DESTGR; do gzip -9) > $p/usr/$LIBDIR/timezones.gz if [ -x /usr/bin/runroot -a -n "$COMPONENT" ]; then - REALPATH=`(cd $p; /bin/pwd | sed 's,/md1/,/,g')` - runroot $COMPONENT --onlyone --arch $ARCH "cd $REALPATH\; usr/lib/anaconda-runtime/scrubtree $REALPATH" + runroot $COMPONENT --onlyone --arch $ARCH "cd $p\; usr/lib/anaconda-runtime/scrubtree $p" else $p/usr/lib/anaconda-runtime/scrubtree $p fi @@ -969,8 +966,7 @@ fi echo "Creating fontconfig cache" if [ -n "$NEEDGR" ]; then if [ -x /usr/bin/runroot -a -n "$COMPONENT" ]; then - REALPATH=`(cd $DESTGR; /bin/pwd | sed 's,/md1/,/,g')` - runroot $COMPONENT --onlyone --arch $ARCH "LD_LIBRARY_PATH=/usr/X11R6/$LIBDIR:$LD_LIBRARY_PATH /usr/sbin/chroot $REALPATH /usr/bin/fc-cache -v" + runroot $COMPONENT --onlyone --arch $ARCH "LD_LIBRARY_PATH=/usr/X11R6/$LIBDIR:$LD_LIBRARY_PATH /usr/sbin/chroot $DESTGR /usr/bin/fc-cache -v" else LD_LIBRARY_PATH=/usr/X11R6/$LIBDIR:$LD_LIBRARY_PATH /usr/sbin/chroot $DESTGR /usr/bin/fc-cache -v fi @@ -1011,8 +1007,7 @@ cd - echo -n -e "Removing unused python files in hdimage... " if [ -x /usr/bin/runroot -a -n "$COMPONENT" ]; then - REALPATH=`(cd $DEST; /bin/pwd | sed 's,/md1/,/,g')` - runroot $COMPONENT --onlyone --arch $ARCH "cd $REALPATH\; usr/lib/anaconda-runtime/pythondeps $REALPATH" + runroot $COMPONENT --onlyone --arch $ARCH "cd $DEST\; usr/lib/anaconda-runtime/pythondeps $DEST" else $DEST/usr/lib/anaconda-runtime/pythondeps $DEST fi @@ -1030,9 +1025,10 @@ done # do some stripping of debugging symbols if [ -x /usr/bin/runroot -a -n "$COMPONENT" ]; then - REALPATH=`(cd $DEST; /bin/pwd | sed 's,/md1/,/,g')` - runroot $COMPONENT --onlyone --arch $ARCH "cd $REALPATH; find $DESTGR -type f -name '*.so' -exec strip -g '{}' ';'" + runroot $COMPONENT --onlyone --arch $ARCH "\"find $DEST -type f -name '*.so' -exec strip -g '{}' ';'\"" + runroot $COMPONENT --onlyone --arch $ARCH "\"find $DESTGR -type f -name '*.so' -exec strip -g '{}' ';'\"" else + find $DEST -type f -name '*.so' |xargs strip -g find $DESTGR -type f -name '*.so' |xargs strip -g fi -- cgit