Fix initramfs build failure when multiarch libraries are installed

pull/2/head
Timothy Pearson 11 years ago
parent 7df1147bdb
commit 3879a3b564

@ -30,21 +30,21 @@ done
# pcscd utilizes pthread_cancel # pcscd utilizes pthread_cancel
mkdir -p ${DESTDIR}/lib mkdir -p ${DESTDIR}/lib
copy_exec /usr/sbin/pcscd /sbin copy_exec /usr/sbin/pcscd /sbin
if [ -e /lib/*/libgcc_s.so.1 ] if [ -e /lib/*`uname -i`*/libgcc_s.so.1 ]
then then
copy_exec /lib/*/libgcc_s.so.1 /lib copy_exec /lib/*`uname -i`*/libgcc_s.so.1 /lib
else else
copy_exec /lib/libgcc_s.so.1 /lib copy_exec /lib/libgcc_s.so.1 /lib
fi fi
if [ -e /lib/*/libpcsclite.so.1 ] if [ -e /lib/*`uname -i`*/libpcsclite.so.1 ]
then then
copy_exec /lib/*/libpcsclite.so.1 /lib copy_exec /lib/*`uname -i`*/libpcsclite.so.1 /lib
else else
copy_exec /lib/libpcsclite.so.1 /lib copy_exec /lib/libpcsclite.so.1 /lib
fi fi
if [ -e /usr/lib/*/libusb-1.0.so.0 ] if [ -e /usr/lib/*`uname -i`*/libusb-1.0.so.0 ]
then then
copy_exec /usr/lib/*/libusb-1.0.so.0 /usr/lib copy_exec /usr/lib/*`uname -i`*/libusb-1.0.so.0 /usr/lib
else else
copy_exec /usr/lib/libusb-1.0.so.0 /usr/lib copy_exec /usr/lib/libusb-1.0.so.0 /usr/lib
fi fi
@ -83,9 +83,9 @@ copy_exec /usr/bin/smartauth.sh /bin
# Libraries # Libraries
# cp /usr/lib/libltdl.so* ${DESTDIR}/usr/lib # cp /usr/lib/libltdl.so* ${DESTDIR}/usr/lib
# cp /lib/libncurses.so.5 ${DESTDIR}/lib # cp /lib/libncurses.so.5 ${DESTDIR}/lib
if [ -e /lib/*/libncursesw.so.5 ] if [ -e /lib/*`uname -i`*/libncursesw.so.5 ]
then then
cp /lib/*/libncursesw.so.5 ${DESTDIR}/lib cp /lib/*`uname -i`*/libncursesw.so.5 ${DESTDIR}/lib
else else
cp /lib/libncursesw.so.5 ${DESTDIR}/lib cp /lib/libncursesw.so.5 ${DESTDIR}/lib
fi fi

Loading…
Cancel
Save