[PATCH 2/5] Make sure s390 gets /lib/ld64.so.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If s390 images lack /lib/ld64.so.1, nothing works.
---
 scripts/buildinstall.functions |    5 +++++
 scripts/mk-images              |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/scripts/buildinstall.functions b/scripts/buildinstall.functions
index e978bf5..3b10dff 100755
--- a/scripts/buildinstall.functions
+++ b/scripts/buildinstall.functions
@@ -85,6 +85,11 @@ EOF
     for l in $(/usr/sbin/chroot $root find /$LDSODIR -maxdepth 1 -type l -name ld*.so*); do
        [ "$(/usr/sbin/chroot $root readlink -f $l)" == "$LDSO" ] && DSO_DEPS="$DSO_DEPS $l"
     done
+    if [ "$(uname -m)" == "s390x" ]; then
+       for l in $(/usr/sbin/chroot $root find /lib -maxdepth 1 -type 1 -name ld*.so*); do
+          [ "$(/usr/sbin/chroot $root readlink -f $l)" == "$LDSO" ] && DSO_DEPS="$DSO_DEPS $l"
+       done
+    fi
 
     [ -n "$DEBUG" ] && echo "DSO_DEPS for $bin are $DSO_DEPS"
 }
diff --git a/scripts/mk-images b/scripts/mk-images
index f746a29..44b430d 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -396,6 +396,11 @@ instbin() {
                 ln -s $linker ld-linux.so.2
             fi
             popd
+            if [ "$BUILDARCH" = "s390x" ]; then
+                pushd $DIR/lib
+                ln -s ../$LIBDIR/ld64.so.1
+                popd
+            fi
         fi
     fi
 }
-- 
1.6.2.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux