diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-08-20 06:55:20 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-08-20 06:55:20 +0000 |
commit | cddc617f9a8fbf294f1a7da8f0ca89bddf59198e (patch) | |
tree | fe1c114e6beeda7ac7cabdaf92955c410ae561ca | |
parent | Some touchups (diff) | |
download | historical-cddc617f9a8fbf294f1a7da8f0ca89bddf59198e.tar.gz historical-cddc617f9a8fbf294f1a7da8f0ca89bddf59198e.tar.bz2 historical-cddc617f9a8fbf294f1a7da8f0ca89bddf59198e.zip |
sh stabilize and sync some fixes with psm
Package-Manager: portage-2.0.51.22-r2
-rw-r--r-- | sys-libs/uclibc/Manifest | 8 | ||||
-rw-r--r-- | sys-libs/uclibc/uclibc-0.9.28.ebuild | 35 |
2 files changed, 25 insertions, 18 deletions
diff --git a/sys-libs/uclibc/Manifest b/sys-libs/uclibc/Manifest index 53474b52d59d..88b2f6b07922 100644 --- a/sys-libs/uclibc/Manifest +++ b/sys-libs/uclibc/Manifest @@ -1,7 +1,7 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 b3caa3ed321572deff044f4c54c601be uclibc-0.9.28.ebuild 11326 +MD5 4468e1fc9b94594063e91f35a64fd480 uclibc-0.9.28.ebuild 11439 MD5 e96b4dfc373a1cdf7735aeae52c4cf7e metadata.xml 999 MD5 edfd2313b43acb801cb0b72ddd6d36f8 uclibc-0.9.27.ebuild 10387 MD5 7f032d39812e09cd462f33f448a084d4 ChangeLog 9398 @@ -13,7 +13,7 @@ MD5 684def72ebc0da73cb8b6d1c53e7e8fb files/getent 1112 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) -iD8DBQFDBWysgIKl8Uu19MoRAu+NAJ9BRmJWyW+slY61twosyqexSzg0CgCcDL33 -IwEPAbKj4JCSo6O3XFnTono= -=5xJ3 +iD8DBQFDBtQMgIKl8Uu19MoRAi9VAJ4lAAZrIaWgGfPr5wcPZ+29ZBlhRACdGU6k +vMj6jlijgpQYh3r7g92A7bg= +=z7n+ -----END PGP SIGNATURE----- diff --git a/sys-libs/uclibc/uclibc-0.9.28.ebuild b/sys-libs/uclibc/uclibc-0.9.28.ebuild index e337527f85ba..fef279acc74e 100644 --- a/sys-libs/uclibc/uclibc-0.9.28.ebuild +++ b/sys-libs/uclibc/uclibc-0.9.28.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28.ebuild,v 1.3 2005/08/19 05:22:21 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28.ebuild,v 1.4 2005/08/20 06:55:20 vapier Exp $ #ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc" #inherit subversion @@ -33,13 +33,17 @@ LICENSE="LGPL-2" [[ ${CTARGET} != ${CHOST} ]] \ && SLOT="${CTARGET}" \ || SLOT="0" -KEYWORDS="-* ~sh" #~amd64 ~arm ~m68k ~mips ~ppc ~sh ~sparc ~x86" +KEYWORDS="-* sh" #~amd64 ~arm ~m68k ~mips ~ppc ~sh ~sparc ~x86" IUSE="build debug hardened ipv6 minimal nls pregen userlocales wordexp" RESTRICT="nostrip" -DEPEND="virtual/os-headers" +if [[ ${CTARGET} == ${CHOST} ]] ; then + DEPEND="virtual/os-headers" + PROVIDE="virtual/libc" +elif [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then + DEPEND="${CATEGORY}/linux-headers ${CATEGORY}/binutils ${CATEGORY}/gcc" +fi RDEPEND="" -[[ ${CTARGET} == ${CHOST} ]] && PROVIDE="virtual/libc" S=${WORKDIR}/${MY_P} @@ -83,6 +87,8 @@ pkg_setup() { fi } +PIE_STABLE="arm mips ppc x86" + CPU_AMD64="" CPU_ARM="GENERIC_ARM ARM{610,710,720T,920T,922T,926T,_{SA110,SA1100,XSCALE}}" CPU_M68K="" @@ -128,6 +134,7 @@ src_unpack() { && subversion_src_unpack \ || unpack ${A} cd "${S}" + check_cpu_opts echo @@ -233,6 +240,7 @@ src_unpack() { # we need to do it independently of hardened to get ssp.c built into libc sed -i -e "s:# UCLIBC_SECURITY.*:UCLIBC_SECURITY=y:" .config echo "UCLIBC_HAS_SSP=y" >> .config + echo "SSP_USE_ERANDOM=n" >> .config echo "PROPOLICE_BLOCK_ABRT=n" >> .config if use debug ; then echo "PROPOLICE_BLOCK_SEGV=y" >> .config @@ -242,23 +250,24 @@ src_unpack() { echo "PROPOLICE_BLOCK_KILL=y" >> .config fi - if use hardened ; then + echo "UCLIBC_BUILD_RELRO=y" >> .config + echo "UCLIBC_BUILD_NOEXECSTACK=y" >> .config + if use hardened && has $(tc-arch) ${PIE_STABLE} ; then echo "UCLIBC_BUILD_PIE=y" >> .config + else + echo "UCLIBC_BUILD_PIE=n" >> .config + fi + if use hardened ; then echo "SSP_QUICK_CANARY=n" >> .config echo "UCLIBC_BUILD_SSP=y" >> .config - echo "UCLIBC_BUILD_RELRO=y" >> .config echo "UCLIBC_BUILD_NOW=y" >> .config - echo "UCLIBC_BUILD_NOEXECSTACK=y" >> .config else - echo "UCLIBC_BUILD_PIE=n" >> .config echo "SSP_QUICK_CANARY=y" >> .config echo "UCLIBC_BUILD_SSP=n" >> .config - echo "UCLIBC_BUILD_RELRO=n" >> .config echo "UCLIBC_BUILD_NOW=n" >> .config - echo "UCLIBC_BUILD_NOEXECSTACK=n" >> .config fi - # we are building against system installed kernel headers + # setup build and run paths local cross=${CTARGET}- type -p ${cross}ar > /dev/null || cross="" sed -i \ @@ -271,8 +280,6 @@ src_unpack() { yes "" 2> /dev/null | make -s oldconfig > /dev/null || die "could not make oldconfig" - chmod +x extra/scripts/relative_path.sh - cp .config myconfig emake -s clean > /dev/null || die "could not clean" @@ -354,7 +361,7 @@ src_install() { if ! use build ; then dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3 - doman docs/man/*.1 + doman docs/man/*.[1-9] fi } |