FIXUPHACK 594 B

12345678910111213141516171819
  1. #mageia 1, using my pet squashfs-tools4 (v4.2) compiled in wary, xz from mageia...
  2. #110906 slacko (slackware 13.37) xz has liblzma* in /lib/ ...
  3. if [ ! -e usr/lib/liblzma.so.0 ];then
  4. LZMALIB="`find usr/lib/ -type f -name 'liblzma.so*' 2> /dev/null | tail -n 1`"
  5. if [ "$LZMALIB" ];then
  6. BASELIB="`basename $LZMALIB`"
  7. ln -s $BASELIB usr/lib/liblzma.so.0
  8. else
  9. LZMALIB="`find lib/ -type f -name 'liblzma.so*' 2> /dev/null | tail -n 1`"
  10. if [ "$LZMALIB" ];then
  11. BASELIB="`basename $LZMALIB`"
  12. #ln -s ../../$LZMALIB usr/lib/liblzma.so.0
  13. ln -s $BASELIB lib/liblzma.so.0
  14. fi
  15. fi
  16. fi