commit: a732d1b3c9804b159203acdcaf0a8922918c9908
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 17 20:00:19 2018 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Dec 17 20:00:19 2018 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=a732d1b3
sys-devel/gcc: sync
Package-Manager: Portage-2.3.45-prefix, Repoman-2.3.12
RepoMan-Options: --force
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
sys-devel/gcc/Manifest | 5 +++
sys-devel/gcc/gcc-7.3.0-r6.ebuild | 92 +++++++++++++++++++++++++++++++++++++++
sys-devel/gcc/gcc-7.4.0.ebuild | 88 +++++++++++++++++++++++++++++++++++++
sys-devel/gcc/gcc-8.2.0-r5.ebuild | 89 +++++++++++++++++++++++++++++++++++++
sys-devel/gcc/metadata.xml | 3 ++
5 files changed, 277 insertions(+)
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index d33052b1be..431d506cd4 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -31,7 +31,12 @@ DIST gcc-6.4.0-patches-1.4.tar.bz2 13451 BLAKE2B
9934558989405141ae22c941fc4f5b4
DIST gcc-6.4.0-uclibc-patches-1.0.tar.bz2 1586 BLAKE2B
21f97a9e1c349b3d52def092a03e5a90533521da9af586be7ee527594f2d65745491ff8758d88c99a7ac215bde7ebf4e47a0a36cfcd7e66f70e0bebf2dadd922
SHA512
266dbe2bb53d892a24cd752d5c6833ea33f8df8b11b0471700ee53865243cd41f412f9bea8a369b474c9cd1435faff2e03902c7cb5638dd3ddcaa665aa2ec522
DIST gcc-6.4.0.tar.xz 76156220 BLAKE2B
2018c338b28ea644cdd1b327cb0dfe7ee9aa2010357c93f7e71969f587c58d3fdfa2bb4c82a309490c48bc86924400022fa93f41dc6c4345878d1bc1d8204265
SHA512
02c60e54527c7adf584798d5251f8a0b80c93d5deafce82501b2c28e6692e0bd783927bbfc4bc527a863c0cccc025150a34740a9e29badb02d4b48e56a8aba90
DIST gcc-7.3.0-patches-1.4.tar.bz2 8238 BLAKE2B
72a5dcb046558c8f5c3a75040fe24ce1106c43af7510d6febf667b4377cb9caea5ebe9e1287af90e4ebfffa3f3f22ca85f533acf57c2e2d896f92adc1659b9f5
SHA512
24ed0d82240426efb111bbf48913b96fdc824ae3aa5a653298a726ebe64a40791f484229bbab9cc58f73d658e0b4b83ccd13081cfbea6e1673ef1d076cca3b33
+DIST gcc-7.3.0-patches-1.8.tar.bz2 14435 BLAKE2B
3e5c1abad56ccd6e0aa7739cb7cd651ec07ef9bf25be554343f1fa0444f251de41bde5fe6f8bb9e85e3f7a5cf8b2b83515647d93d62f338fa7843581fcaff2f8
SHA512
4d9d76b3d47f1af4f23cae15278d165b22065a3d1512323d1e31b5e0cb47e4654733dc43fa11906a3bd18e827621c9a5ec62b73563f8e5ead663c29f7d0d7345
DIST gcc-7.3.0.tar.xz 62462388 BLAKE2B
dc8f132b21bd0543c3d9dd17557038aafe65675aa73c540954234a3c972b4c31c939149bd50183d072ab6c8d16919e19daeaaffd619ce2ccd62dbdf9a5bb3302
SHA512
ad41a7e4584e40e92cdf860bc0288500fbaf5dfb7e8c3fcabe9eba809c87bcfa85b46c19c19921b0cdf6d05483faede8287bb9ea120c0d1559449a70e602c8d4
+DIST gcc-7.4.0-patches-1.1.tar.bz2 8778 BLAKE2B
52b02b3c619b99912ee254599788abebe3963cf85e49b56166069318e340a8e271d767e82798e6062fc2a042a86a88da66ab95f2d9e42933ff17688d616a903f
SHA512
02ec2eb2460e24cf46f7a04ca3b80ca120719389a54a740070e991d9c96b6fd55d1fa04eb4249fd3043edc9c0f6519b5babcce76036cd0146183512aaae2d573
+DIST gcc-7.4.0.tar.xz 62601888 BLAKE2B
df91ec680d5389736d3a37a2d85cf2e12fbe87b642fdf4b332e67a043e00944aca00243cc6709f86abd92115cb5a78502146636395571d1ea4899531e15d5d0e
SHA512
8864d8e4b97c2e1a4f17422f6e68120172ebefeab97b1757734f7185ca68a6b9a89011c6833c03fa454c17b0ac35b15e1d284881e6971035948ac6100f3aa45e
+DIST gcc-8.2.0-patches-1.6.tar.bz2 17138 BLAKE2B
edbeba9c41972836de072955c0db51406603aaf0dbb5f84ac1c5d8d2d61a8df6d725356655b69e3678950a0dc6dacc1bc2bf56f3620d685fe5c32045b3893f96
SHA512
32e7bddb5ec288def1e5c79d58023d90e29d77e83b70e3f21a22f4da78061cc49184d92c43807bdfd56a5067cbb9a8cfbfcb514016662aa1a24d791c7bd87b6b
+DIST gcc-8.2.0.tar.xz 63460876 BLAKE2B
c5372b0bdfcd2729577dca287b294623b78c583491998404eb307768c573618bdaaedb7d9ae0e39ba41a62a14b9525dff0e3083285754b7f5bb9987ecf635185
SHA512
64898a165f67e136d802a92e7633bf1b06c85266027e52127ea025bf5fc2291b5e858288aac0bdba246e6cdf7c6ec88bc8e0e7f3f6f1985f4297710cafde56ed
DIST gcc-cygwinports-a03d77536f40d1a6335b6d313a4e4a4dff38ce66.tar.gz 35809
BLAKE2B
e009012e86b83032a7d316580eddfc8f03dccdaa9f573ce9a0e80209ef545748c4c98388238bc22c6666394346d5d4d42d21bf964454a6c05da1f80cd95f6ada
SHA512
989b3b0bc0c55715d7c87fa59f465d2af7042e052a5d01e9cdb26fd61e08504a596a604aa482438560e011b8ea5d015da75f172ea5c2ea5b9a90e8943f355734
DIST gcc-cygwinports-d83e3d1ac0a9adfacdf120f013870472e8e712c3.tar.gz 27216
BLAKE2B
0f4737d1f115d95d3e752c02e4f6eb8cde3e42653ece6aaa0eb90edf74bfad1e9b91514b49bc2b3dcb822de99d4bb37e697a3a37c555c6c306e8debd02bd283d
SHA512
0bf2e75d788a8e2dce352a084c44d6ae2c470ced178f257f464963041e13fc217ff31e970efb77261ac1916fe849eac110703343773ee1ec4d45c69c6b9200eb
DIST gcc-cygwinports-f44d762eb3551ea0d81aa8e4b428bcb7caabb628.tar.gz 32780
BLAKE2B
364353bf379a2a950050148caf2cef86239f2418a98f72b3edec4cf56e43e7d07601f4d1ca8103c691ddddff0fca96a6a8c728e2e50bca373c34441bdc7505be
SHA512
d5bc37965745fa32a3ddd357e658bd066d4aadf19eee7a30047f4dc6f47450d320e33cbbe4bf22fa6f5e30f7f41ec6ec3a250df56760a38df0f14fea3e34a83e
diff --git a/sys-devel/gcc/gcc-7.3.0-r6.ebuild
b/sys-devel/gcc/gcc-7.3.0-r6.ebuild
new file mode 100644
index 0000000000..c6d17395b3
--- /dev/null
+++ b/sys-devel/gcc/gcc-7.3.0-r6.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PATCH_VER="1.8"
+#UCLIBC_VER="1.0"
+CYGWINPORTS_GITREV="d83e3d1ac0a9adfacdf120f013870472e8e712c3" # gcc-7.3.0
+
+inherit eutils toolchain flag-o-matic
+
+KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris
~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )
+ kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
+ kernel_Darwin? ( ${CATEGORY}/binutils-apple )
+ kernel_AIX? ( ${CATEGORY}/native-cctools )"
+
+if [[ ${CATEGORY} != cross-* ]] ; then
+ PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )"
+fi
+
+src_prepare() {
+ toolchain_src_prepare
+
+ use vanilla && return 0
+
+ # make sure 64-bits native targets don't screw up the linker paths
+ epatch "${FILESDIR}"/no-libs-for-startfile.patch
+ if use prefix; then
+ epatch "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
+ # try /usr/lib32 in 32bit profile on x86_64-linux (needs
+ # --enable-multilib), but this does make sense in prefix only
+ epatch "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch
+ fi
+
+ # make it have correct install_names on Darwin
+ epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
+
+ # fix for powerpc-darwin, from upstream, fixed for 7.4
+ epatch "${FILESDIR}"/${P}-powerpc-darwin.patch
+}
+
+src_configure() {
+ local myconf=()
+ case ${CTARGET}:" ${USE} " in
+ powerpc*-darwin*)
+ # bug #381179
+ filter-flags "-mcpu=*" "-mtune=*"
+ # bug #657522
+ # A bug in configure checks whether -no-pie works, but
the
+ # compiler doesn't pass -no-pie onto the linker if
-fno-PIE
+ # isn't passed, so the configure check always finds
-no-pie
+ # is accepted. (Likewise, when -fno-PIE is passed, the
+ # compiler passes -no_pie onto the linker.)
+ # Since our linker doesn't grok this, avoid above
checks to
+ # be run
+ # NOTE: later ld64 does grok -no_pie, not -no-pie (as
checked)
+ export gcc_cv_c_no_fpie=no
+ export gcc_cv_no_pie=no
+ ;;
+ *-solaris*)
+ # todo: some magic for native vs. GNU linking?
+ myconf+=( --with-gnu-ld --with-gnu-as
--enable-largefile )
+ # Solaris 11 defines this in its headers, but that
causes a
+ # mismatch whilst compiling, bug #657514
+ export ac_cv_func_aligned_alloc=no
+ export ac_cv_func_memalign=no
+ export ac_cv_func_posix_memalign=no
+ ;;
+ i[34567]86-*-linux*:*" prefix "*)
+ # to allow the linux-x86-on-amd64.patch become useful,
we need
+ # to enable multilib, even if there is just one
multilib option.
+ myconf+=( --enable-multilib )
+ if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then
+ # we might be on x86_64-linux, but don't do
cross-compile, so
+ # tell the host-compiler to really create
32bits (for stage1)
+ # (real x86-linux-gcc also accept -m32).
+ append-flags -m32
+ fi
+ ;;
+ esac
+
+ # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
+ # least on Solaris, and AIX /bin/sh is way too slow,
+ # so force it to use $BASH (that portage uses) - it can't be EPREFIX
+ # in case that doesn't exist yet
+ export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
+ toolchain_src_configure "${myconf[@]}"
+}
diff --git a/sys-devel/gcc/gcc-7.4.0.ebuild b/sys-devel/gcc/gcc-7.4.0.ebuild
new file mode 100644
index 0000000000..c0140b7cf7
--- /dev/null
+++ b/sys-devel/gcc/gcc-7.4.0.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PATCH_VER="1.1"
+#CYGWINPORTS_GITREV="d83e3d1ac0a9adfacdf120f013870472e8e712c3" # gcc-7.3.0
+
+inherit eutils toolchain flag-o-matic
+
+KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris
~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )
+ kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
+ kernel_Darwin? ( ${CATEGORY}/binutils-apple )
+ kernel_AIX? ( ${CATEGORY}/native-cctools )"
+
+if [[ ${CATEGORY} != cross-* ]] ; then
+ PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )"
+fi
+
+src_prepare() {
+ toolchain_src_prepare
+
+ use vanilla && return 0
+
+ # make sure 64-bits native targets don't screw up the linker paths
+ epatch "${FILESDIR}"/no-libs-for-startfile.patch
+ if use prefix; then
+ epatch "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
+ # try /usr/lib32 in 32bit profile on x86_64-linux (needs
+ # --enable-multilib), but this does make sense in prefix only
+ epatch "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch
+ fi
+
+ # make it have correct install_names on Darwin
+ epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
+}
+
+src_configure() {
+ local myconf=()
+ case ${CTARGET}:" ${USE} " in
+ powerpc*-darwin*)
+ # bug #381179
+ filter-flags "-mcpu=*" "-mtune=*"
+ # bug #657522
+ # A bug in configure checks whether -no-pie works, but
the
+ # compiler doesn't pass -no-pie onto the linker if
-fno-PIE
+ # isn't passed, so the configure check always finds
-no-pie
+ # is accepted. (Likewise, when -fno-PIE is passed, the
+ # compiler passes -no_pie onto the linker.)
+ # Since our linker doesn't grok this, avoid above
checks to
+ # be run
+ # NOTE: later ld64 does grok -no_pie, not -no-pie (as
checked)
+ export gcc_cv_c_no_fpie=no
+ export gcc_cv_no_pie=no
+ ;;
+ *-solaris*)
+ # todo: some magic for native vs. GNU linking?
+ myconf+=( --with-gnu-ld --with-gnu-as
--enable-largefile )
+ # Solaris 11 defines this in its headers, but that
causes a
+ # mismatch whilst compiling, bug #657514
+ export ac_cv_func_aligned_alloc=no
+ export ac_cv_func_memalign=no
+ export ac_cv_func_posix_memalign=no
+ ;;
+ i[34567]86-*-linux*:*" prefix "*)
+ # to allow the linux-x86-on-amd64.patch become useful,
we need
+ # to enable multilib, even if there is just one
multilib option.
+ myconf+=( --enable-multilib )
+ if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then
+ # we might be on x86_64-linux, but don't do
cross-compile, so
+ # tell the host-compiler to really create
32bits (for stage1)
+ # (real x86-linux-gcc also accept -m32).
+ append-flags -m32
+ fi
+ ;;
+ esac
+
+ # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
+ # least on Solaris, and AIX /bin/sh is way too slow,
+ # so force it to use $BASH (that portage uses) - it can't be EPREFIX
+ # in case that doesn't exist yet
+ export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
+ toolchain_src_configure "${myconf[@]}"
+}
diff --git a/sys-devel/gcc/gcc-8.2.0-r5.ebuild
b/sys-devel/gcc/gcc-8.2.0-r5.ebuild
new file mode 100644
index 0000000000..abd05ff697
--- /dev/null
+++ b/sys-devel/gcc/gcc-8.2.0-r5.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PATCH_VER="1.6"
+#UCLIBC_VER="1.0"
+#CYGWINPORTS_GITREV="d83e3d1ac0a9adfacdf120f013870472e8e712c3" # gcc-7.3.0
+
+inherit eutils toolchain flag-o-matic
+
+KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris
~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )
+ kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
+ kernel_Darwin? ( ${CATEGORY}/binutils-apple )
+ kernel_AIX? ( ${CATEGORY}/native-cctools )"
+
+if [[ ${CATEGORY} != cross-* ]] ; then
+ PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )"
+fi
+
+src_prepare() {
+ toolchain_src_prepare
+
+ use vanilla && return 0
+
+ # make sure 64-bits native targets don't screw up the linker paths
+ epatch "${FILESDIR}"/no-libs-for-startfile.patch
+ if use prefix; then
+ epatch "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
+ # try /usr/lib32 in 32bit profile on x86_64-linux (needs
+ # --enable-multilib), but this does make sense in prefix only
+ epatch "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch
+ fi
+
+ # make it have correct install_names on Darwin
+ epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
+}
+
+src_configure() {
+ local myconf=()
+ case ${CTARGET}:" ${USE} " in
+ powerpc*-darwin*)
+ # bug #381179
+ filter-flags "-mcpu=*" "-mtune=*"
+ # bug #657522
+ # A bug in configure checks whether -no-pie works, but
the
+ # compiler doesn't pass -no-pie onto the linker if
-fno-PIE
+ # isn't passed, so the configure check always finds
-no-pie
+ # is accepted. (Likewise, when -fno-PIE is passed, the
+ # compiler passes -no_pie onto the linker.)
+ # Since our linker doesn't grok this, avoid above
checks to
+ # be run
+ # NOTE: later ld64 does grok -no_pie, not -no-pie (as
checked)
+ export gcc_cv_c_no_fpie=no
+ export gcc_cv_no_pie=no
+ ;;
+ *-solaris*)
+ # todo: some magic for native vs. GNU linking?
+ myconf+=( --with-gnu-ld --with-gnu-as
--enable-largefile )
+ # Solaris 11 defines this in its headers, but that
causes a
+ # mismatch whilst compiling, bug #657514
+ export ac_cv_func_aligned_alloc=no
+ export ac_cv_func_memalign=no
+ export ac_cv_func_posix_memalign=no
+ ;;
+ i[34567]86-*-linux*:*" prefix "*)
+ # to allow the linux-x86-on-amd64.patch become useful,
we need
+ # to enable multilib, even if there is just one
multilib option.
+ myconf+=( --enable-multilib )
+ if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then
+ # we might be on x86_64-linux, but don't do
cross-compile, so
+ # tell the host-compiler to really create
32bits (for stage1)
+ # (real x86-linux-gcc also accept -m32).
+ append-flags -m32
+ fi
+ ;;
+ esac
+
+ # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
+ # least on Solaris, and AIX /bin/sh is way too slow,
+ # so force it to use $BASH (that portage uses) - it can't be EPREFIX
+ # in case that doesn't exist yet
+ export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
+ toolchain_src_configure "${myconf[@]}"
+}
diff --git a/sys-devel/gcc/metadata.xml b/sys-devel/gcc/metadata.xml
index 52748bc1ff..d70e721314 100644
--- a/sys-devel/gcc/metadata.xml
+++ b/sys-devel/gcc/metadata.xml
@@ -8,6 +8,8 @@
<use>
<flag name="awt">Useful only when building GCJ, this enables Abstract
Window Toolkit
(AWT) peer support on top of GTK+</flag>
+ <flag name="boundschecking">Add the bounds checking patch by Haj Ten
Brugge,
+ this will DISABLE the hardened PIE+SSP patches</flag>
<flag name="cilk">Support the Cilk Plus language (C/C++ based languages
for parallel programming)</flag>
<flag name="d">Enable support for the D programming language</flag>
<flag name="fixed-point">Enable fixed-point arithmetic support for MIPS
targets
@@ -31,6 +33,7 @@
<flag name="regression-test">Run the testsuite and install the results
(requires FEATURES=test)</flag>
<flag name="sanitize">Build support for various sanitizer functions
(ASAN/TSAN/etc...)</flag>
<flag name="ssp">Build packages with stack smashing protector on by
default</flag>
+ <flag name="systemtap">enable systemtap static probe points</flag>
<flag name="vtv">Build support for virtual table verification (a C++
hardening feature)</flag>
</use>
<upstream>