FIXUPHACK 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #120517 gentoo...
  2. #DISTRO_BINARY_COMPAT is exported in 2createpackages.
  3. if [ "$DISTRO_BINARY_COMPAT" = "gentoo" ];then
  4. GCCEXE="`find usr -name 'gcc' | head -n 1`"
  5. if [ "$GCCEXE" ];then
  6. GCCBINDIR="`dirname $GCCEXE`"
  7. cp -a -f --remove-destination ${GCCBINDIR}/* usr/bin/
  8. #rm -rf ./${GCCBINDIR}
  9. fi
  10. fi
  11. #ubuntu is the problem, these symlinks are missing...
  12. if [ ! -e usr/bin/g++ ];then
  13. REALFILE="`find usr/bin/ -maxdepth 1 -type f -name "g++-*" | head -n 1 | rev | cut -f 1 -d '/' | rev`"
  14. ln -s $REALFILE usr/bin/g++
  15. ln -s $REALFILE usr/bin/c++
  16. fi
  17. #121028 01micko: Slackware ships with exec named gcc-4.7.1 and another util named gcc-somethingelse (forget sorry)
  18. # change -name "gcc-*" to -name "gcc-*.*" ...
  19. if [ ! -e usr/bin/gcc ];then
  20. REALFILE="`find usr/bin/ -maxdepth 1 -type f -name "gcc-*.*" | head -n 1 | rev | cut -f 1 -d '/' | rev`"
  21. ln -s $REALFILE usr/bin/gcc
  22. ln -s $REALFILE usr/bin/cc
  23. fi
  24. #t2, i had to recompile gcc in running quirky, my new binary tarball has some things missing...
  25. if [ ! -e usr/bin/cc ];then
  26. REALFILE="`find usr/bin/ -maxdepth 1 -type f -name gcc | head -n 1 | rev | cut -f 1 -d '/' | rev`"
  27. [ "$REALFILE" = "" ] && REALFILE="`find usr/bin/ -maxdepth 1 -type f -name "gcc-*" | head -n 1 | rev | cut -f 1 -d '/' | rev`"
  28. [ "$REALFILE" ] && ln -s $REALFILE usr/bin/cc
  29. fi
  30. if [ ! -e usr/lib/libgcc_s.so ];then
  31. REALFILE="`find usr/lib/ -maxdepth 1 -type f -name "libgcc_s.so*" | head -n 1 | rev | cut -f 1 -d '/' | rev`"
  32. [ "$REALFILE" ] && ln -s $REALFILE usr/lib/libgcc_s.so
  33. fi
  34. if [ ! -e usr/bin/c++ ];then
  35. REALFILE="`find usr/bin/ -maxdepth 1 -type f -name g++ | head -n 1 | rev | cut -f 1 -d '/' | rev`"
  36. [ "$REALFILE" = "" ] && REALFILE="`find usr/bin/ -maxdepth 1 -type f -name "g++-*" | head -n 1 | rev | cut -f 1 -d '/' | rev`"
  37. [ "$REALFILE" ] && ln -s $REALFILE usr/bin/c++
  38. fi
  39. #110628 mageia 1...
  40. if [ ! -e usr/bin/cpp ];then
  41. CPPBIN="`find usr/bin/ -maxdepth 1 -type f -name 'cpp-*' | head -n 1`"
  42. if [ "$CPPBIN" ];then
  43. CPPBASE="`basename $CPPBIN`"
  44. ln -s $CPPBASE usr/bin/cpp
  45. fi
  46. fi
  47. #130707...
  48. BADPYLIB="$(find usr/lib -mindepth 1 -maxdepth 1 -iname 'libstdc*.py' | tr '\n' ' ')"
  49. if [ "$BADPYLIB" ];then
  50. for ABADPYLIB in $BADPYLIB
  51. do
  52. rm -f $ABADPYLIB
  53. done
  54. fi