diff options
author | Achim Gottinger <achim@gentoo.org> | 2001-02-21 06:19:57 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2001-02-21 06:19:57 +0000 |
commit | d5a8940bf3067d9082f3c686f86b1329e629ed7a (patch) | |
tree | 609df0371a5ee406c71c63e1f3e8820142385ebc /sys-libs | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-d5a8940bf3067d9082f3c686f86b1329e629ed7a.tar.gz gentoo-2-d5a8940bf3067d9082f3c686f86b1329e629ed7a.tar.bz2 gentoo-2-d5a8940bf3067d9082f3c686f86b1329e629ed7a.zip |
*** empty log message ***
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/glibc/files/glibc-2.2.2-test-lfs-timeout.patch | 2 | ||||
-rw-r--r-- | sys-libs/glibc/glibc-2.2.2-r1.ebuild | 127 |
2 files changed, 128 insertions, 1 deletions
diff --git a/sys-libs/glibc/files/glibc-2.2.2-test-lfs-timeout.patch b/sys-libs/glibc/files/glibc-2.2.2-test-lfs-timeout.patch index 3ec6ab736383..ac4de72dad00 100644 --- a/sys-libs/glibc/files/glibc-2.2.2-test-lfs-timeout.patch +++ b/sys-libs/glibc/files/glibc-2.2.2-test-lfs-timeout.patch @@ -5,7 +5,7 @@ /* We might need a bit longer timeout. */ -#define TIMEOUT 20 /* sec */ -+#define TIMEOUT 40 /* sec */ ++#define TIMEOUT 120 /* sec */ /* This defines the `main' function and some more. */ #include <test-skeleton.c> diff --git a/sys-libs/glibc/glibc-2.2.2-r1.ebuild b/sys-libs/glibc/glibc-2.2.2-r1.ebuild new file mode 100644 index 000000000000..aac7996f0cea --- /dev/null +++ b/sys-libs/glibc/glibc-2.2.2-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.2.2-r1.ebuild,v 1.1 2001/02/21 06:19:57 achim Exp $ + +A="$P.tar.gz glibc-linuxthreads-${PV}.tar.gz" +S=${WORKDIR}/${P} +DESCRIPTION="GNU libc6 (also called glibc2) C library" +SRC_URI="ftp://sourceware.cygnus.com/pub/glibc/releases/glibc-${PV}.tar.gz + ftp://sourceware.cygnus.com/pub/glibc/releases/glibc-linuxthreads-${PV}.tar.gz + ftp://ftp.unina.it/pub/Unix/cygnus/glibc/releases/glibc-${PV}.tar.gz + ftp://ftp.unina.it/pub/Unix/cygnus/glibc/releases/glibc-linuxthreads-${PV}.tar.gz + ftp://ftp.gnu.org/pub/gnu/glibc/glibc-${PV}.tar.gz + ftp://ftp.gnu.org/pub/gnu/glibc/glibc-linuxthreads-${PV}.tar.gz" +HOMEPAGE="http://www.gnu.org/software/libc/libc.html" + +DEPEND="sys-devel/gettext + gd? ( media-libs/libgd )" + +RDEPEND="gd? ( sys-libs/zlib media-libs/libpng )" + +PROVIDE="virtual/glibc sys-devel/autoconf" + +src_unpack() { + + unpack glibc-${PV}.tar.gz + cd ${S} + unpack glibc-linuxthreads-${PV}.tar.gz + for i in mtrace-perl mtrace-tst-loading-perl configure.in + do + echo "Applying $i patch..." + patch -p0 < ${FILESDIR}/glibc-2.2.2-${i}.diff + done + autoconf + cd io + patch -p0 < ${FILESDIR}/glibc-2.2.2-test-lfs-timeout.patch + + +} + +src_compile() { + + local myconf + if [ "`use build`" ] + then + # If we build for the build system we use the kernel headers from the target + myconf="--with-header=$ROOT}usr/include" + fi + if [ "`use gd`" ] + then + myconf="${myconf} --with-gd=yes" + else + myconf="${myconf} --with-gd=no" + fi + rm -rf buildhere + mkdir buildhere + cd buildhere + try ../configure --host=${CHOST} --without-cvs \ + --enable-add-ons=linuxthreads \ + --disable-profile --prefix=/usr \ + --mandir=/usr/share/man --infodir=/usr/share/info \ + --libexecdir=/usr/lib/misc \ + --enable-kernel=2.4.0 ${myconf} + try make + make check +} + + +src_install() { + + rm -rf ${D} + mkdir ${D} + dodir /etc/rc.d/init.d + export LC_ALL=C + try make PARALELLMFLAGS=${MAKEOPTS} install_root=${D} install -C buildhere + try make PARALELLMFLAGS=${MAKEOPTS} install_root=${D} info -C buildhere + try make PARALELLMFLAGS=${MAKEOPTS} install_root=${D} localedata/install-locales -C buildhere + try make PARALELLMFLAGS=${MAKEOPTS} -C linuxthreads/man + + cd ${S}/linuxthreads/man + for i in *.3thr + do + newman $i ${i%.3thr}.3 + done + + cd ${S} + chmod 755 ${D}/usr/lib/misc/pt_chown + install -m 644 nscd/nscd.conf ${D}/etc + install -m 755 ${FILESDIR}/nscd ${D}/etc/rc.d/init.d/nscd + rm ${D}/lib/ld-linux.so.2 + rm ${D}/lib/libc.so.6 + + dodoc BUGS ChangeLog* CONFORMANCE COPYING* FAQ INTERFACE NEWS NOTES \ + PROJECTS README* +} + +pkg_preinst() +{ + echo "Saving ld-linux and libc6" + + /bin/cp ${ROOT}lib/ld-linux.so.2 ${ROOT}tmp + /sbin/sln ${ROOT}tmp/ld-linux.so.2 ${ROOT}lib/ld-linux.so.2 + /bin/cp ${ROOT}lib/libc.so.6 ${ROOT}tmp + /sbin/sln ${ROOT}tmp/libc.so.6 ${ROOT}lib/libc.so.6 + + if [ -e ${ROOT}etc/localtime ] + then + #keeping old timezone + /bin/rm ${D}/etc/localtime + else + echo "Please remember to set your timezone using the zic command." + fi +} + +pkg_postinst() +{ + echo "Setting ld-linux and libc6" + + /sbin/sln ${ROOT}lib/ld-${PV}.so ${ROOT}lib/ld-linux.so.2 + /sbin/sln ${ROOT}lib/libc-${PV}.so ${ROOT}lib/libc.so.6 + /bin/rm ${ROOT}tmp/ld-linux.so.2 + /bin/rm ${ROOT}tmp/libc.so.6 + /sbin/ldconfig -r ${ROOT} + +} + + |