Permalink
Browse files

FL-131: Add hard-masked and non-keyworded GCC-4.7.2

  • Loading branch information...
1 parent de6c498 commit 303633bdbf729f9b39a94897e8d6745097356330 @jeanfrancisroy jeanfrancisroy committed Jan 16, 2013
Showing with 70 additions and 2 deletions.
  1. +6 −2 sys-devel/gcc/Manifest
  2. +64 −0 sys-devel/gcc/gcc-4.7.2.ebuild
@@ -1,5 +1,5 @@
DIST ecj-4.3.jar 1377431 SHA256 9de193ea393ed50d868b730bad6916f7a8ef4ba80216f8606d3e1a0dd886e74b
-DIST ecj-4.5.jar 1470676 SHA256 98fd128f1d374d9e42fd9d4836bdd249c6d511ebc6c0df17fbc1b9df96c3d781
+DIST ecj-4.5.jar 1470676 SHA256 98fd128f1d374d9e42fd9d4836bdd249c6d511ebc6c0df17fbc1b9df96c3d781 SHA512 d4e1bf7538ace56e3d69fa91da5bbd16c272923b4de0a9d8dee23ea2b75f9f38c603de72fc4061df49285c450b63f3df211cee5270e9fffc5447445d1a9c9e4e WHIRLPOOL db54206cfd5eba935e707b8d36ebac40f3c4ed3c1f06ede794288cbdd9c7da9d90c0898e8c98b383af276ea4c1b40c861ebd9e1fc1dce712946184321339d3ad
DIST gcc-4.1.2-patches-1.3.tar.bz2 50790 SHA256 5fbb55d7f7cc136404d7c9375c3912acdcd49588b1d79f21e358efbc303665a3
DIST gcc-4.1.2-uclibc-patches-1.0.tar.bz2 20980 SHA256 c6ed88711a727ed11847c9b9f1cef7023037bc80c0840eda5fca6d60fa02e35a
DIST gcc-4.1.2.tar.bz2 39707720 SHA256 cfc0efbcc6fcde0d416a32dfb246c9df022515a312683fac412578c4fd09a9bc
@@ -12,7 +12,7 @@ DIST gcc-4.4.3-patches-1.4.tar.bz2 16294 SHA256 aaf3f678982e6e4570afab5acb56408a
DIST gcc-4.4.3-piepatches-v0.4.5.tar.bz2 16946 SHA256 ac853b06d4189dfba1bf72c8565d9ebf893b83cb690377db947cf5a48c802dc4
DIST gcc-4.4.3-specs-0.2.0.tar.bz2 2004 SHA256 f6c7cb99beead66dd4d06f7004c5731a9360330cbe878ce79792c618e008eed2 SHA512 779ecb0a064d2138b54569c8ae501975b8a6b72e5a3acbf8597619a8db77ee42ef9b0e62608d5192a15e4393e7dfc009bb50b994782236faa744b2c46b5fe517 WHIRLPOOL 8a1e45aad9d306cb19de93c63b5854a97e629d90852feb6861dcfca042b6257705304fc13ad65655a4cb227d36b83fc6063648c94f270821574ee0e85307094e
DIST gcc-4.4.3-uclibc-patches-1.0.tar.bz2 3014 SHA256 4b44eb274f27cc8ffb0e61e90d829a7a87fd0b49df6f31e7cb3071cc96c00df1
-DIST gcc-4.4.3.tar.bz2 62944934 SHA256 97ed664694b02b4d58ac2cafe443d02a388f9cb3645e7778843b5086a5fec040
+DIST gcc-4.4.3.tar.bz2 62944934 SHA256 97ed664694b02b4d58ac2cafe443d02a388f9cb3645e7778843b5086a5fec040 SHA512 7e94f874f66d248fa930dc415c9442c6c5bff134653dacb7749e1f8a75c4660e29d47661c0f5a254d6fcbdf75a2c37aa7e26091f370a934277421879f98b1928 WHIRLPOOL af2449836826c51ac26bc0b228fedccaa99c7652244e42baab47eff99422940d9b440cf359f8dfb5c2f0c9b509313860aa753c621cd2c17db558c988b856b274
DIST gcc-4.4.5-patches-1.3.tar.bz2 27365 SHA256 76aff36faab022c98458cf6ca08edaaae6319e7cbddad3debc06c794aec71f5b SHA512 6e4b3e333b0ea74851252316ba12e6a002d50f8b839edbb46d466bfa3eab0d3077dc0035c28ad3928b3433ecf8635c95f6eb4a3e9ce38cb8f9044551d19ab4fa WHIRLPOOL 16a70951d140cc79e5a8ede0da3e8ac8f8835dac69e764d3b322c7de16803726e337a8318cc910a81731d793c3eb010269fefe3ce809c5f281222a8268a95bc8
DIST gcc-4.4.5-piepatches-v0.4.5.tar.bz2 17600 SHA256 aaa62f69aa8a33d62524261f28377709191a6d819b6018fb2acfb6b660587742 SHA512 fafe66c3e6ee471309266f1750c2cdf8ae41c778f64256d0d65d6a9a064eeac494f9d4261233302f69ca16ced175720b4fadb49bdf8d3596a8c8a34fba3d0395 WHIRLPOOL 79a324fce336f5e20f411a93a9abf0faad410eb3e1940dfcfe3d9897228ff5f151a5967744d20cf57153c7a6c0d8f07b484a87167e70017da66cdc22e5b21ac7
DIST gcc-4.4.5-uclibc-patches-1.0.tar.bz2 3005 SHA256 798fbe022c03756d71b775dc4c4135807d15fc1915c53f28c8e2eee6f4546e3e SHA512 be765892df083bbc1355464cfcf0bf5d61646445231a4da59a2bf88ba4c687031818386e4a06db289500630d3f75662818f60ff93e42cf2ff65a381d443277f0 WHIRLPOOL cb41be728f2d9896ddb119ff7adddb5535cd87383ecc85c57f6fdda3895526aaf25bb62314ceac50a1db79caa61d7d34353ea616181a222bda2ed828f5c48ddc
@@ -27,4 +27,8 @@ DIST gcc-4.6.3-patches-1.6.tar.bz2 17072 SHA256 9ea15c9e289de83954ee5c2ae374a7a5
DIST gcc-4.6.3-piepatches-v0.5.2.tar.bz2 15002 SHA256 6606d47a8bbaa9cba0dd3b022cbf6ed14325b8560dd17f7601dbaa4697df3691 SHA512 21ec5bcd43ec0075f8885ef6f567fd9ffd0a64f4c4f9340262900b91a8f22f73a22cd320d6c5a9211083a0a4d21f61ff42e4d9368b5768b395d6ec1b17fc47eb WHIRLPOOL f38666e7c47d9e10b96a22b85c90659800ecfa86d7cf9d5ff69385dc5584fc6ea4b90265ec62d8066adab63a647c1a4bd0f0d1cc69057fcc08c4aa6856cd5766
DIST gcc-4.6.3-uclibc-patches-1.0.tar.bz2 3023 SHA256 4219a3582c5f98bf8437bfc3feb8c264f8aabd8078caaddef46dd38be33f089f SHA512 e0763dc7f3f94cb9ba6e34233d1a2fa6913918a5100dd029ae76b3b086529b8fafae3086dc22f3294f7d378e5548294264cb2faa80866e8a1ecc666bf60fe010 WHIRLPOOL 1744810d5928b1869929ebd608e1d817e4bcb4f666647bc873e9bdb41c65833a40745e58de5ef4beb98ef4ac539c8560733100a3bbee280c76525ee518ae88c8
DIST gcc-4.6.3.tar.bz2 71999439 SHA256 e8f5853d4eec2f5ebaf8a72ae4d53c436aacf98153b2499f8635b48c4718a093 SHA512 efedecc1a6d1c36eb91cbecfae9a4414d01051e99965de8a284d1164df3cad13fa99a6dd5a4ceaa03ef63a66884eaf729b49d602ac82088f788bab045ce1eb26 WHIRLPOOL a50059cc5ec5bcf7c7d7108e38087c2168ff0c6817d06b709be901a87007f84cd231ebae0752cdc94fa99c93ecd30ba810d3213aba9f3639292b1e831818ec0c
+DIST gcc-4.7.2-patches-1.3.tar.bz2 37988 SHA256 f9175b74d418da76911cba620162d5545a46ab1ec05b6e1948a3237c74176216 SHA512 45f5156a249f82d544799240368f1eb206273f2e27b6dec6129fe84491adf953d85e3fa9847a7fc0baedc48b35a80d6c53bd0799000450bde5018480e39d3243 WHIRLPOOL cf8277e5d28852cf4c85d9ad514738b341ae3cbd7db2b77e9922ad8cb33902a085630ebe5c910a07cd89846360997ac474e3231dc7dd7640aa78c594dcbaedaf
+DIST gcc-4.7.2-piepatches-v0.5.5.tar.bz2 15347 SHA256 ea7b7f7af30569f98b3cd37459b257e8bc96ef4691841779b28e93a96764a8c1 SHA512 1e3d20c38af31953b3a82c3f2204b9cc73a8bc9c80f3b3300106d1f1b6d299eb5ae5f67839fdcc690b4b8510d400053f431a1ef4850c9a4d2ca25db68daf35b6 WHIRLPOOL a22e77f63306fab350749b0778002e0cf610e300ef960631013aa545569385faa9ed1787fcdec5cf0dec89ed7dc4c9dc3d7dec28bbdb9665c0c957ba6dfa67de
+DIST gcc-4.7.2-uclibc-patches-1.0.tar.bz2 3022 SHA256 507e2c9b7004122a6cf5409825f7c06da8fc63e1a77dc03f7a6ed2a7888a9311 SHA512 43018bef164fd1c4c2ab4e72f13d92044dfde65d6286046a761433d1a7bbc0ff1b4b0bcd770e07b6d4a17daf6dd974c9ec8f7a3e4d631f4af554b77bb1688206 WHIRLPOOL c08aed61480b1eab6b86356ecfff7fbb592820f6498f4fbed9161e859fa257aececd5e9ceb83495a8a0bb4c6f6f457f4c9125a079757324b84dc48e81cb2af14
+DIST gcc-4.7.2.tar.bz2 82884636 SHA256 8a9283d7010fb9fe5ece3ca507e0af5c19412626384f8a5e9434251ae100b084 SHA512 689ce92d0c93e5ca5268d9757acffc6e5a7931fc7ad99ee9beefa6ce02d201ed9dade08240cb5623525e19362f90a245792e95d4e90b067fee61013a03288e32 WHIRLPOOL 730d32f9e9d19683ea169992ee82a3016c806dab16577facbb6e5eab4707706f139cf6b15b8aae44f85c88d71c308ddb1c110dca99dd46692d5bad66e05ad657
DIST gdc-0.24-src.tar.bz2 1012099 SHA256 cc6a97c76c9e6db31e76ff97014d24b3d43e21f018a3c6218e3fb2a4500fc79a
@@ -0,0 +1,64 @@
+# 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.7.2.ebuild,v 1.7 2012/11/24 21:22:30 vapier Exp $
+
+PATCH_VER="1.3"
+UCLIBC_VER="1.0"
+
+# Hardened gcc 4 stuff
+PIE_VER="0.5.5"
+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
+# uclibc need to be >= 0.9.33
+SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
+#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 )
+ >=${CATEGORY}/binutils-2.18"
+
+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
+ if [[ ${CTARGET} != x86_64* ]] || ! has x32 $(get_all_abis TARGET) ; then
+ EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch"
+ fi
+
+ 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 303633b

Please sign in to comment.