summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-16 00:35:42 +0000
committerSam James <sam@gentoo.org>2023-01-16 00:35:42 +0000
commit08291bac5baf96511c151b2833784b513c2a7102 (patch)
tree578e515af9b0cb2959e87c2714b39621f340feed /sys-devel
parentsys-apps/hwdata: Stabilize 0.366 ALLARCHES, #891007 (diff)
downloadgentoo-08291bac5baf96511c151b2833784b513c2a7102.tar.gz
gentoo-08291bac5baf96511c151b2833784b513c2a7102.tar.bz2
gentoo-08291bac5baf96511c151b2833784b513c2a7102.zip
sys-devel/gcc: add 13.0.0_pre20230115
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-13.0.0_pre20230115.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index 38d1943f28b3..03bc70fe384d 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -31,6 +31,7 @@ DIST gcc-12.2.0-patches-8.tar.xz 14656 BLAKE2B 25f00289699e8e3417c5e4a7d424cdbb1
DIST gcc-12.2.0-patches-9.tar.xz 13636 BLAKE2B fcbd3dc5adeb7425d028001bd21ede21ae5596a48f4cfbeabed3fb657b27edf19bbe502f0388c284ffc87d03714f9e0ba4bc9c8008814c6362ed56b8165d403b SHA512 09581aba97a18008739d70dc6dbfdacd0c82acce6e175c879b50b81c7575c6e056cd9f2a73e7d6231ea5a6f72c248eca3d818996188ec34cdf7137e9f263fc01
DIST gcc-12.2.0.tar.xz 84645292 BLAKE2B 715574af9ad678f9dc8cfd19c866bf910c7edfd479e7e9681337feaa9b54e5d304ddb85483816b8d89754d502405823ae2eff0d1e444538763f40be8e428d8da SHA512 e9e857bd81bf7a370307d6848c81b2f5403db8c7b5207f54bce3f3faac3bde63445684092c2bc1a2427cddb6f7746496d9fbbef05fbbd77f2810b2998f1f9173
DIST gcc-13-20230108.tar.xz 82786988 BLAKE2B c08b06947f347bf589775b4004636cddd1fbba582aec8192733fb3630d7082a7eaf7acd665b004a897bfdfc7cd9fd1b10f3e25596b70b51aa0a61f75267e4cf7 SHA512 46a7212755f33fb02b4fc07d808207ca5e34d0d55a42c0e32b80af3e75393526177da0c1455182fea7fd3015a5ac0ed72204e3859381a5c8d64dd0b19e7add07
+DIST gcc-13-20230115.tar.xz 82853256 BLAKE2B 249119bccf25cdded9dd0ff98e1ceac8d68251b721c3ceb89191e8b455996129f311ef45b03d003d5b5bfddc0ca09cc7084a0b10a3248a7740c0b18be6733260 SHA512 f6a131749096a8cbd3aa2b8dbbbf41c55f256ecc079966a8c3efbc23fe39d5510c8952b405b16c8462107262808c2088a1cbb705b01e68bb29d75da39beb1a4a
DIST gcc-13.1.0-patches-5.tar.xz 11404 BLAKE2B 5ba2b4002e917750757a28fa4c7ff6ff7090c35f28eb984aee6ad7fc0ac80c88a9d08e1d4d9efa98e6bd3f06e89df47b10b51f8294bb7d2ef0d1ac3fd2a1a963 SHA512 6864738794237bd7430c612404dd4b84e275362cb5abd081284a91e5b24c1b0aa97d90b9543168c72147be146887219715325d52ae2920912d9c4e17e7224aa3
DIST gcc-8.5.0-patches-2.tar.bz2 16921 BLAKE2B 619a47f74edf05fa01c9de59d0ff7abb027a01cf0bdec91ac41046166192f4eae561684136c4a6a5e077f64754bb5b0710905129f31b0def21d88f92e6bba7fb SHA512 b6095d4570895e2c4dd58fed5756194aea27391b813e5e2de42b2749cb318c4bea2087eb0ff92c70e7f98ae4482c49d476db57be83d7beb19fd462aa61714ab2
DIST gcc-8.5.0.tar.xz 63841008 BLAKE2B aa81a1a730fd7371360f6abed6ba78b5843fd18c58d5de5687acc320741b9e430e85df3535a1ef7a26051409be8d2f0945f503e5968480d919103123a99d4b12 SHA512 92f599680e6b7fbce88bcdda810f468777d541e5fddfbb287f7977d51093de2a5178bd0e6a08dfe37090ea10a0508a43ccd00220041abbbec33f1179bfc174d8
diff --git a/sys-devel/gcc/gcc-13.0.0_pre20230115.ebuild b/sys-devel/gcc/gcc-13.0.0_pre20230115.ebuild
new file mode 100644
index 000000000000..41e7410862f1
--- /dev/null
+++ b/sys-devel/gcc/gcc-13.0.0_pre20230115.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+TOOLCHAIN_PATCH_DEV="sam"
+PATCH_VER="5"
+PATCH_GCC_VER="13.1.0"
+MUSL_GCC_VER="13.1.0"
+
+if [[ $(ver_cut 3) == 9999 ]] ; then
+ MY_PV_2=$(ver_cut 2)
+ MY_PV_3=$(($(ver_cut 3) - 9998))
+ if [[ ${MY_PV_2} == 0 ]] ; then
+ MY_PV_2=0
+ MY_PV_3=0
+ else
+ MY_PV_2=$(($(ver_cut 2) - 1))
+ fi
+
+ # e.g. 12.2.9999 -> 12.1.1
+ TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.${MY_PV_3}
+fi
+
+inherit toolchain
+# Needs to be after inherit (for now?), bug #830908
+EGIT_BRANCH=master
+
+# Don't keyword live ebuilds
+if ! tc_is_live && [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then
+# KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+ KEYWORDS="~loong"
+fi
+
+# 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="${CATEGORY}/binutils[cet(-)?]"
+
+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_user
+}