diff options
author | Sam James <sam@gentoo.org> | 2023-09-18 00:57:39 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-18 00:57:39 +0100 |
commit | c02b86bd290ca927cfb38008590c129964b6df52 (patch) | |
tree | 9dd70fd721e5831363c4c482880968d6996e4bde /sys-devel/gcc | |
parent | dev-lang/boogie: add missing src_unpack to support git (diff) | |
download | gentoo-c02b86bd290ca927cfb38008590c129964b6df52.tar.gz gentoo-c02b86bd290ca927cfb38008590c129964b6df52.tar.bz2 gentoo-c02b86bd290ca927cfb38008590c129964b6df52.zip |
sys-devel/gcc: add 14.0.0_pre20230917
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-devel/gcc')
-rw-r--r-- | sys-devel/gcc/Manifest | 1 | ||||
-rw-r--r-- | sys-devel/gcc/gcc-14.0.0_pre20230917.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest index 2fe689d507c5..48b2d9cd1004 100644 --- a/sys-devel/gcc/Manifest +++ b/sys-devel/gcc/Manifest @@ -53,6 +53,7 @@ DIST gcc-14-20230820.tar.xz 85164168 BLAKE2B 21521a63faf043390283b3bdae8bb66f3a4 DIST gcc-14-20230827.tar.xz 85222804 BLAKE2B 5faba24eda2ca81d0cd3c3ea08353ef0047a10ff9be25503c46b4ea1fe9fbf729e3e8d20a5307d45c43250fcfeac6cc9f323aaeb62c81cd7cc9b3fda0ba56101 SHA512 d6c38cc3594e4a607adfd4b71b9af29f389d5a430aec01c4b4a76a71bdec3267798ea7cb3fcc2d1661886ac84636f0b9999c6bf4241a85eb7c238134dae02ab3 DIST gcc-14-20230903.tar.xz 85250996 BLAKE2B 798500bd10f07dbab08059bc5885162300c1fb36057118bf14959184c6d98a13ccf335458720a9e7c93a6919be10473094d96dc2d1144e3c6f8e33941a8f14fd SHA512 1bac24b1441123ee0b9a48a749fbf7bee23a5fa8ae798053fb5003721a2922221c49fa379ea358575c180a0571e47145dde01c3bbee4df0ed569bd78f6ee439a DIST gcc-14-20230910.tar.xz 85633968 BLAKE2B 3abf0e0ca11cb5462380e8515167e43a43e44180d46df75092e46454244f76357357e3e3e6af7323b9e638ee24fe28283af26f6852bad691e8660e99f9ebdf78 SHA512 ddafbf862880b801dbfc3365d1d9416842d257b8f3d3a6d16acdf444ec13d4aa91f6c8fe062c26e01e8544339a7df20c42cff04beb1d9825a3fcee0744df4039 +DIST gcc-14-20230917.tar.xz 85875468 BLAKE2B afd39683b7ae9e84c6fa81d6ba6059a1411463ab45fce81eccf34dfafb29ff633a287826063da547014c12b9e0244d2a022ddb1fef1c73edd882249c5be695e3 SHA512 a1f79805278e61c9feb4020c62e07c666fa724d872fc55dd0372a7d17cc2c2e2e8d2d149e748499e75331bcb28a6b1a6641c20111a6d8b871dddc1efe957608d DIST gcc-14.0.0-musl-patches-1.tar.xz 3576 BLAKE2B 692baee8a7709905d53aeb150d73a3721c4ba47ee5f397cfb1b5be905cf003ca02b60c94ee294d90ac39645cd5cdf186c7a3aa950c47d8cf680c128ed705b807 SHA512 0592ab98a7142e404623a6511c67dff61e9ade32c3fb2c0e75b456306e0af3799ad13252b50b3d2fdd31e5815d7f0b16b0ad63ab8386fe4d78729fc9c182d617 DIST gcc-14.0.0-patches-2.tar.xz 11484 BLAKE2B 6ff968051d286f21eb7f4ec80303b232530c153cca8d9e61ddfdf3675ef8c5740223a8b720ec9d5c4561b505993c675cc6fc7a9bab659ee1db99e1d97911eb74 SHA512 b255338d6110d9bfe211ba14da7b186f69b81503dba6e4ec19ee6fa37d44c0690e713c763abe27ce934ff7f9e5d0c8788a54c30587f07f65858b1e817cbf7247 DIST gcc-8.5.0-patches-4.tar.xz 18616 BLAKE2B 7594cbaea5daecf1a0b3d526c06aeba0a84c6da66aee2e105a51fda6be8d30a37ccc3814281b284a4582d892a1d556bca063551584edfc2525bed8ea5b6888e7 SHA512 1aa5742c361186637e7855f06feb1a4547e7d4d5de6e51f3d049e0ef3c19e2eff179465f52781739f59422035b7f8e4c0efa3844849f920f3c96acfdc37ca6a6 diff --git a/sys-devel/gcc/gcc-14.0.0_pre20230917.ebuild b/sys-devel/gcc/gcc-14.0.0_pre20230917.ebuild new file mode 100644 index 000000000000..59534d9e96dd --- /dev/null +++ b/sys-devel/gcc/gcc-14.0.0_pre20230917.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +TOOLCHAIN_PATCH_DEV="sam" +PATCH_GCC_VER="14.0.0" +PATCH_VER="2" +MUSL_VER="1" +MUSL_GCC_VER="14.0.0" + +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=">=${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_user +} |