aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2016-11-01 14:01:23 +0000
committerStuart Shelton <stuart@shelton.me>2016-11-01 14:01:23 +0000
commitf7c1d684abfc925e0618796e6c0a4f1938a35364 (patch)
tree8cf78c78fd7e2dd2c28b22603cf79d7b16cdd4fc /sys-devel
parentUpdate sys-apps/smartmontools-6.4 (diff)
downloadsrcshelton-f7c1d684abfc925e0618796e6c0a4f1938a35364.tar.gz
srcshelton-f7c1d684abfc925e0618796e6c0a4f1938a35364.tar.bz2
srcshelton-f7c1d684abfc925e0618796e6c0a4f1938a35364.zip
Add sys-devel/gcc-4.9.4
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gcc/Manifest5
-rw-r--r--sys-devel/gcc/gcc-4.9.4.ebuild78
2 files changed, 83 insertions, 0 deletions
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index 1b33e01b..8b70ac43 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -29,6 +29,10 @@ DIST gcc-4.9.3-patches-1.5.tar.bz2 25384 SHA256 e1c43125fab5a4db1997a01b362b3611
DIST gcc-4.9.3-piepatches-v0.6.4.tar.bz2 14431 SHA256 012c3025ac2e14781ff25028c0b1d42a07f510b125006116e268bcd90fb6c9db SHA512 3bbeacbca5e8ef6ab0b1d58add42f5e8e82328afe024666f9585b5398c8722e7d012abfd2009a98ad47b1f1b26afaf421402a9e7719a5662516b32dcbe5608be WHIRLPOOL 9e68d981aed42ece2f481f62efc078ad370ac780e96ba39c4273c8675d552b845cd52c588bd41839868f430b0a532789858914f4ef32a1bc187e2983264ebfd3
DIST gcc-4.9.3-uclibc-patches-1.0.tar.bz2 2515 SHA256 dd19904d4ab005ef142056228f326e75b3d4d79b8056189a505129b5940a575c SHA512 825092620a3c554ef06219fd1152c3677f1456315563b9e65282a73096e75600389e93298ed76cad41ce3eeecc6a7009ca722585b93c04095bd2d0a06c4404e6 WHIRLPOOL 0c184a5cc74f80a61f354ee85bc5a0f5b44d93bc9fa2e1892fbfe899958cfa5263b8b72cc4f905bc69bd1cc90cf870a6056c4003ec493b815646a72a0fe2e44e
DIST gcc-4.9.3.tar.bz2 90006707 SHA256 2332b2a5a321b57508b9031354a8503af6fdfb868b8c1748d33028d100a8b67e SHA512 9ac57377a6975fc7adac704ec81355262b9f537def6955576753b87715470a20ee6a2a3144a79cc8fcba3443f7b44c7337d79d704b522d053f54f79aa6b442df WHIRLPOOL 085e4cc1825b031652cbe9e098671f761acfeca64c6cc9b8ad2a8961c13fcac9e02b4538b44dc38181a355266f2c55c99ce5a1bff3f2860b870285cf3f0e84a5
+DIST gcc-4.9.4-patches-1.0.tar.bz2 22266 SHA256 1a394abb77c75e2212896ad3a62ae1f6bfd3660b1c176c608298733c740a00e4 SHA512 cc2407221f858bad38b57d31f635314f91794293695e23d255685d8bec20b9db19c7dc76bbf5e8184c2ba0ccb530958b09bae4d8a402ca27cadf463f46bfb995 WHIRLPOOL c74e5273c718020b591911d589d8eff5e366c902c479e566f966577efcbf424b19669a54843b2ddd60c51c81fd2851bc86aec1c647482b4789a518f01dd62561
+DIST gcc-4.9.4-piepatches-v0.6.4.tar.bz2 14414 SHA256 c67b56f04c653e6a19e36abed8391f8b6bed426bfcfc907237cc37f02dbb5015 SHA512 243fa272ea0e49f700a76508bab3e03bbb353bcb930581b2f87f9a47df5cd3880e29f20b71612b21190adc463849e1e6ac2a38a49c0002b562d93d436f538285 WHIRLPOOL 1e5959441210af6f690398efab96444ab11d136238a9428912e8441eaf0509fe6db359a8aca92a446fce0c75777385475af73b20165a8593f9969e3a25fd0b0f
+DIST gcc-4.9.4-uclibc-patches-1.0.tar.bz2 2618 SHA256 95f290d0b68114d835515afc424d6096476a45665671784aa71a7a506296e465 SHA512 5a1f44caa9261f4947101379628143869b31dec67fa28605e8e1f3894d4b7120c3f68ba6deb59da7a74fa906e27ab32cd3767761837dc3dfebc37865d349d6db WHIRLPOOL e46b08737cfdc235bfb80117e0389f3969167adf59bcba2a0a1094a20eab2b62f0c952dac44781e43957cb1507cd4e80f37bd8aecbc55dbda6382d93b3a4cf94
+DIST gcc-4.9.4.tar.bz2 90097606 SHA256 6c11d292cd01b294f9f84c9a59c230d80e9e4a47e5c6355f046bb36d4f358092 SHA512 93abb78e16277454f41a8e9810f41f66c0fdffdc539a762ff6b67d3037f78db971378683fd2ebf707d1d51c059fad2161fe42d110c330027f40214b7db0f3efe WHIRLPOOL e20045126c21a3edea1fa4a2185ec2bc5feec77ddf967ab9d1e8c33322ad4eafe013bfcaab1ed4e35971d3b70ef373ea3585ebb089c9bbf91bbfca1f1da71236
DIST gcc-5.3.0-patches-1.1.tar.bz2 29696 SHA256 979f188196325a635fc84e6a1167885929618ba6f04e0c9b4144a0605e8adaaa SHA512 c84b81a54adaf567747ca1a023b0a6e1b9c650f8224df8ed3dff898e3aff64b979899ed753cdd705d82abda9ba5ddb27b3afcd3e94029652cf10039cbeae0196 WHIRLPOOL e4907fdbe282ed5f6f315fc45b595f0cd96466e825fd86d4b3ce1dfbba62d44b2c2a09cec86776b42cfe3e0005f918ce2355d9df1dd183cfd8cf522a6ccfc03e
DIST gcc-5.3.0-piepatches-v0.6.5.tar.bz2 14552 SHA256 01bb0408eee2b97c4605b10b4d0b2b8fd3b1eccbaf9733c7274e281182f4e975 SHA512 9e924665d1dd24081b2f06618c26a5969069d30ec7626ba96166f299e4738918a6df99dc74c8b36cad17b62b778c350b42cf0ec0ad3897cb25c20938846f225c WHIRLPOOL a9464f4b386219f54ad12add39e7467d793fc75777245a4577f50b2bc6e19e6ede5be7849cdf50c11514175782658f7b3917f3fb86ce9beb07694069a6679404
DIST gcc-5.3.0-uclibc-patches-1.0.tar.bz2 2534 SHA256 4b03623b614b42308420e3036886ab58cf29fe52a238e67013fa82c568f22c82 SHA512 243d063a42ebef0428c43434d5ba3623ee66b1678746ab4c2efd129004614efecb8fe145bf4dc54d6daef03dfd656deb874b0b49213ec1e13490128d91714de2 WHIRLPOOL ba6db27fc0e19b120761b411da33d1925527a3a79cc686300d581ee3de8bbad788fe722c6c3c6b512a96e755c407e220bf509a1ca4f0ca02f1cc5485990bf249
@@ -38,4 +42,5 @@ EBUILD gcc-4.8.3.ebuild 2576 SHA256 ca04a0d0a3bac67d676342350102d003ddf2f6bc0295
EBUILD gcc-4.8.4.ebuild 2575 SHA256 e933e93f421f304eb30037fbf632492b5305ea67ce1309f89f3d2186ec1b0b0f SHA512 413b16e9e4a8a62113c6cf3fe69c21da1058a59735bdc35486260cacf58ec460c2386edbc3d09af0702184f3bbf864d92163d0f7a366c42649d1c7336300d02b WHIRLPOOL 8b253fe1f71b0318adedd828c3e7ccd63ca2fd525e9eac847b2310146016c7b9bfffc8ab309ffca8226273de0d046299b6329153c4ace133705d893641b1be9c
EBUILD gcc-4.8.5.ebuild 2575 SHA256 ddaa840b8c95d39ef6ae098399a812df4d3ac8ca241a99b06e742873d27ebb6e SHA512 190896f4d0e5cbdd4da38f4fb92394e80e95b06750fc258ceac59584706f6b89bbfea056c5d0daac319b43f95e0760ff7d781cc292c9ac9c78ba5da057dc01a0 WHIRLPOOL a80a22093bebf87f2b23bb1881f8e0dd4dd7e9f8183690bf70645179b5b3b263ca1985a1197214c72196e843445c149aa8ebfbe039f6e20b4b029328529e3109
EBUILD gcc-4.9.3.ebuild 2575 SHA256 78f62cac6e99b922a4db327ab72ac39ddd1e6aefdf690e4fe7d45f835d2d9659 SHA512 dfde8525d064cbafa9a81538ad3ac29995f9641b3985a4fcfee3431b8f79ce0d83a1f973faa4654ae42ebfea099b94256316d50d1f565d189ab126beac6f733e WHIRLPOOL 60c80f6adfff1e471b2068d3f719745ef374d601e3183e7f509b62a4b397393302299336a5557aa6b4e308fc2bc0a0a57075f021732be635ef4fdb49de7c9fc8
+EBUILD gcc-4.9.4.ebuild 2584 SHA256 be6e30f1f30efdde13321945d4abcd29321c4285afb325ca71d7ba80a7322354 SHA512 fdc4ca55a769880ed538011e65a1d4f1151e86ef32078240dcecfc2e7542d51a1d82f1e1687574d51ca529d32809e493d27db3d549774e862f51069fe1c559cb WHIRLPOOL 457489cd555692d680571f7de86a53e3924a19b4ff355a48655a77597c0ddec98222e6e267c5eca29baec187e233856efd595ecd406d6cc91a87b2d1d0f2609d
EBUILD gcc-5.3.0.ebuild 2468 SHA256 f8c633b53b39b7945a1cd0e3eb5b4dab53c369dd242a563a2b090e356ae71f8d SHA512 6685cbbd77ef31b60651690d9429c8338e43abe15a0a0cd81a576f559d5a80caa3dbe02b69f14d6622d2aadbec28dfabf07ff04031f2365af337cb65d50099d2 WHIRLPOOL ef6cad65276b540be4aa522d1a3f60498edbb8d82fa04adfd4593fdc1082521d90479db16bd221e43bc6c826e9c007eb7bbce31ad29f356d8d7660222ad3d719
diff --git a/sys-devel/gcc/gcc-4.9.4.ebuild b/sys-devel/gcc/gcc-4.9.4.ebuild
new file mode 100644
index 00000000..ac6d1ccf
--- /dev/null
+++ b/sys-devel/gcc/gcc-4.9.4.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id: f0e3e5ddb381206d7b4ba7f2aa77ca2976e32ba9 $
+
+EAPI="5"
+
+PATCH_VER="1.0"
+UCLIBC_VER="1.0"
+
+# Hardened gcc 4 stuff
+PIE_VER="0.6.4"
+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 mips ppc ppc64 arm ia64"
+PIE_UCLIBC_STABLE="x86 arm amd64 mips ppc ppc64"
+SSP_STABLE="amd64 x86 mips ppc ppc64 arm"
+# uclibc need tls and nptl support for SSP support
+# uclibc need to be >= 0.9.33
+SSP_UCLIBC_STABLE="x86 amd64 mips ppc ppc64 arm"
+#end Hardened stuff
+
+inherit eutils toolchain
+
+KEYWORDS="alpha ~amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ elibc_glibc? ( >=sys-libs/glibc-2.8 )
+ >=${CATEGORY}/binutils-2.20"
+
+if [[ ${CATEGORY} != cross-* ]] ; then
+ PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
+fi
+
+src_prepare() {
+ 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
+
+ toolchain_src_prepare
+
+ use vanilla && return 0
+ # Use -r1 for newer piepatchet that use DRIVER_SELF_SPECS for the hardened specs.
+ [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env-r1.patch
+
+ if [[ "${ARCH}" == "amd64" ]]; then
+ local LD32="$( get_abi_LIBDIR x86 )"
+ local LDx32="$( get_abi_LIBDIR x32 )"
+ local LD64="$( get_abi_LIBDIR amd64 )"
+ sed -i \
+ -e "/^#define GLIBC_DYNAMIC_LINKER32/{s:/lib/:/${LD32:-lib}/:}" \
+ -e "/^#define GLIBC_DYNAMIC_LINKERX32/{s:/libx32/:/${LDx32:-libx32}/:}" \
+ -e "/^#define GLIBC_DYNAMIC_LINKER64/{s:/lib64/:/${LD64:-lib64}/:}" \
+ gcc/config/i386/linux64.h \
+ || die 'LIBDIR replacement failed'
+
+ einfo "Using the following LIBDIR defines:"
+ tail -n 3 gcc/config/i386/linux64.h
+
+ sed -i \
+ -e "/^MULTILIB_OSDIRNAMES[+ ]= m64=/{s:=../lib64$:=../${LD64:-lib64}:}" \
+ -e "/^MULTILIB_OSDIRNAMES[+ ]= m32=/{s:=../lib$:=../${LD32:-lib}:}" \
+ -e "/^MULTILIB_OSDIRNAMES[+ ]= mx32=/{s:=../libx32$:=../${LDx32:-libx32}:}" \
+ gcc/config/i386/t-linux64 \
+ || die 'DIRNAMES replacement failed'
+
+ einfo "Using the following DIRNAMES defines:"
+ tail -n 3 gcc/config/i386/t-linux64
+
+ sed -i \
+ -e "/^const char \*__gnat_default_libgcc_subdir = \"libx32\";$/{s:\"libx32\":\"${LDx32:-libx32}\":}" \
+ gcc/ada/link.c \
+ || die 'ADA replacement failed'
+ fi
+}