FIXUPHACK 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. LIBXCBSO="`find ./ -name "libxcb.so*" | tr '\n' ' '`"
  2. LIBXCBRENDER="`find ./ -name "libxcb-render*" | tr '\n' ' '`"
  3. LIBXCBXV="`find ./ -name "libxcb-xv*" | tr '\n' ' '`"
  4. #xine-lib needs these two...
  5. LIBXCBshape="`find ./ -name "libxcb-shape*" | tr '\n' ' '`"
  6. LIBXCBshm="`find ./ -name "libxcb-shm*" | tr '\n' ' '`"
  7. #building wary 019 (tpup with xorg7.3) 13 april 2010, needs this...
  8. LIBXCBXLIB="`find ./ -name "libxcb-xlib*" | tr '\n' ' '`"
  9. #extras for spup
  10. LIBXCBres="`find ./ -name "libxcb-res*" | tr '\n' ' '`"
  11. LIBXCBxevie="`find ./ -name "libxcb-xevie*" | tr '\n' ' '`"
  12. LIBXCBxvmc="`find ./ -name "libxcb-xvmc*" | tr '\n' ' '`"
  13. LIBXCBdamage="`find ./ -name "libxcb-damage*" | tr '\n' ' '`"
  14. LIBXCBrecord="`find ./ -name "libxcb-record*" | tr '\n' ' '`"
  15. LIBXCBdpms="`find ./ -name "libxcb-dpms*" | tr '\n' ' '`"
  16. LIBXCBglx="`find ./ -name "libxcb-glx*" | tr '\n' ' '`"
  17. LIBXCBscreensaver="`find ./ -name "libxcb-screensaver*" | tr '\n' ' '`"
  18. LIBXCBrandr="`find ./ -name "libxcb-randr*" | tr '\n' ' '`"
  19. #LIBXCBdri2="`find ./ -name "libxcb-dri2*" | tr '\n' ' '`"
  20. LIBXCBcomposite="`find ./ -name "libxcb-composite*" | tr '\n' ' '`"
  21. XCBDIR="`find ./ -type f -name "libxcb.so*" | head -n 1`"
  22. XCBDIR="`dirname $XCBDIR`"
  23. #mesa_base pkg libegl* needs these...
  24. LIBXCBdri="`find ./ -name "libxcb-dri*" | tr '\n' ' '`"
  25. LIBXCBxfixes="`find ./ -name "libxcb-xfixes*" | tr '\n' ' '`"
  26. #111204 debian squeeze needs these...
  27. LIBXCBatom="`find ./ -name "libxcb-atom*" | tr '\n' ' '`"
  28. LIBXCBaux="`find ./ -name "libxcb-aux*" | tr '\n' ' '`"
  29. LIBXCBevent="`find ./ -name "libxcb-event*" | tr '\n' ' '`"
  30. mkdir -p /tmp/libxcb
  31. for ONEFILE in $LIBXCBSO $LIBXCBRENDER $LIBXCBXV $LIBXCBshape $LIBXCBshm $LIBXCBXLIB $LIBXCBdri $LIBXCBxfixes $LIBXCBres $LIBXCBxevie $LIBXCBxvmc $LIBXCBdamage $LIBXCBrecord $LIBXCBdpms $LIBXCBglx $LIBXCBscreensaver $LIBXCBrandr $LIBXCBcomposite $LIBXCBatom $LIBXCBaux $LIBXCBevent
  32. do
  33. cp -a -f $ONEFILE /tmp/libxcb/
  34. done
  35. #PATHOK='no'
  36. #[ "$XCBDIR" = "./usr/X11R7/lib" ] && PATHOK='yes'
  37. #[ "$XCBDIR" = "./usr/lib" ] && PATHOK='yes'
  38. #[ "$PATHOK" = "yes" ] && rm -rf ${XCBDIR}/*
  39. rm -rf ./usr/lib/* 2>/dev/null
  40. rm -rf ./usr/X11R7/lib/* 2>/dev/null
  41. cp -a /tmp/libxcb/* ${XCBDIR}/
  42. #120325 ubuntu precise pangolin. tried to run 'viewnior' pkg from wary, missing 'libxcb-xlib.so.0'...
  43. OLDXCBLIB="`find ./usr -name libxcb-xlib.so.0`" #this is only in the old libxcb version 0.x.
  44. [ ! "$OLDXCBLIB" ] && ln -s libX11.so.6 usr/lib/libxcb-xlib.so.0 #dummy link.
  45. #...note, wary does this in it's zz_wary52_fixup pkg.