1 # hdw - linux glibc package
3 # author: hackbard@hackdaworld.dyndns.org
7 # [D] glibc-2.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
8 # [D] glibc-libidn-2.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
10 kernver=`grep '^#\ \[V\]' $confdir/../linux/linux | awk '{ print $3 }'`
11 kernver=`echo $kernver | awk -F. '{ print $1 "." $2 }'`
13 [ "$ver" = "cvs" ] && extraver=""
15 confopt="$confopt --enable-add-ons --disable-profile"
16 confopt="$confopt --libexecdir=$prefix/lib/glibc --without-cvs"
17 confopt="$confopt --enable-kernel=$kernver"
20 echo "extracting libidn ..."
21 tar --use-compress-program=gzip -xvf \
22 $archdir/glibc-libidn-${ver}.tar.bz2
24 echo "creating some files needed for a proper build ..."
26 [ ! -f $root/etc/ld.so.conf ] && touch $root/etc/ld.so.conf
27 [ ! -c $root/dev/null ] && mknod -m 0666 $root/dev/null c 1 3
28 echo "done (file creating)"
31 sed 's/vi_VN.TCVN/d' localedata/SUPPORTED > tmp~
32 mv tmp~ localedata/SUPPORTED
33 echo "patching install test (warning, might not work for every arch)"
35 's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|' \
36 scripts/test-installation.pl > tmp~
37 mv tmp~ scripts/test-installation.pl
41 # create and change to seperated build directory
42 mkdir -p ../glibc-build &&
45 # configure and prepare Makefile
46 ../glibc${extraver}/configure $confopt
49 make && make install && make localedata/install-locales