FIXUPHACK 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 & tahrpup
  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. LIBXCBpresent="`find ./ -name "libxcb-present*" | tr '\n' ' '`"
  22. LIBXCBsync="`find ./ -name "libxcb-sync*" | tr '\n' ' '`"
  23. XCBDIR="`find ./ -type f -name "libxcb.so*" | head -n 1`"
  24. XCBDIR="`dirname $XCBDIR`"
  25. #mesa_base pkg libegl* needs these...
  26. LIBXCBdri="`find ./ -name "libxcb-dri*" | tr '\n' ' '`"
  27. LIBXCBxfixes="`find ./ -name "libxcb-xfixes*" | tr '\n' ' '`"
  28. #111204 debian squeeze needs these...
  29. LIBXCBatom="`find ./ -name "libxcb-atom*" | tr '\n' ' '`"
  30. LIBXCBaux="`find ./ -name "libxcb-aux*" | tr '\n' ' '`"
  31. LIBXCBevent="`find ./ -name "libxcb-event*" | tr '\n' ' '`"
  32. mkdir -p /tmp/libxcb
  33. for ONEFILE in $LIBXCBSO $LIBXCBRENDER $LIBXCBXV $LIBXCBshape $LIBXCBshm $LIBXCBXLIB $LIBXCBdri $LIBXCBxfixes $LIBXCBres $LIBXCBxevie $LIBXCBxvmc $LIBXCBdamage $LIBXCBrecord $LIBXCBdpms $LIBXCBglx $LIBXCBscreensaver $LIBXCBrandr $LIBXCBcomposite $LIBXCBsync $LIBXCBpresent $LIBXCBatom $LIBXCBaux $LIBXCBevent
  34. do
  35. cp -a -f $ONEFILE /tmp/libxcb/
  36. done
  37. #PATHOK='no'
  38. #[ "$XCBDIR" = "./usr/X11R7/lib" ] && PATHOK='yes'
  39. #[ "$XCBDIR" = "./usr/lib" ] && PATHOK='yes'
  40. #[ "$PATHOK" = "yes" ] && rm -rf ${XCBDIR}/*
  41. rm -rf ./usr/lib/* 2>/dev/null
  42. rm -rf ./usr/X11R7/lib/* 2>/dev/null
  43. cp -a /tmp/libxcb/* ${XCBDIR}/
  44. #120325 ubuntu precise pangolin. tried to run 'viewnior' pkg from wary, missing 'libxcb-xlib.so.0'...
  45. OLDXCBLIB="`find ./usr -name libxcb-xlib.so.0`" #this is only in the old libxcb version 0.x.
  46. [ ! "$OLDXCBLIB" ] && ln -s libX11.so.6 usr/lib/libxcb-xlib.so.0 #dummy link.
  47. #...note, wary does this in it's zz_wary52_fixup pkg.