Author: glen
Date: Sun Nov 16 19:22:13 2008
New Revision: 9992

Modified:
   geninitrd/trunk/geninitrd
Log:
- uclibc linked udev needs it's libs from /usr/%{_target_cpu}-linux-uclibc/lib

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd   (original)
+++ geninitrd/trunk/geninitrd   Sun Nov 16 19:22:13 2008
@@ -427,6 +427,20 @@
                        inst_exec $lib /$_lib
                fi
        done
+
+       # hack for uclibc linked binaries requiring this fixed path
+       # XXX: shouldn't rpath be used here instead so th
+       if [ -f $DESTDIR/$_lib/libc.so.0 ]; then
+               local lib=$DESTDIR/$_lib/libc.so.0
+               lib=$(ldd "$lib" | awk 
'/statically|linux-(gate|vdso)\.so/{next} NF == 2 {print $1} /=/{print $3}' | 
sort -u)
+               local libdir=$(cd $(dirname "$lib"); pwd)
+               if [ ! -e $DESTDIR$libdir ]; then
+                       libdir=$(dirname "$libdir")
+                       inst_d $libdir
+                       debug "+ ln -s /$_lib $DESTDIR$libdir"
+                       ln -s /$_lib $DESTDIR$libdir
+               fi
+       fi
 }
 
 # output modules.conf / modprobe.conf
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to