diff options
author | Sam James <sam@gentoo.org> | 2023-12-18 00:10:19 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-12-18 00:10:24 +0000 |
commit | 7d4af8051ee00baccbfaec837f589d13aa00b81e (patch) | |
tree | ac1f7d7fee110f579886851428ef8d6811a080ce /sys-devel | |
parent | media-libs/fcft: add 3.1.7 (diff) | |
download | gentoo-7d4af8051ee00baccbfaec837f589d13aa00b81e.tar.gz gentoo-7d4af8051ee00baccbfaec837f589d13aa00b81e.tar.bz2 gentoo-7d4af8051ee00baccbfaec837f589d13aa00b81e.zip |
sys-devel/gcc: add 14.0.0_pre20231217
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/gcc/Manifest | 2 | ||||
-rw-r--r-- | sys-devel/gcc/gcc-14.0.0_pre20231217.ebuild | 64 |
2 files changed, 66 insertions, 0 deletions
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest index c12c340f7ef5..4611ee7e62b1 100644 --- a/sys-devel/gcc/Manifest +++ b/sys-devel/gcc/Manifest @@ -35,8 +35,10 @@ DIST gcc-14-20231119.tar.xz 86333708 BLAKE2B 520c504b931a6cbb3458e4ecbf198af89dd DIST gcc-14-20231126.tar.xz 86425216 BLAKE2B bd5c18c520fa7de9b9a3c02ed3d49d6771940d5f69e6b2fb52464ef4529f5d97a34f250ebd231749a03250e6ecb29df0ff9d2b1689bc820517a17c08e3fd476f SHA512 6e43f5d2d6072b0c91afb3bee80bd803e946c83095f1b927fdcb3473691bf196bcfc8e4a16b4e15896b5a81b9e6c388bad9a057c01972a7e940d11283f1e18b8 DIST gcc-14-20231203.tar.xz 86462688 BLAKE2B 98855f7d07f9283ca4a681257ce36b69fb63f2de2ef0077e607211373fce8dee2d77b144bcbc6fb34c5dd25fe54680b36a8ff3248d0505860772ae4fa89a5d2e SHA512 be4bc1fc3a86130a2e0f785361e2f6d2ce56f727ba7050c969d91e736a5b2c93bffa6a977ade72e08c36262315f15f85b7bff2c89ff3653eb60bac98d4016616 DIST gcc-14-20231210.tar.xz 86799716 BLAKE2B 289329e0fa25073a7f2e21c95ef6347c6f028f4eca4e1dd4db0224fa2eb4aa6434aeff9961f32f1d531d07228626c8911d2df3d3871e5454dda26d74ba3228b0 SHA512 cac5d739abd34318df5f3787e47a9657bbba8204bbcc2b4a968291043983264721a67420165d537b2ca0fb5c44f85cfabfb2bf138922f849cd69a6a2c2f10dd5 +DIST gcc-14-20231217.tar.xz 86943032 BLAKE2B 8d5ab21fedffad0d4d4e02201c74f3b90cfabe5c2c1abbc048b6c4d179cbf3977cffc6bfc1b7b679d0276b66f86d58ef5c0b8451a4fcb75b88b7240fd7baf41c SHA512 23d8e6dd76aff0a5d7687ce8753aba7bdc374d3330553314da378af84ad629e67dbb532ba416816ce81812857c4c54e31cc5460d3f86619d7a9fb368328ff11d DIST gcc-14.0.0-musl-patches-1.tar.xz 3576 BLAKE2B 692baee8a7709905d53aeb150d73a3721c4ba47ee5f397cfb1b5be905cf003ca02b60c94ee294d90ac39645cd5cdf186c7a3aa950c47d8cf680c128ed705b807 SHA512 0592ab98a7142e404623a6511c67dff61e9ade32c3fb2c0e75b456306e0af3799ad13252b50b3d2fdd31e5815d7f0b16b0ad63ab8386fe4d78729fc9c182d617 DIST gcc-14.0.0-patches-10.tar.xz 11564 BLAKE2B 55d3fcb9f4de2d2fedd3cb0dcf7e03468ab6b0e29f31c70d3a5e80b91e237677d130641a1567d441882fa9525affd59ffb490324ee38857ecdd3f8a51d628a1c SHA512 b3ee6f6e26eb5a50dc1b26820b76bcdc7116784b275ddcfbf86486958d6b25dc74f00579aef04315c1f4c2648c120f594040f4846bd85faa431d2f1b6c5ba923 +DIST gcc-14.0.0-patches-11.tar.xz 11272 BLAKE2B 81c63b8aebcfd5b33b698ef4ef8f2d12b94ea2753ecec2b160cf9fab534dccd12875bcb16cfac2aa81211f8d9ff530cfc18f486567721beac487e08daa62363e SHA512 0f51352cbc6815cd1dbc8b73e9c83842a58242220ba712291cc76c08c19b3a612c88a3221b2da437a9c7ecb410a83c2e538aa1984b733f444843bdf79d314a71 DIST gcc-14.0.0-patches-9.tar.xz 11428 BLAKE2B b5f543ab1b8b328e0ddf9e030995757c421a2cd7a5a3f42e82f07dbfc69af5d4a3d4ca28300e81a70d39729c24068e2ab2e00f6030c6ee79c61d52b5f631312c SHA512 dd7f9c4a3cb72911aa0a74826e890200f6c73ed09fb379f79ef3241945841be84f9bd618ed9b457da15cec182205af58dd478d2705ec663f721d9f16ec35293f DIST gcc-8.5.0-patches-4.tar.xz 18616 BLAKE2B 7594cbaea5daecf1a0b3d526c06aeba0a84c6da66aee2e105a51fda6be8d30a37ccc3814281b284a4582d892a1d556bca063551584edfc2525bed8ea5b6888e7 SHA512 1aa5742c361186637e7855f06feb1a4547e7d4d5de6e51f3d049e0ef3c19e2eff179465f52781739f59422035b7f8e4c0efa3844849f920f3c96acfdc37ca6a6 DIST gcc-8.5.0.tar.xz 63841008 BLAKE2B aa81a1a730fd7371360f6abed6ba78b5843fd18c58d5de5687acc320741b9e430e85df3535a1ef7a26051409be8d2f0945f503e5968480d919103123a99d4b12 SHA512 92f599680e6b7fbce88bcdda810f468777d541e5fddfbb287f7977d51093de2a5178bd0e6a08dfe37090ea10a0508a43ccd00220041abbbec33f1179bfc174d8 diff --git a/sys-devel/gcc/gcc-14.0.0_pre20231217.ebuild b/sys-devel/gcc/gcc-14.0.0_pre20231217.ebuild new file mode 100644 index 000000000000..3fd3235d9835 --- /dev/null +++ b/sys-devel/gcc/gcc-14.0.0_pre20231217.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="11" +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 +} |