diff options
author | Sam James <sam@gentoo.org> | 2024-06-15 02:15:02 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-06-15 02:15:02 +0100 |
commit | 3bc7b343f8b231bf43337f82c2c4f28ec928ffee (patch) | |
tree | 0c91635eaf856edab297a29a0a0872605a2449a6 /sys-devel | |
parent | app-emulation/wine-vanilla: add 9.11 (diff) | |
download | gentoo-3bc7b343f8b231bf43337f82c2c4f28ec928ffee.tar.gz gentoo-3bc7b343f8b231bf43337f82c2c4f28ec928ffee.tar.bz2 gentoo-3bc7b343f8b231bf43337f82c2c4f28ec928ffee.zip |
sys-devel/gcc: add 11.4.1_p20240612
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/gcc/Manifest | 1 | ||||
-rw-r--r-- | sys-devel/gcc/gcc-11.4.1_p20240612.ebuild | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest index 9d23ded17d72..572a79d90de5 100644 --- a/sys-devel/gcc/Manifest +++ b/sys-devel/gcc/Manifest @@ -7,6 +7,7 @@ DIST gcc-11-20240515.tar.xz 76271444 BLAKE2B cf7844a31f74ba64240afcab3b4a38aa7e5 DIST gcc-11-20240522.tar.xz 76266872 BLAKE2B d01569464aabcc7f5cc365bba5176c14d6f406ae69649903b214294d54fc640ebd9073b53796a29399574d0a245ae3dc830346c6c00f36394a63a02fba368de2 SHA512 d9f9277874bf9f40b584a66205c4a58464cbd5bf2884892a0fc057392a3fba6f8b1aa37a23f639d595728b21b3f46a3a5939e72ab75314a23bed7fc2c143a328 DIST gcc-11-20240529.tar.xz 76268860 BLAKE2B 351b4df815d19e918932c45688ffae5ef5d921bcee9d6fcf53a8bb495194618a1597585e543093a4107e4616edf16d6e241e478f67c02f9933ffce201641576e SHA512 8d5d120f545de2a56883b50441dfe49211b90c26d87986af1afd4f60970c00dfdd645f65f9b69a01f014c227fa1c2cd4b3ac46157d236e6917aaacd477d4ec7c DIST gcc-11-20240605.tar.xz 76281596 BLAKE2B f102df5a47a76ab6e3d8a8ca7605aa7fc0cb19f00423473bd63f6f9f916b282c9e1d5b7c7ea821543e92a230b305b02e4bc61b4d1bdef652f0bbf8229735a248 SHA512 e493287c07775c7d70611b264760a05025a30df2069fa369303851b49bd0cccebf0cfd5e08651251935fbc241a36be12c9a924524e23aa01519992eab67b6d28 +DIST gcc-11-20240612.tar.xz 76291200 BLAKE2B 150e7e8fd3f5d9748a68c548985261696b375650117a9dc656c715aca9cb6923bd7621d3e5769118759b9ab58f13729013be48723ae4b3caf7f574d22d5a1805 SHA512 61f760a29e6a0f183eac0ee8443b6f44d2b5e7d256b3c4b5c3a25ef930c2541803f7cca8b48ee34d780616b00f7e8f616cc6355e3ef49d806d686e93d5a4d6f9 DIST gcc-11.4.0-musl-patches-2.tar.xz 4308 BLAKE2B a2335e155fc57816fed822a648e0eaefafcba9d04e1ad0fd7baeea5a694ab6f5e3c1678cb406f2a1bd17bab25cb01699d032713a1ccf337948dfda2093844607 SHA512 17b84f907cb1bd763873655e6f35fd3ed55a40b602b70a626f04f83b4cc89c6261db1661de78d4d969187a8c56e9f6305b742515a3836b962248a21df0df5d0c DIST gcc-11.4.0-patches-12.tar.xz 13824 BLAKE2B e4df9e0dc9512882022aaf325ebf65c540169454c91dd31f913c6f57f6eb291c79ae919671b53db1549799d4a70c09298bf45ed82ad05eb1f961443cc958369d SHA512 87fed0c3f8e28c9f702443db58350bb615110b27ebe334b5de2ea60678e2548c56cd75cffade210d69634e2ac0a9311f5100ddb45d97645aa76d5688bc421a61 DIST gcc-12-20240209.tar.xz 79824868 BLAKE2B 1ae5a646da470f06648c4766c77475ceb287c5f6647d5102f1aef6590f973233d5e7f83b5e0241488d49dba59dd605c211938379e68a393a2dccb3834103ae4b SHA512 9f9a04f4477f41bb2a5662aedef2af75b039de50c2dc99310e504e6080cb7aae06a1255337ea2e563975cb108ddc6766adbbaf4e3d5d5712801d7ba9a5209dbd diff --git a/sys-devel/gcc/gcc-11.4.1_p20240612.ebuild b/sys-devel/gcc/gcc-11.4.1_p20240612.ebuild new file mode 100644 index 000000000000..66e7925a44d5 --- /dev/null +++ b/sys-devel/gcc/gcc-11.4.1_p20240612.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +TOOLCHAIN_PATCH_DEV="sam" +PATCH_GCC_VER="11.4.0" +PATCH_VER="12" +MUSL_VER="2" +MUSL_GCC_VER="11.4.0" +PYTHON_COMPAT=( python3_{10..12} ) + +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=releases/gcc-$(ver_cut 1) +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_user +} |