summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-05-04 01:18:17 +0100
committerSam James <sam@gentoo.org>2024-05-04 01:18:17 +0100
commit31ec558d3aa920e9f3fc892282f9b3227630dda3 (patch)
tree5db8410bcb1910f1c0c9e35d808cae5af107373a /sys-devel
parentsys-devel/gcc: add 13.2.1_p20240503 (diff)
downloadgentoo-31ec558d3aa920e9f3fc892282f9b3227630dda3.tar.gz
gentoo-31ec558d3aa920e9f3fc892282f9b3227630dda3.tar.bz2
gentoo-31ec558d3aa920e9f3fc892282f9b3227630dda3.zip
sys-devel/gcc: add 14.0.1_pre20240503 (RC2)
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gcc/Manifest1
-rw-r--r--sys-devel/gcc/gcc-14.0.1_pre20240503.ebuild67
2 files changed, 68 insertions, 0 deletions
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index 8eccbdf274bc..30e2d4bd5e9b 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -19,6 +19,7 @@ DIST gcc-13.2.0-patches-15.tar.xz 47052 BLAKE2B f145341813d6baf9cbcc3e8421c7f427
DIST gcc-14.0.0-musl-patches-1.tar.xz 3576 BLAKE2B 692baee8a7709905d53aeb150d73a3721c4ba47ee5f397cfb1b5be905cf003ca02b60c94ee294d90ac39645cd5cdf186c7a3aa950c47d8cf680c128ed705b807 SHA512 0592ab98a7142e404623a6511c67dff61e9ade32c3fb2c0e75b456306e0af3799ad13252b50b3d2fdd31e5815d7f0b16b0ad63ab8386fe4d78729fc9c182d617
DIST gcc-14.0.0-patches-26.tar.xz 12360 BLAKE2B a2fdd6ff1774bc94f96bc4f7da4092c373936c93e04b94e75701227ab55d530523fee6b561773d05080e51748cc7716868d8b108f51a06e37a2c26a1d7f39b33 SHA512 1275e6345417ee196e74c46845d05508c8662d71e2432fbfbf7f1eb9c220657b4ee8e3b0ca02b7b4c7e14df164f254380c65af91cadc3bda4cd7afbe6af5ea8b
DIST gcc-14.1.0-RC-20240430.tar.xz 92292396 BLAKE2B c1a449c0677b6aaf61efd85cb80d14e1d27e9913a7b1b183689ccdb67ef62203d62e3665e093bbeb96b6f28c6d623694853c87ee67bb9098a4cb8397b224cdb9 SHA512 d4ee39b5e77f94dbf8212f5e026eefa15803f3cd6846d6179ea16edb6beea902bc5cb0b90a8c4383b6d6e50083f457959de2dc3b1240975eb283bff43b628f92
+DIST gcc-14.1.0-RC-20240503.tar.xz 92292772 BLAKE2B 2ed7adfe3b2476eb09ef950650ce83429cc0d43daab9fbc438baf60d503e9945fe1e260e3e97b38b5e53ee73f1a7c65c227f49e91db1b1472e251dc011a2ad10 SHA512 a1d9f52243afb8b5dc428bfc45b5cce85c6fdfc3f64bdd45e2afe7e98cc3107adf0ed34af4076fc40df48830f993409dae21e65f7f5db3158f20c738cebd9955
DIST gcc-15-20240428.tar.xz 87999896 BLAKE2B 83e53e5a93166c741bd61f1642539823f9eef5859f89c85493cfe0be412251950c07b3704e8a983c61e00fd4b0e0027f7333867f9b4245ba45d6f606ce56953d SHA512 69aedb59fd4d9ec59b7a71098bcf330ec0515e7a51e7510d237e086e7c042526aaa52a702783b6121ee7c9133345c8234d5d2fcd89459d7ae8a1a1e09c42cce8
DIST gcc-15.0.0-musl-patches-1.tar.xz 3596 BLAKE2B 48fddc723ec8282cc2704c795a50fb37a46738a555151e0430180dda61d039fe96b29a6c3e8a543386d69690302bf46dfc89aad572082b7e47c928c0ccefdeb0 SHA512 e43284d02e25b77b911ce90d57520897751e86c631bdd6beb7d2e4429000156801b8c11bd9a737ec11bc966812f13ae44b88c1893645f8e6c6f8dfddc636ec39
DIST gcc-15.0.0-patches-1.tar.xz 11588 BLAKE2B 0623914dcf3ee0d44c729776cebbecfe92b256039a48c91e3fc16a27254a9c40436a1b6ea7fa9285914b153af861ea98ab845515169af204eeea0243c890a652 SHA512 7d3bcb1adcfa79c1672737125539fc0583f9c74eb8da0301ea0e441c68afeb7e1dbcbdffbf18e03b2515b4f23822a39e339298cf88ea94b93f5fc22b497cd545
diff --git a/sys-devel/gcc/gcc-14.0.1_pre20240503.ebuild b/sys-devel/gcc/gcc-14.0.1_pre20240503.ebuild
new file mode 100644
index 000000000000..668f13440f36
--- /dev/null
+++ b/sys-devel/gcc/gcc-14.0.1_pre20240503.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+TOOLCHAIN_GCC_RC=1
+TOOLCHAIN_PATCH_DEV="sam"
+PATCH_GCC_VER="14.0.0"
+PATCH_VER="26"
+MUSL_VER="1"
+MUSL_GCC_VER="14.0.0"
+PYTHON_COMPAT=( python3_{10..11} )
+
+if [[ ${PV} == *.9999 ]] ; then
+ MY_PV_2=$(ver_cut 2)
+ MY_PV_3=1
+ if [[ ${MY_PV_2} == 0 ]] ; then
+ MY_PV_2=0
+ MY_PV_3=0
+ else
+ MY_PV_2=$((${MY_PV_2} - 1))
+ fi
+
+ # e.g. 12.2.9999 -> 12.1.1
+ TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.${MY_PV_3}
+elif [[ -n ${TOOLCHAIN_GCC_RC} ]] ; then
+ # Cheesy hack for RCs
+ MY_PV=$(ver_cut 1).$((($(ver_cut 2) + 1))).$((($(ver_cut 3) - 1)))-RC-$(ver_cut 5)
+ MY_P=${PN}-${MY_PV}
+ GCC_TARBALL_SRC_URI="mirror://gcc/snapshots/${MY_PV}/${MY_P}.tar.xz"
+ TOOLCHAIN_SET_S=no
+ S="${WORKDIR}"/${MY_P}
+fi
+
+inherit toolchain
+
+if tc_is_live ; then
+ # Needs to be after inherit (for now?), bug #830908
+ EGIT_BRANCH=master
+elif [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then
+ # Don't keyword live ebuilds
+ #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+ :;
+fi
+
+if [[ ${CATEGORY} != cross-* ]] ; then
+ # Technically only if USE=hardened *too* right now, but no point in complicating it further.
+ # If GCC is enabling CET by default, we need glibc to be built with support for it.
+ # bug #830454
+ RDEPEND="elibc_glibc? ( sys-libs/glibc[cet(-)?] )"
+ DEPEND="${RDEPEND}"
+ BDEPEND="amd64? ( >=${CATEGORY}/binutils-2.30[cet(-)?] )"
+fi
+
+src_prepare() {
+ local p upstreamed_patches=(
+ # add them here
+ )
+ for p in "${upstreamed_patches[@]}"; do
+ rm -v "${WORKDIR}/patch/${p}" || die
+ done
+
+ toolchain_src_prepare
+
+ eapply "${FILESDIR}"/${PN}-13-fix-cross-fixincludes.patch
+ eapply_user
+}