-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 08c3bf145cb5142ef315926eb321176f uclibc-0.9.26-r2.ebuild 6198
-MD5 d19c535314aba3c7ad5956c68571886a uclibc-0.9.26-r4.ebuild 7223
-MD5 d98118dbcb77466679b07fd6eb029f9f uclibc-9999.ebuild 5443
-MD5 e00c5423073ca5b75f6b38f03cc9c46e uclibc-0.9.26-r1.ebuild 2565
-MD5 b6e51a393cae9daddfda7e1eabadb679 uclibc-0.9.26-r3.ebuild 6348
-MD5 7ba6e2f7dbe4f241de617f5ebfa35fa0 uclibc-0.9.26-r5.ebuild 7658
MD5 f7e7f52bd817adb9e16127bf98e5aa71 ChangeLog 7643
-MD5 7fde305dfd21aeac12e0eb721e0f6a17 uclibc-0.9.21.ebuild 1096
MD5 e96b4dfc373a1cdf7735aeae52c4cf7e metadata.xml 999
+MD5 7fde305dfd21aeac12e0eb721e0f6a17 uclibc-0.9.21.ebuild 1096
+MD5 d98118dbcb77466679b07fd6eb029f9f uclibc-9999.ebuild 5443
+MD5 7ba6e2f7dbe4f241de617f5ebfa35fa0 uclibc-0.9.26-r5.ebuild 7658
MD5 59d40f2d78a6bbdb5e3fc3f0efe960ef uclibc-0.9.26-r7.ebuild 7861
MD5 d16f404e56abc9f0ab5c372b88a6905d files/Makefile-cp-order-fix.patch 897
+MD5 799adc7fb6ec9ffd653831cea1d32dd5 files/digest-uclibc-0.9.21 67
MD5 0b733285f186f31c1be9ffcc42f1064e files/getent 973
-MD5 cf4a11cd99eb78be459f253cf9c53030 files/digest-uclibc-0.9.26-r1 67
-MD5 02ffb023d5b3be46c7e0c9aadf48d304 files/digest-uclibc-0.9.26-r2 231
-MD5 469ea7f6803a9d27eadc0c9437171df6 files/digest-uclibc-0.9.26-r3 231
-MD5 44c3eaa7974b57f415b3acb6a30cc1e8 files/digest-uclibc-0.9.26-r4 231
MD5 6d2b5c523d34c86df9bc37747d9261dc files/digest-uclibc-0.9.26-r5 231
-MD5 6d2b5c523d34c86df9bc37747d9261dc files/digest-uclibc-0.9.26-r7 231
-MD5 799adc7fb6ec9ffd653831cea1d32dd5 files/digest-uclibc-0.9.21 67
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-uclibc-9999 0
-MD5 df59fcf3a02c17b7dac6999bd9262d05 files/cvs/22_all_uClibc-ld-now.patch 1072
-MD5 7eea15a7a3e8d8a2a222b815e57dc221 files/cvs/13_all_uClibc-enable-ssp.patch 331
-MD5 9cb04f6f038b903868f99d90f81e7e61 files/cvs/21_all_uClibc-ld-relro.patch 1040
-MD5 4216cdf86d54f45fa04cb44a5425b3ff files/0.9.23/uClibc-0.9.23-pax.patch 3607
+MD5 6d2b5c523d34c86df9bc37747d9261dc files/digest-uclibc-0.9.26-r7 231
MD5 17ecd222df47b5253f35787097440a5a files/0.9.23/uClibc-0.9.23-etdyn.patch 5832
MD5 298b7b42f80e1f8ae395df81c47eb213 files/0.9.23/uClibc-0.9.23-flipturn.patch 1821
-MD5 f7c264d37687f1a32f1c6e31239f2276 files/0.9.26/uclibc-0.9.26-noexecstack.patch 15273
-MD5 6835449424e7a8a38e9c85ecf1b73577 files/0.9.26/arm-ucontext.patch 303
+MD5 4216cdf86d54f45fa04cb44a5425b3ff files/0.9.23/uClibc-0.9.23-pax.patch 3607
+MD5 7eea15a7a3e8d8a2a222b815e57dc221 files/cvs/13_all_uClibc-enable-ssp.patch 331
+MD5 9cb04f6f038b903868f99d90f81e7e61 files/cvs/21_all_uClibc-ld-relro.patch 1040
+MD5 df59fcf3a02c17b7dac6999bd9262d05 files/cvs/22_all_uClibc-ld-now.patch 1072
MD5 46d965d8bdfe981f75fb8696799d9d2a files/0.9.26/ssp.c 3937
-MD5 7ff9f1e05cdfbbe0e156ea81bf8b55ee files/0.9.26/uClibc-20040921-ldso-unsecvars.patch 1024
-MD5 a503ef49001f5f67d61cd40b0809fb76 files/0.9.26/unsecvars.h 682
+MD5 2416f5e954ccb8b39b1c0d6a3cf5e827 files/0.9.26/uClibc-0.9.26-Makefile.patch 1478
+MD5 bdd1e91ee48fb8be0d28cabdfcfdf3ff files/0.9.26/uClibc-0.9.26-pie-option.patch 863
MD5 49671ccbdf2c8055efc6cde0003cb6c5 files/0.9.26/arm-fix-missing-syscalls.patch 2264
-MD5 efd96414f3be520f07eabd1c02be1ecb files/0.9.26/uclibc-0.9.26-resolve-segfault.patch 1227
MD5 874260fc77637deccf7588cfc1c76674 files/0.9.26/uClibc-20040613-do_rem.patch 391
+MD5 b9df87c681aa3a1ef3033cb195e516df files/0.9.26/uclibc-0.9.26-arm-dl-sysdep.patch 795
MD5 d35beaf332590fed8c619483d4598dc6 files/0.9.26/uclibc-0.9.26-ssp-gcc34-after-frandom.patch 542
-MD5 bdd1e91ee48fb8be0d28cabdfcfdf3ff files/0.9.26/uClibc-0.9.26-pie-option.patch 863
+MD5 f7c264d37687f1a32f1c6e31239f2276 files/0.9.26/uclibc-0.9.26-noexecstack.patch 15273
+MD5 6835449424e7a8a38e9c85ecf1b73577 files/0.9.26/arm-ucontext.patch 303
+MD5 efd96414f3be520f07eabd1c02be1ecb files/0.9.26/uclibc-0.9.26-resolve-segfault.patch 1227
MD5 7157f784ba7672c9904d289712131a52 files/0.9.26/uclibc-0.9.26-ldso-cache.patch 410
-MD5 2416f5e954ccb8b39b1c0d6a3cf5e827 files/0.9.26/uClibc-0.9.26-Makefile.patch 1478
-MD5 b9df87c681aa3a1ef3033cb195e516df files/0.9.26/uclibc-0.9.26-arm-dl-sysdep.patch 795
+MD5 7ff9f1e05cdfbbe0e156ea81bf8b55ee files/0.9.26/uClibc-20040921-ldso-unsecvars.patch 1024
+MD5 a503ef49001f5f67d61cd40b0809fb76 files/0.9.26/unsecvars.h 682
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.4 (GNU/Linux)
+Version: GnuPG v1.9.10 (GNU/Linux)
-iD8DBQFBgImF94CCfB4KcwwRAlMuAJwIu3E1WquNwFPT1u4NMAqQQhf59QCeJtQN
-n0C2e+hSYdc99frnIFI3F8Q=
-=RIHK
+iD8DBQFBinOEHTu7gpaalycRAkR5AJ4y0dukXg5aPoKol6s48o/Cpq8KYQCdESMR
+XQuy54HoO0k7LXXJR7X9f+I=
+=LnbE
-----END PGP SIGNATURE-----
+++ /dev/null
-MD5 7212713c432dd0de6ec2140c2a6212e4 uClibc-0.9.26.tar.bz2 1604543
+++ /dev/null
-MD5 7212713c432dd0de6ec2140c2a6212e4 uClibc-0.9.26.tar.bz2 1604543
-MD5 9d838fe97871b69e1fc7b78e15421457 uClibc-0.9.26-cvs-update-20040613.patch.bz2 285917
-MD5 b7820c6b79f02d2d07a7ac75abfe90a5 uClibc-0.9.26-patches-1.1.tar.bz2 7162
+++ /dev/null
-MD5 7212713c432dd0de6ec2140c2a6212e4 uClibc-0.9.26.tar.bz2 1604543
-MD5 476528878f38227aee260f801fc8f607 uClibc-0.9.26-cvs-update-20040630.patch.bz2 286821
-MD5 b7820c6b79f02d2d07a7ac75abfe90a5 uClibc-0.9.26-patches-1.1.tar.bz2 7162
+++ /dev/null
-MD5 7212713c432dd0de6ec2140c2a6212e4 uClibc-0.9.26.tar.bz2 1604543
-MD5 6333e472bb85f5d388ea98ad1f09b71a uClibc-0.9.26-cvs-update-20040730.patch.bz2 321696
-MD5 b7820c6b79f02d2d07a7ac75abfe90a5 uClibc-0.9.26-patches-1.1.tar.bz2 7162
+++ /dev/null
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/uclibc/uclibc-0.9.26-r1.ebuild,v 1.10 2004/08/19 19:36:21 solar Exp $
-
-inherit eutils flag-o-matic
-
-MY_P="${P/ucl/uCl}"
-DESCRIPTION="C library for developing embedded Linux systems"
-HOMEPAGE="http://www.uclibc.org/"
-SRC_URI="http://www.kernel.org/pub/linux/libs/uclibc/${MY_P}.tar.bz2"
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc ~mips arm"
-IUSE="pie"
-RDEPEND=""
-DEPEND="sys-devel/gcc"
-PROVIDE="virtual/glibc virtual/libc"
-
-S=${WORKDIR}/${MY_P}
-
-src_unpack() {
- local PIE=0
- local SSP=0
-
- unpack ${A}
- cd ${S}
-
- if [ "${PV}" == "0.9.26" ] ; then
- # patch needed to really enable FORCE_SHAREABLE_SEGMENTS
- # when building pic code. submitted by Peter S. Mazinger
- epatch ${FILESDIR}/${PV}/uClibc-${PV}-pie-option.patch
- epatch ${FILESDIR}/${PV}/uClibc-${PV}-Makefile.patch
- fi
-
- # support archs which dont implement all syscalls
- epatch ${FILESDIR}/${PV}/arm-fix-missing-syscalls.patch
-
- # fixup for install perms
- sed -i -e "s:-fa:-dRf:g" Makefile
-
- local target=""
- if [ "${ARCH}" == "x86" ] ; then
- target="i386"
- elif [ "${ARCH}" == "ppc" ] ; then
- target="powerpc"
- else
- # sparc|mips|alpha|arm|sh
- target="${ARCH}"
- fi
- sed -i \
- -e "s:default TARGET_i386:default TARGET_${target}:" \
- extra/Configs/Config.in
- sed -i \
- -e "s:default CONFIG_GENERIC_386:default CONFIG_${UCLIBC_CPU:-GENERIC_386}:" \
- extra/Configs/Config.${target}
-
- make defconfig >/dev/null || die "could not config"
- for def in UCLIBC_{HAS_LOCALE,PROFILING} DO{DEBUG,ASSERTS} SUPPORT_LD_DEBUG{,_EARLY} ; do
- sed -i "s:${def}=y:# ${def} is not set:" .config
- done
-
- if use x86 ; then
- use pie && PIC=1
- [ "`is-flag -fPIC`" == "true" ] && PIC=1
- fi
-
- [ "`is-flag -fstack-protector`" == "true" ] && SSP=1
- [ "`is-flag -fstack-protector-all`" == "true" ] && SSP=1
-
- if [ "${PIC}" == 1 ] ; then
- einfo "Enable Position Independent Executable support in ${P}"
- sed -i -e "s:# UCLIBC_PIE_SUPPORT.*:UCLIBC_PIE_SUPPORT=y:" .config
- sed -i -e "s:# UCLIBC_PIE_SUPPORT.*:UCLIBC_PIE_SUPPORT=y:" .config
- fi
- if [ "${SSP}" == 1 ]; then
- einfo "Enable Stack Smashing Protections support in ${P}"
- sed -i -e "s:# UCLIBC_PROPOLICE.*:UCLIBC_PROPOLICE=y:" .config
- fi
-
- cp .config myconfig
-
- emake clean >/dev/null || die "could not clean"
-}
-
-src_compile() {
- mv myconfig .config
- emake -j1 || die "could not make"
-}
-
-src_install() {
- emake PREFIX=${D} install || die "install failed"
- dodoc Changelog* README TODO docs/*.txt
-}
+++ /dev/null
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/uclibc/uclibc-0.9.26-r2.ebuild,v 1.9 2004/08/19 19:36:21 solar Exp $
-
-inherit eutils flag-o-matic gcc
-
-MY_P="${P/ucl/uCl}"
-DESCRIPTION="C library for developing embedded Linux systems"
-HOMEPAGE="http://www.uclibc.org/"
-SRC_URI="http://www.kernel.org/pub/linux/libs/uclibc/${MY_P}.tar.bz2"
-
-CVS_VER="20040613"
-SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-cvs-update-${CVS_VER}.patch.bz2"
-
-PATCH_VER="1.1"
-SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2"
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc ~mips ~arm"
-IUSE="build hardened ipv6" # nls is not supported yet
-RDEPEND=""
-DEPEND="sys-devel/gcc"
-PROVIDE="virtual/glibc virtual/libc"
-
-S=${WORKDIR}/${MY_P}
-
-check_main_libc() {
- if [ -f /lib/lib${MY_P}.so -a ! -f /lib/libc.so.6 ] ; then
- if echo "${CHOST}" | grep -q uclibc ; then
- retval=0
- else
- retval=1
- fi
- else
- retval=1
- fi
- [ "${retval}" = "0" ] && SYS_LIBC=uClibc || SYS_LIBC=glibc
- echo
- einfo "We are building for ${SYS_LIBC} system library"
- echo
-}
-
-src_unpack() {
- unpack ${A}
- cd ${S}
-
- if [ -n "${CVS_VER}" ]
- then
- epatch ${DISTDIR}/${MY_P}-cvs-update-${CVS_VER}.patch.bz2
- epatch ${FILESDIR}/0.9.26/uClibc-20040613-do_rem.patch
- fi
-
- cp ${FILESDIR}/0.9.26/ssp.c ${S}/libc/sysdeps/linux/common/ || \
- die "failed to copy ssp.c to ${S}/libc/sysdeps/linux/common/"
- # gcc 3.4 nukes ssp without this patch
- if [ "`gcc-major-version`" -ge "3" -a "`gcc-minor-version`" -ge "4" ]
- then
- epatch ${FILESDIR}/0.9.26/uclibc-0.9.26-ssp-gcc34-after-frandom.patch
- fi
-
- if [ -n "${PATCH_VER}" ]
- then
- unpack ${MY_P}-patches-${PATCH_VER}.tar.bz2
- # for now we remove relro/now, no support for relro in ldso
- rm -f ${WORKDIR}/patch/*relro*
- rm -f ${WORKDIR}/patch/*now*
- # remove default ssp build
- use hardened || rm -f ${WORKDIR}/patch/*enable-ssp*
- epatch ${WORKDIR}/patch
- fi
-
- # support archs which dont implement all syscalls
- [ -z "${CVS_VER}" ] && epatch ${FILESDIR}/${PV}/arm-fix-missing-syscalls.patch || \
- epatch ${FILESDIR}/${PV}/uclibc-0.9.26-arm-dl-sysdep.patch
-
- # fixup for install perms
- sed -i -e "s:-fa:-dRf:g" Makefile
-
- local target=""
- if [ "${ARCH}" == "x86" ] ; then
- target="i386"
- elif [ "${ARCH}" == "ppc" ] ; then
- target="powerpc"
- else
- # sparc|mips|alpha|arm|sh
- target="${ARCH}"
- fi
- sed -i \
- -e "s:default TARGET_i386:default TARGET_${target}:" \
- extra/Configs/Config.in
- sed -i \
- -e "s:default CONFIG_GENERIC_386:default CONFIG_${UCLIBC_CPU:-GENERIC_386}:" \
- extra/Configs/Config.${target}
-
- make defconfig >/dev/null || die "could not config"
-
- # this could be a debug flag
- for def in UCLIBC_PROFILING DO{DEBUG,ASSERTS} SUPPORT_LD_DEBUG{,_EARLY} ; do
- sed -i -e "s:${def}=y:# ${def} is not set:" .config
- done
-
- for def in DO_C99_MATH UCLIBC_HAS_{RPC,CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC,FTW} ; do
- sed -i -e "s:# ${def} is not set:${def}=y:" .config
- done
- echo "UCLIBC_HAS_FULL_RPC=n" >> .config
-
- #if use nls
- #then
- # sed -i -e "s:# UCLIBC_HAS_LOCALE is not set:UCLIBC_HAS_LOCALE=y:" .config
- # echo "UCLIBC_HAS_XLOCALE=n" >> .config
- # echo "UCLIBC_HAS_GLIBC_DIGIT_GROUPING=y" >> .config
- # echo "UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING=y" >> .config
- # echo "UCLIBC_HAS_GETTEXT_AWARENESS=y" >> .config
- # # on pax enabled kernels the locale files can't be built
- # echo "UCLIBC_PREGENERATED_LOCALE_DATA=n" >> .config
- #fi
- # we disable LOCALE for any case, gettext has to be used
- echo "UCLIBC_HAS_LOCALE=n" >> .config
-
- use ipv6 && sed -i -e "s:# UCLIBC_HAS_IPV6 is not set:UCLIBC_HAS_IPV6=y:" .config
-
- if use hardened
- then
- if use x86
- then
- einfo "Enable Position Independent Executable support in ${P}"
- sed -i -e "s:# UCLIBC_PIE_SUPPORT.*:UCLIBC_PIE_SUPPORT=y:" .config
- fi
-
- einfo "Enable Stack Smashing Protections support in ${P}"
- sed -i -e "s:# UCLIBC_PROPOLICE.*:UCLIBC_PROPOLICE=y:" .config
- echo "PROPOLICE_BLOCK_ABRT=n" >> .config
- echo "PROPOLICE_BLOCK_SEGV=n" >> .config
- echo "PROPOLICE_BLOCK_KILL=y" >> .config
- fi
-
- # we are building against system installed kernel headers
- sed -i -e 's:KERNEL_SOURCE.*:KERNEL_SOURCE="/usr":' .config
-
- check_main_libc
- if [ "${SYS_LIBC}" = "uClibc" ]
- then
- sed -i -e 's:SHARED_LIB_LOADER_PREFIX=.*:SHARED_LIB_LOADER_PREFIX="/lib":' .config
- sed -i -e 's:DEVEL_PREFIX=.*:DEVEL_PREFIX="/usr":' .config
- sed -i -e 's:RUNTIME_PREFIX=.*:RUNTIME_PREFIX="/":' .config
- fi
-
- make -s oldconfig > /dev/null || die "could not make oldconfig"
-
- chmod +x extra/scripts/relative_path.sh
-
- cp .config myconfig
-
- emake clean >/dev/null || die "could not clean"
-}
-
-src_compile() {
- # running tests require this
- use build || addwrite /dev/ptmx
- mv myconfig .config
-
- #if use nls
- #then
- # # these can be built only if the build system supports locales (as of 0.9.26)
- # emake -j1 headers
- # cd extra/locale
- # make clean
- # find ./charmaps -name "*.pairs" > codesets.txt
- # cp LOCALES locales.txt
- # emake -j1 || die "could not make locales"
- # cd ../..
- #fi
-
- emake -j1 || die "could not make"
- if ! use build
- then
- if [ "${SYS_LIBC}" = "uClibc" ]
- then
- emake -j1 utils || die "could not make utils"
- fi
- # assert test fails on pax enabled kernels - normal
- # vfork test fails in sandbox
- cd test; make; cd ..
- fi
-}
-
-src_install() {
- emake PREFIX=${D} install || die "install failed"
-
- # remove files coming from kernel-headers
- # scsi is uclibc's own directory since cvs 20040212
- if [ "${SYS_LIBC}" = "uClibc" ]
- then
- rm -rf ${D}/usr/include/{asm,linux}
- fi
-
- rm -f ${D}/usr/lib/lib*_pic.a
-
- if ! use build
- then
- if [ "${SYS_LIBC}" = "uClibc" ]
- then
- emake PREFIX=${D} install_utils || die "install-utils failed"
- dodir /usr/bin
- exeinto /usr/bin
- doexe ${FILESDIR}/getent
- fi
- dodoc Changelog* README TODO docs/*.txt
- doman debian/*.1
- fi
-}
-
-#pkg_postinst() {
-#if [ "${SYS_LIBC}" = "uClibc" ] ; then
-# if [ "${ROOT}" = "/" ] ; then
-# /sbin/ldconfig
-# [ ! -e /etc/TZ ] && echo UTC > /etc/TZ
-# # reload init?
-# fi
-#else
-#should we add the lib dir to ld.so.conf?
-#fi
-#}
+++ /dev/null
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/uclibc/uclibc-0.9.26-r3.ebuild,v 1.9 2004/09/06 19:07:39 ciaranm Exp $
-
-inherit eutils flag-o-matic gcc
-
-MY_P="${P/ucl/uCl}"
-CVS_VER="20040630"
-PATCH_VER="1.1"
-DESCRIPTION="C library for developing embedded Linux systems"
-HOMEPAGE="http://www.uclibc.org/"
-SRC_URI="http://www.kernel.org/pub/linux/libs/uclibc/${MY_P}.tar.bz2
- mirror://gentoo/${MY_P}-cvs-update-${CVS_VER}.patch.bz2
- mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2"
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc ~mips ~arm"
-IUSE="build hardened ipv6 static" # nls is not supported yet
-RDEPEND=""
-DEPEND="sys-devel/gcc"
-PROVIDE="virtual/glibc virtual/libc"
-
-S=${WORKDIR}/${MY_P}
-
-check_main_libc() {
- if [ "${CHOST/uclibc}" != "${CHOST}" ] ; then
- SYS_LIBC=uClibc
- else
- SYS_LIBC=glibc
- fi
- export SYS_LIBC
- echo
- einfo "We are building for ${SYS_LIBC} system library"
- echo
-}
-
-src_unpack() {
- unpack ${A}
- cd ${S}
-
- if [ -n "${CVS_VER}" ]
- then
- epatch ${DISTDIR}/${MY_P}-cvs-update-${CVS_VER}.patch.bz2
- fi
-
- cp ${FILESDIR}/0.9.26/ssp.c ${S}/libc/sysdeps/linux/common/ \
- || die "failed to copy ssp.c to ${S}/libc/sysdeps/linux/common/"
- # gcc 3.4 nukes ssp without this patch
- if [ "`gcc-major-version`" -eq "3" -a "`gcc-minor-version`" -ge "4" ]
- then
- epatch ${FILESDIR}/0.9.26/uclibc-0.9.26-ssp-gcc34-after-frandom.patch
- fi
-
- if [ -n "${PATCH_VER}" ]
- then
- unpack ${MY_P}-patches-${PATCH_VER}.tar.bz2
- # for now we remove relro/now, no support for relro in ldso
- rm -f ${WORKDIR}/patch/*relro*
- rm -f ${WORKDIR}/patch/*now*
- # remove default ssp build
- use hardened || rm -f ${WORKDIR}/patch/*enable-ssp*
- epatch ${WORKDIR}/patch
- fi
-
- # support archs which dont implement all syscalls
- [ -z "${CVS_VER}" ] && epatch ${FILESDIR}/${PV}/arm-fix-missing-syscalls.patch || \
- epatch ${FILESDIR}/${PV}/uclibc-0.9.26-arm-dl-sysdep.patch
-
- # build all .S files w/ -Wa,--noexecstack
- epatch ${FILESDIR}/${PV}/${P}-noexecstack.patch
-
- # fixup for install perms
- sed -i -e "s:-fa:-dRf:g" Makefile
-
- local target=""
- if [ "${ARCH}" == "x86" ] ; then
- target="i386"
- elif [ "${ARCH}" == "ppc" ] ; then
- target="powerpc"
- else
- # sparc|mips|alpha|arm|sh
- target="${ARCH}"
- fi
- sed -i \
- -e "s:default TARGET_i386:default TARGET_${target}:" \
- extra/Configs/Config.in
- sed -i \
- -e "s:default CONFIG_GENERIC_386:default CONFIG_${UCLIBC_CPU:-GENERIC_386}:" \
- extra/Configs/Config.${target}
-
- make defconfig >/dev/null || die "could not config"
-
- # this could be a debug flag
- for def in UCLIBC_PROFILING DO{DEBUG,ASSERTS} SUPPORT_LD_DEBUG{,_EARLY} ; do
- sed -i -e "s:${def}=y:# ${def} is not set:" .config
- done
-
- for def in DO_C99_MATH UCLIBC_HAS_{RPC,CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC,FTW} ; do
- sed -i -e "s:# ${def} is not set:${def}=y:" .config
- done
- echo "UCLIBC_HAS_FULL_RPC=n" >> .config
-
- #if use nls
- #then
- # sed -i -e "s:# UCLIBC_HAS_LOCALE is not set:UCLIBC_HAS_LOCALE=y:" .config
- # echo "UCLIBC_HAS_XLOCALE=n" >> .config
- # echo "UCLIBC_HAS_GLIBC_DIGIT_GROUPING=y" >> .config
- # echo "UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING=y" >> .config
- # echo "UCLIBC_HAS_GETTEXT_AWARENESS=y" >> .config
- # # on pax enabled kernels the locale files can't be built
- # echo "UCLIBC_PREGENERATED_LOCALE_DATA=n" >> .config
- #fi
- # we disable LOCALE for any case, gettext has to be used
- echo "UCLIBC_HAS_LOCALE=n" >> .config
-
- use ipv6 && sed -i -e "s:# UCLIBC_HAS_IPV6 is not set:UCLIBC_HAS_IPV6=y:" .config
-
- if use hardened
- then
- if use x86
- then
- einfo "Enable Position Independent Executable support in ${P}"
- sed -i -e "s:# UCLIBC_PIE_SUPPORT.*:UCLIBC_PIE_SUPPORT=y:" .config
- fi
-
- einfo "Enable Stack Smashing Protections support in ${P}"
- sed -i -e "s:# UCLIBC_PROPOLICE.*:UCLIBC_PROPOLICE=y:" .config
- echo "PROPOLICE_BLOCK_ABRT=n" >> .config
- echo "PROPOLICE_BLOCK_SEGV=n" >> .config
- echo "PROPOLICE_BLOCK_KILL=y" >> .config
- fi
-
- # we are building against system installed kernel headers
- sed -i -e 's:KERNEL_SOURCE.*:KERNEL_SOURCE="/usr":' .config
-
- check_main_libc
- if [ "${SYS_LIBC}" = "uClibc" ]
- then
- sed -i -e 's:SHARED_LIB_LOADER_PREFIX=.*:SHARED_LIB_LOADER_PREFIX="/lib":' .config
- sed -i -e 's:DEVEL_PREFIX=.*:DEVEL_PREFIX="/usr":' .config
- sed -i -e 's:RUNTIME_PREFIX=.*:RUNTIME_PREFIX="/":' .config
- fi
-
- make -s oldconfig > /dev/null || die "could not make oldconfig"
-
- chmod +x extra/scripts/relative_path.sh
-
- cp .config myconfig
-
- emake clean >/dev/null || die "could not clean"
-}
-
-src_compile() {
- # running tests require this
- use build || addwrite /dev/ptmx
- mv myconfig .config
-
- #if use nls
- #then
- # # these can be built only if the build system supports locales (as of 0.9.26)
- # emake -j1 headers
- # cd extra/locale
- # make clean
- # find ./charmaps -name "*.pairs" > codesets.txt
- # cp LOCALES locales.txt
- # emake -j1 || die "could not make locales"
- # cd ../..
- #fi
-
- emake -j1 || die "could not make"
- check_main_libc
- if [ "${SYS_LIBC}" = "uClibc" ]
- then
- emake -j1 utils || die "could not make utils"
- fi
-
- if ! use build
- then
- if ! hasq maketest $RESTRICT
- then
- # assert test fails on pax enabled kernels - normal
- # vfork test fails in sandbox (both glibc/uclibc)
- cd test; make; cd ..
- fi
- fi
-}
-
-src_install() {
- emake PREFIX=${D} install || die "install failed"
-
- # remove files coming from kernel-headers
- # scsi is uclibc's own directory since cvs 20040212
- check_main_libc
- if [ "${SYS_LIBC}" = "uClibc" ]
- then
- rm -rf ${D}/usr/include/{asm,linux}
- rm -f ${D}/usr/lib/lib*_pic.a
- ! use static && use build && rm -f ${D}/usr/lib/lib*.a
-
- emake PREFIX=${D} install_utils || die "install-utils failed"
- dodir /usr/bin
- exeinto /usr/bin
- doexe ${FILESDIR}/getent
- fi
-
- # shameless plug for mjn3 who gives us so much...
- # please give back if you can. -solar
- cat DEDICATION.mjn3
- epause 2
-
- if ! use build
- then
- dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
- doman debian/*.1
- fi
-}
-
-#pkg_postinst() {
-#check_main_libc
-#if [ "${SYS_LIBC}" = "uClibc" ] ; then
-# if [ "${ROOT}" = "/" ] ; then
-# /sbin/ldconfig
-# [ ! -e /etc/TZ ] && echo UTC > /etc/TZ
-# # reload init?
-# fi
-#else
-#should we add the lib dir to ld.so.conf?
-#fi
-#}
+++ /dev/null
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/uclibc/uclibc-0.9.26-r4.ebuild,v 1.6 2004/09/06 19:07:39 ciaranm Exp $
-
-inherit eutils flag-o-matic gcc
-
-# To make a new CVS_VER we do.
-# wget -O - http://uclibc.org/downloads/snapshots/uClibc-20040730.tar.bz2 | tar jxf -
-# tar jxf /usr/portage/distfiles/uClibc-0.9.26.tar.bz2
-# diff -urN --exclude .cvsignore --exclude CVS uClibc-0.9.26 uClibc | bzip2 - > uClibc-0.9.26-cvs-update-20040730.patch.bz2
-# rm -rf uClibc-0.9.26-cvs-update-20040730.patch.bz2 uClibc uClibc-0.9.26
-
-MY_P="${P/ucl/uCl}"
-CVS_VER="20040730"
-PATCH_VER="1.1"
-DESCRIPTION="C library for developing embedded Linux systems"
-HOMEPAGE="http://www.uclibc.org/"
-SRC_URI="http://www.kernel.org/pub/linux/libs/uclibc/${MY_P}.tar.bz2
- mirror://gentoo/${MY_P}-cvs-update-${CVS_VER}.patch.bz2
- mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2"
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc ~mips ~arm"
-IUSE="build hardened ipv6 static debug" # nls is not supported yet
-RESTRICT="nostrip"
-DEPEND="sys-devel/gcc"
-RDEPEND=""
-PROVIDE="virtual/glibc virtual/libc"
-
-S=${WORKDIR}/${MY_P}
-
-check_main_libc() {
- if [ "${CHOST/uclibc}" != "${CHOST}" ] ; then
- SYS_LIBC=uClibc
- else
- SYS_LIBC=glibc
- fi
- export SYS_LIBC
- echo
- einfo "We are building for ${SYS_LIBC} system library"
- echo
-}
-
-src_unpack() {
- unpack ${A}
- cd ${S}
-
- if [ -n "${CVS_VER}" ]
- then
- epatch ${DISTDIR}/${MY_P}-cvs-update-${CVS_VER}.patch.bz2
- fi
-
- cp ${FILESDIR}/0.9.26/ssp.c ${S}/libc/sysdeps/linux/common/ \
- || die "failed to copy ssp.c to ${S}/libc/sysdeps/linux/common/"
- # gcc 3.4 nukes ssp without this patch
- if [ "`gcc-major-version`" -eq "3" -a "`gcc-minor-version`" -ge "4" ]
- then
- epatch ${FILESDIR}/0.9.26/uclibc-0.9.26-ssp-gcc34-after-frandom.patch
- fi
-
- if [ -n "${PATCH_VER}" ]
- then
- unpack ${MY_P}-patches-${PATCH_VER}.tar.bz2
- # for now we remove relro/now, no support for relro in ldso
- rm -f ${WORKDIR}/patch/*relro*
- rm -f ${WORKDIR}/patch/*now*
- rm -f ${WORKDIR}/patch/11_all_uClibc-0.9.26-socket.patch.bz2
- # remove default ssp build
- use hardened || rm -f ${WORKDIR}/patch/*enable-ssp*
- epatch ${WORKDIR}/patch
- fi
-
- # support archs which dont implement all syscalls
- [ -z "${CVS_VER}" ] \
- && epatch ${FILESDIR}/${PV}/arm-fix-missing-syscalls.patch \
- || epatch ${FILESDIR}/${PV}/uclibc-0.9.26-arm-dl-sysdep.patch
- epatch ${FILESDIR}/${PV}/arm-ucontext.patch
-
- # build all .S files w/ -Wa,--noexecstack
- if [ "0${CVS_VER}" -ge "20040730" ]; then
- einfo "Skipping noexecstack patch. (need update)"
- else
- epatch ${FILESDIR}/${PV}/${PN}-${PV}-noexecstack.patch
- fi
-
- # fixup for install perms
- sed -i -e "s:-fa:-dRf:g" Makefile
-
- local target=""
- if [ "${ARCH}" == "x86" ] ; then
- target="i386"
- elif [ "${ARCH}" == "ppc" ] ; then
- target="powerpc"
- else
- # sparc|mips|alpha|arm|sh
- target="${ARCH}"
- fi
- sed -i \
- -e "s:default TARGET_i386:default TARGET_${target}:" \
- extra/Configs/Config.in
- sed -i \
- -e "s:default CONFIG_GENERIC_386:default CONFIG_${UCLIBC_CPU:-GENERIC_386}:" \
- extra/Configs/Config.${target}
-
- make defconfig >/dev/null || die "could not config"
-
- for def in UCLIBC_PROFILING DO{DEBUG,ASSERTS} SUPPORT_LD_DEBUG{,_EARLY} ; do
- sed -i -e "s:${def}=y:# ${def} is not set:" .config
- done
- if use debug ; then
- echo "DODEBUG=y" >> .config
- fi
-
- for def in DO_C99_MATH UCLIBC_HAS_{RPC,CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC,FTW} ; do
- sed -i -e "s:# ${def} is not set:${def}=y:" .config
- done
- echo "UCLIBC_HAS_FULL_RPC=y" >> .config
- echo "PTHREADS_DEBUG_SUPPORT=y" >> .config
-
- #if use nls
- #then
- # sed -i -e "s:# UCLIBC_HAS_LOCALE is not set:UCLIBC_HAS_LOCALE=y:" .config
- # echo "UCLIBC_HAS_XLOCALE=n" >> .config
- # echo "UCLIBC_HAS_GLIBC_DIGIT_GROUPING=y" >> .config
- # echo "UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING=y" >> .config
- # echo "UCLIBC_HAS_GETTEXT_AWARENESS=y" >> .config
- # # on pax enabled kernels the locale files can't be built
- # echo "UCLIBC_PREGENERATED_LOCALE_DATA=n" >> .config
- #fi
- # we disable LOCALE for any case, gettext has to be used
- echo "UCLIBC_HAS_LOCALE=n" >> .config
-
- use ipv6 && sed -i -e "s:# UCLIBC_HAS_IPV6 is not set:UCLIBC_HAS_IPV6=y:" .config
-
- if use hardened
- then
- if use x86
- then
- einfo "Enable Position Independent Executable support in ${P}"
- sed -i -e "s:# UCLIBC_PIE_SUPPORT.*:UCLIBC_PIE_SUPPORT=y:" .config
- fi
-
- einfo "Enable Stack Smashing Protections support in ${P}"
- sed -i -e "s:# UCLIBC_PROPOLICE.*:UCLIBC_PROPOLICE=y:" .config
- echo "PROPOLICE_BLOCK_ABRT=n" >> .config
- echo "PROPOLICE_BLOCK_SEGV=n" >> .config
- echo "PROPOLICE_BLOCK_KILL=y" >> .config
- fi
-
- # we are building against system installed kernel headers
- sed -i -e 's:KERNEL_SOURCE.*:KERNEL_SOURCE="/usr":' .config
-
- check_main_libc
- if [ "${SYS_LIBC}" = "uClibc" ] ; then
- sed -i \
- -e 's:SHARED_LIB_LOADER_PREFIX=.*:SHARED_LIB_LOADER_PREFIX="/lib":' \
- -e 's:DEVEL_PREFIX=.*:DEVEL_PREFIX="/usr":' \
- -e 's:RUNTIME_PREFIX=.*:RUNTIME_PREFIX="/":' \
- .config
- sed -i '/LIBRARY_CACHE:=/s:#::' Rules.mak
- fi
-
- make -s oldconfig > /dev/null || die "could not make oldconfig"
-
- chmod +x extra/scripts/relative_path.sh
-
- cp .config myconfig
-
- emake clean >/dev/null || die "could not clean"
-
- sed -i 's:\$(R_PREFIX):\\"$(RUNTIME_PREFIX)\\" $(LIBRARY_CACHE):' utils/Makefile
- sed -i 's: I\.: -I.:' ldso/libdl/Makefile
-}
-
-src_compile() {
- # running tests require this
- use build || addwrite /dev/ptmx
- mv myconfig .config
-
- #if use nls
- #then
- # # these can be built only if the build system supports locales (as of 0.9.26)
- # emake -j1 headers
- # cd extra/locale
- # make clean
- # find ./charmaps -name "*.pairs" > codesets.txt
- # cp LOCALES locales.txt
- # emake -j1 || die "could not make locales"
- # cd ../..
- #fi
-
- emake -j1 || die "could not make"
- check_main_libc
- if [ "${SYS_LIBC}" = "uClibc" ]
- then
- emake -j1 utils || die "could not make utils"
- fi
-
- if ! use build
- then
- if ! hasq maketest $RESTRICT
- then
- # assert test fails on pax enabled kernels - normal
- # vfork test fails in sandbox (both glibc/uclibc)
- cd test; make; cd ..
- fi
- fi
-}
-
-src_install() {
- emake PREFIX=${D} install || die "install failed"
-
- # remove files coming from kernel-headers
- # scsi is uclibc's own directory since cvs 20040212
- check_main_libc
- if [ "${SYS_LIBC}" = "uClibc" ]
- then
- rm -rf ${D}/usr/include/{asm,linux}
- rm -f ${D}/usr/lib/lib*_pic.a
- ! use static && use build && rm -f ${D}/usr/lib/lib*.a
-
- emake PREFIX=${D} install_utils || die "install-utils failed"
- dodir /usr/bin
- exeinto /usr/bin
- doexe ${FILESDIR}/getent
- fi
-
- # shameless plug for mjn3 who gives us so much...
- # please give back if you can. -solar
- f=DEDICATION.mjn3 ; [ -e "$f" ] && ( cat $f ; epause 2 )
-
- if ! use build
- then
- dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
- doman debian/*.1
- fi
-}
-
-#pkg_postinst() {
-#check_main_libc
-#if [ "${SYS_LIBC}" = "uClibc" ] ; then
-# if [ "${ROOT}" = "/" ] ; then
-# /sbin/ldconfig
-# [ ! -e /etc/TZ ] && echo UTC > /etc/TZ
-# # reload init?
-# fi
-#else
-#should we add the lib dir to ld.so.conf?
-#fi
-#}