FIXUPHACK 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #if the pkg created in packages-woof has something wrong, this file is a last
  2. #resort to fix it. Current-dir is where this file FIXUPHACK is located.
  3. #110623 i don't think we want this symlink anymore...
  4. ##this symlink got taken away to the _DEV pkg...
  5. #[ -e ../xserver_xorg_DEV/usr/lib/xorg/modules/drivers/i810_drv.so ] && ln -snf intel_drv.so usr/lib/xorg/modules/drivers/i810_drv.so
  6. ##...ubuntu intrepid. note also, have later intel_drv.so in a separate pkg.
  7. #so did these, but needed...
  8. [ -e usr/lib/libchromeXvMCPro.so.1 ] && ln -snf libchromeXvMCPro.so.1 usr/lib/libchromeXvMCPro.so
  9. [ -e usr/lib/libchromeXvMC.so.1 ] && ln -snf libchromeXvMC.so.1 usr/lib/libchromeXvMC.so
  10. [ -e usr/lib/libI810XvMC.so.1 ] && ln -snf libI810XvMC.so.1 usr/lib/libI810XvMC.so
  11. [ -e usr/lib/libIntelXvMC.so.1 ] && ln -snf libIntelXvMC.so.1 usr/lib/libIntelXvMC.so
  12. #inrepid again. remove this, as xorg_base pkg has X as a symlink...
  13. rm -f usr/bin/X 2>/dev/null
  14. ##dump this stuff...
  15. #[ -d etc/evtouch ] && rm -rf etc/evtouch
  16. #[ -d etc/init.d ] && rm -rf etc/init.d
  17. #[ -d etc/udev ] && rm -rf etc/udev
  18. #[ -d lib/udev ] && rm -rf lib/udev
  19. #arch, has extra servers in the one xorg-servers pkg...
  20. rm -f usr/bin/Xnest 2> /dev/null
  21. rm -f usr/bin/Xvfb 2> /dev/null
  22. rm -f usr/bin/Xephyr 2> /dev/null
  23. #also has dri modules, but this is a cutdown pkg...
  24. rm -rf usr/lib/xorg/modules/dri 2> /dev/null
  25. #...note, ubuntu has xorg 7.4 which seems to need /usr/lib/dri/swrast_dri.so but note
  26. # that this is in the 'xorg_base' woof package.
  27. #...note also, the arch dri modules need libdricore.so but I don't know where that is.
  28. #remove GL stuff to save size (also see xorg_base pkg)...
  29. #100703 no, leave it in, needed if user installs 'mesa' pkg...
  30. #rm -f usr/lib/xorg/modules/extensions/libglx.so
  31. #100704 slackware 13.1, these X servers get through...
  32. rm -f usr/bin/Xfbdev 2> /dev/null
  33. rm -f usr/bin/Xsdl 2> /dev/null
  34. rm -f usr/bin/Xdmx 2> /dev/null
  35. rm -f usr/bin/Xfbdev 2> /dev/null
  36. rm -f usr/bin/*dmx* 2> /dev/null
  37. #110623 mageia1 puts intel_drv.so in a strange place...
  38. if [ -f usr/lib/xorg/modules/drivers/intel-common/intel_drv.so ];then
  39. mv -f usr/lib/xorg/modules/drivers/intel-common/intel_drv.so usr/lib/xorg/modules/drivers/
  40. rmdir usr/lib/xorg/modules/drivers/intel-common
  41. fi
  42. #110727 mageia1 creates /usr/bin/X symlink to Xwrapper, override...
  43. ln -snf Xorg usr/bin/X
  44. #120516 gentoo places libglx.so, libdri.so, libdri2.so in strange place...
  45. if [ -f usr/lib/opengl/xorg-x11/extensions/libglx.so ];then
  46. if [ -d usr/lib/xorg/modules/extensions ];then
  47. cp -a -f --remove-destination usr/lib/opengl/xorg-x11/extensions/* usr/lib/xorg/modules/extensions/
  48. sync
  49. rm -rf usr/lib/opengl/xorg-x11/extensions
  50. fi
  51. fi
  52. #...also, libGL.so* in strange place, see 'mesa' template.