talimat 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # Tanım: The Glibc package contains the main C library.
  2. # URL: https://www.gnu.org/software/libc/
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. kernelsurum=4.4
  6. isim=glibc
  7. surum=2.23
  8. devir=1
  9. kaynak=(http://www.kernel.org/pub/linux/kernel/v4.x/linux-$kernelversion.tar.xz
  10. http://www.linuxfromscratch.org/patches/downloads/$isim/glibc-$surum-fhs-1.patch
  11. http://ftp.gnu.org/gnu/glibc/glibc-$surum.tar.xz glibc.locales.supported )
  12. derle() {
  13. # Headers
  14. cd linux-$kernelversion
  15. make mrproper
  16. make headers_check
  17. make INSTALL_HDR_PATH=dest headers_install
  18. find dest/include \( -name .install -o -name ..install.cmd \) -delete
  19. mkdir -p $PKG/usr/include
  20. cp -rv dest/include/* $PKG/usr/include
  21. cd ../glibc-$surum
  22. patch -Np1 -i ../glibc-$surum-fhs-1.patch
  23. mkdir -v ../glibc-build
  24. cd ../glibc-build
  25. ../glibc-$surum/configure --prefix=/usr \
  26. --disable-profile \
  27. --enable-kernel=2.6.32 \
  28. --enable-obsolete-rpc
  29. make || make -j1
  30. # make -k check 2>&1 | tee glibc-check-log
  31. # grep Error glibc-check-log
  32. make install_root=$PKG install
  33. rm -rf $PKG/usr/share/info/dir
  34. mkdir -p $PKG/etc
  35. cp -v ../glibc-$surum/nscd/nscd.conf $PKG/etc/nscd.conf
  36. mkdir -pv $PKG/var/cache/nscd
  37. touch $PKG/etc/ld.so.conf
  38. mkdir -pv $PKG/usr/lib/locale
  39. cp $SRC/glibc.locales.supported \
  40. ../glibc-$surum/localedata/SUPPORTED
  41. make install_root=$PKG localedata/install-locales
  42. cat > $PKG/etc/nsswitch.conf << "EOF"
  43. # Begin /etc/nsswitch.conf
  44. passwd: files
  45. group: files
  46. shadow: files
  47. hosts: files dns
  48. networks: files
  49. protocols: files
  50. services: files
  51. ethers: files
  52. rpc: files
  53. # End /etc/nsswitch.conf
  54. EOF
  55. cat > $PKG/etc/ld.so.conf << "EOF"
  56. # Begin /etc/ld.so.conf
  57. /lib
  58. /lib64
  59. /usr/lib
  60. /usr/lib64
  61. /usr/local/lib
  62. /usr/local/lib64
  63. # Add an include directory
  64. include /etc/ld.so.conf.d/*.conf
  65. # End of /etc/ld.so.conf
  66. EOF
  67. if [ "`uname -m`" == "i686" ];then
  68. cat > $PKG/etc/ld.so.conf << "EOF"
  69. # Begin /etc/ld.so.conf
  70. /lib
  71. /usr/lib
  72. /usr/local/lib
  73. # Add an include directory
  74. include /etc/ld.so.conf.d/*.conf
  75. # End of /etc/ld.so.conf
  76. EOF
  77. fi
  78. mkdir $PKG/etc/ld.so.conf.d
  79. }