Skip to content
Browse files

gcc-4.6.2 version bump

  • Loading branch information...
1 parent 2ec9f0c commit 4645237c9c4a72723df5266a91e55c1b5b502287 @jeanfrancisroy jeanfrancisroy committed Mar 31, 2012
Showing with 65 additions and 0 deletions.
  1. +2 −0 sys-devel/gcc/Manifest
  2. +63 −0 sys-devel/gcc/gcc-4.6.2-r1.ebuild
View
2 sys-devel/gcc/Manifest
@@ -17,7 +17,9 @@ DIST gcc-4.4.5-piepatches-v0.4.5.tar.bz2 17600 RMD160 95bfd3d25a4444e9c0bcf98532
DIST gcc-4.4.5-uclibc-patches-1.0.tar.bz2 3005 RMD160 173924eea155bbb69a6a9d6e466263a7b053cd13 SHA1 f838571582c65003752fd969a9bcf9a6b1f85531 SHA256 798fbe022c03756d71b775dc4c4135807d15fc1915c53f28c8e2eee6f4546e3e
DIST gcc-4.4.5.tar.bz2 63081552 RMD160 87d6fa77d50f23a3359e24bf5b0ddfafa7088478 SHA1 2b1427a932a620c909d74f1e4821ed90c90fd350 SHA256 a945eb6cf694a55f83af904f4a3fb41ee07b9d021826dfe66991dfa7f0ea97ce
DIST gcc-4.6.2-patches-1.1.tar.bz2 12793 RMD160 aecd6190b2c6fa53ff73f95a201e12c55d3f9cb8 SHA1 6cfc40dbfb6cd3809a0f4f556ae81d9cfc10f7f9 SHA256 f90feabeb57dd21050e1357c769e85eb691b2868830b9c076462687533820800
+DIST gcc-4.6.2-patches-1.4.tar.bz2 81415 RMD160 12d0c1090500c75691b51820f0e9bb5e679f3fdd SHA1 3709462b9392dd18d9f9d7ad047234e6c531cfa8 SHA256 3482338982829b5e4f6e3787f54f330ac44f5fda56790ed186ae26f10e082142
DIST gcc-4.6.2-piepatches-v0.4.5.tar.bz2 14167 RMD160 64123a9ff8b3797c2acd01c63574c38e0cad683d SHA1 de6528ddd27b96d9255d31c5841fcf22bd7830ee SHA256 2ba43e31fbf7c05839774b6e9eb1b63fc228183d6c2464c54edd068dd3d2cea5
+DIST gcc-4.6.2-piepatches-v0.5.0.tar.bz2 14397 RMD160 77bd51e94cf71b9582f0a1e9f01dec1a9c6eea68 SHA1 03fd5104eeef7f6e12b0cd86732593d082643ba7 SHA256 19bf8797bb9a999c3396613e28b0fda3bad80a0815ab30ea08bc1c98a8a51b71
DIST gcc-4.6.2-uclibc-patches-1.0.tar.bz2 3019 RMD160 7e991775c15d4126bd8d85aceb677c675559606f SHA1 0d316aaf94966cc52b1582282723a932ac065639 SHA256 25e902a6d2db7181394df5ad11fafaad064bf28a6ffebd889033f744613ac201
DIST gcc-4.6.2.tar.bz2 71995338 RMD160 e7041933b39629f9524848dcf81a1a4c02a225c6 SHA1 691974613b1c1f15ed0182ec539fa54a12dd6f93 SHA256 60b05463dfe18d40d68fb8a71b25b408a01f86cc6ceaf5e6b22238b6b0f450c2
DIST gdc-0.24-src.tar.bz2 1012099 RMD160 f0f33cc02d88ea1174030988c2006cb90029392a SHA1 2be913fe061429c1a279e4cf882e947d34946303 SHA256 cc6a97c76c9e6db31e76ff97014d24b3d43e21f018a3c6218e3fb2a4500fc79a
View
63 sys-devel/gcc/gcc-4.6.2-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.6.2.ebuild,v 1.9 2012/03/15 20:21:44 vapier Exp $
+
+PATCH_VER="1.4"
+UCLIBC_VER="1.0"
+
+# Hardened gcc 4 stuff
+PIE_VER="0.5.0"
+SPECS_VER="0.2.0"
+SPECS_GCC_VER="4.4.3"
+# arch/libc configurations known to be stable with {PIE,SSP}-by-default
+PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
+PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
+SSP_STABLE="amd64 x86 ppc ppc64 arm"
+# uclibc need tls and nptl support for SSP support
+SSP_UCLIBC_STABLE=""
+#end Hardened stuff
+
+inherit toolchain
+
+DESCRIPTION="The GNU Compiler Collection"
+
+LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
+KEYWORDS="~*"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ elibc_glibc? ( >=sys-libs/glibc-2.8 )
+ amd64? ( multilib? ( gcj? ( app-emulation/emul-linux-x86-xlibs ) ) )
+ >=${CATEGORY}/binutils-2.21-r1"
+
+if [[ ${CATEGORY} != cross-* ]] ; then
+ PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
+fi
+
+src_unpack() {
+ if has_version '<sys-libs/glibc-2.12' ; then
+ ewarn "Your host glibc is too old; disabling automatic fortify."
+ ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
+ EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
+ fi
+
+ # drop the x32 stuff once 4.7 goes stable
+ case ${CHOST} in
+ x86_64*) has x32 $(get_all_abis) || EPATCH_EXCLUDE+=" 80_all_gcc-4.6-x32.patch" ;;
+ esac
+
+ toolchain_src_unpack
+
+ use vanilla && return 0
+
+ [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
+}
+
+pkg_setup() {
+ toolchain_pkg_setup
+
+ ewarn
+ ewarn "LTO support is still experimental and unstable."
+ ewarn "Any bugs resulting from the use of LTO will not be fixed."
+ ewarn
+}

0 comments on commit 4645237

Please sign in to comment.
Something went wrong with that request. Please try again.