From 1a42e88839e1328b07d09d95e71292aefba9b125 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Aug 07 2009 01:52:02 +0000 Subject: Don't try to get dso deps of statically linked files. This was causing get_dso_deps to go haywire when encountering statically linked things like /sbin/grub. Particularly bad on x86_64 when it would try to use the 64bit LDSO to run the 32bit executable. The output would be bad enough that it would short circuit our loop to install all the things in KEEPFILES. We noticed this because on x86_64 the gtk2 theme is what is listed after /sbin/grub in keepfiles, and we weren't getting our theme on x86_64. --- diff --git a/scripts/buildinstall.functions b/scripts/buildinstall.functions index 2afb652..af90070 100755 --- a/scripts/buildinstall.functions +++ b/scripts/buildinstall.functions @@ -110,7 +110,8 @@ instFile() { fi f=$(file $FILE) - echo $f | egrep -q ": (setuid )?ELF" && { + echo $f | egrep -q ": (setuid )?ELF" && + echo $f | egrep -qv "statically linked" && { if echo $f | grep -q " 64-bit " ; then get_dso_deps $(pwd) "$FILE" lib64 else