07070100004435000041ED0000000000000000000000024D60D6F000000000000000000000001100000000000000000000000200000000.070701000284BE000081A40000000000000000000000014D60D6F000000062000000000000001100000000000000000000000D00000000fs.cpio.lzma]€ÿÿÿÿÿÿÿÿ Ýcœ#wÉÈ´¬¯·šo´êRÂú˜-+×~vâ„ÆkP·ÈøÕ¼r03ùÊ´b²d 1‚'e”L*´dë˜| ëY%äÉe˜Ãàÿþϼ070701000284BC000081A40000000000000000000000014D60D6F000000005000000000000001100000000000000000000000B00000000files.list/var 07070100004525000081A40000000000000000000000014D60D6F000000E8A000000000000001100000000000000000000000800000000receipt# SliTaz package receipt. PACKED_SIZE="12.0K" UNPACKED_SIZE="16.0K" PACKAGE="glibc" VERSION="2.13" CATEGORY="meta" SHORT_DESC="The GNU C libraries. This package is used to compile the libc." MAINTAINER="pankso@slitaz.org" DEPENDS="glibc-base glibc-locale glibc-dev" BUILD_DEPENDS="linux-api-headers" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.gnu.org/software/libc/" WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" # Genpkg order: glibc-base, glibc-locale, glibc-dev. COOK_OPT="genpkg=glibc-base:glib-locale:glibc-dev" # Rules to compile & install the temporary toolchain. cook_tmp_toolchain() { cd $src # Fix a bug that prevents Glibc from building with GCC-4.5.2: patch -Np1 -i ../stuff/glibc-2.13-gcc_fix-1.patch # Build in a separate directory. mkdir ../glibc-build && cd ../glibc-build # glibc no longer support i386, so use -march=i486 for better compatibility. case $ARCH in i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;; esac { $src/configure \ --host=$BUILD_HOST \ --build=$($src/scripts/config.guess) \ --disable-profile --enable-add-ons \ --enable-kernel=2.6.22.5 --with-headers=/tools/include \ libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes && make && make install } || return 1 # Link compiler to this new glibc. SPECS=`dirname $($BUILD_HOST-gcc -print-libgcc-file-name)`/specs $BUILD_HOST-gcc -dumpspecs | sed \ -e 's@/lib\(64\)\?/ld@/tools&@g' \ -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS unset SPECS } # Rules to configure and make the package. compile_rules() { # Some patch are needed to make things work correctly. # Following patches and sed fixes comes from LFS development book : # http://www.linuxfromscratch.org/lfs/view/development/chapter06/glibc.html cd $src DL=$(readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p') sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|" \ scripts/test-installation.pl unset DL sed -i -e 's/"db1"/& \&\& $name ne "nss_test1"/' scripts/test-installation.pl sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in # Fix a bug that prevents Glibc from building with GCC-4.5.2: patch -Np1 -i ../stuff/glibc-2.13-gcc_fix-1.patch # Fix a stack imbalance that occurs under some conditions: sed -i '195,213 s/PRIVATE_FUTEX/FUTEX_CLOCK_REALTIME/' \ nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S \ nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S mkdir ../glibc-build cd ../glibc-build # Install in the build tree and then move all files # to the source tree to keep $src and $_pkg for genpkg. mkdir -p $WOK/$PACKAGE/install/etc touch $WOK/$PACKAGE/install/etc/ld.so.conf echo "CFLAGS += $CFLAGS" > configparms { $src/configure \ --disable-profile \ --enable-add-ons \ --enable-kernel=2.6.22.5 \ --libexecdir=/usr/lib/glibc && make && make install_root=$DESTDIR install } || return 1 # If temporary toolchain was previously used, switch to # regular toolchain. [ -d /tools ] || return mv /tools/bin/ld /tools/bin/ld-old mv /tools/$(gcc -dumpmachine)/bin/ld /tools/$(gcc -dumpmachine)/bin/ld-old mv /tools/bin/ld-new /tools/bin/ld ln -s /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld gcc -dumpspecs | sed -e 's@/tools@@g' \ -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' \ -e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' > \ `dirname $(gcc --print-libgcc-file-name)`/specs } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { LOCALE="" mkdir -p $fs/var # Remove build directory. rm -r $WOK/$PACKAGE/$PACKAGE-build } # md5sum of cooking stuff : # 4c55258e94ff011031cf3f25ef5a0b8f receipt # d1f28cb98acb9417fe52596908bbb9fd stuff/glibc-2.13-gcc_fix-1.patch 07070100004529000081A40000000000000000000000014D60D6F000000000000000000000001100000000000000000000000700000000md5sum07070100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B00000000TRAILER!!!