commit:     ccdedd44549a72766d87129d7c60a23e2fe5bb8b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun May 19 18:43:36 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 19 18:43:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccdedd44

sys-devel/kgcc64: add 14.1.1_p20240511

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/kgcc64/Manifest                       |  3 ++
 sys-devel/kgcc64/kgcc64-14.1.1_p20240511.ebuild | 46 +++++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/sys-devel/kgcc64/Manifest b/sys-devel/kgcc64/Manifest
index d032a9d4a8ea..c089c4803d9a 100644
--- a/sys-devel/kgcc64/Manifest
+++ b/sys-devel/kgcc64/Manifest
@@ -19,4 +19,7 @@ DIST gcc-13.2.0-musl-patches-2.tar.xz 5292 BLAKE2B 
c057d6574d03c05854edaa9f3fd40
 DIST gcc-13.2.0-patches-12.tar.xz 47404 BLAKE2B 
ed018bcd7429d1c7aace746cbfc4e59dae409fc0a35231320c1b44c96fff0d912eba5c72109c2deb883f5368159df02148b2d4373396b34da882164c61fe4387
 SHA512 
b7872a03870bce7b633e4af4329b24fe8f3d50d6d9173f63549f606ce062787748af7f79e7ec4afeb768968d6e8462a849bd1b94316ea6bb284551f99e811617
 DIST gcc-13.2.0-patches-13.tar.xz 46404 BLAKE2B 
d11e6ebfed8d1fcba60638240927d57722015ea7cfb0790836c338c023fc01f9f5b3ebf0fe1e0c615b36e0131d38b49e3aee4026f8ed81473572255ccaa74e4b
 SHA512 
4f8bbf9101548d64e78e32f38869ed84e462ce8329d64fbb934132d15bc81f8a9b6f2a075c0263fdc3b32e0dfac6bc032a4176eb06df88cb282fe974bfe102f4
 DIST gcc-13.2.0-patches-15.tar.xz 47052 BLAKE2B 
f145341813d6baf9cbcc3e8421c7f427148503d2aeddd6a2eaac1ad3d470a818292392861542a7915d8b0f2f9b3255603f394b2e6833141658fc035bcd2b5366
 SHA512 
c89a3fccd944f03d25e076a967c3b220803ee9a6fbedec1daf2c20f629dd6162ce6be4f259522bd193169f0e8307daa9895b5d8581cf975ee086e5abfd675e34
+DIST gcc-14-20240511.tar.xz 88010940 BLAKE2B 
98df36154ed111af8a0eed465eeda72145eb7df06dc6dbccb0918ab3fd583d1af46b87322f0b6113b41e89af64b3023ec76037c942aa7e08e5ec5a8e0f9cd731
 SHA512 
c0e9cdd687859c5531d9a17b148873b5a5c7e4e3495f5f96b0c4baefc7989e40df2118b16c0ec26a9ec968584be7a39480aad995e0eb40a046608df905834d82
+DIST gcc-14.1.0-musl-patches-1.tar.xz 3600 BLAKE2B 
4cd920b7ca1f122cae806707564d8e45bfd48e78c88788a12a301f6068b5a5f335d8885e67479ac536c66aeaa81f2ecb7240ae56e9fc821a7246ab66b453711f
 SHA512 
61c48d90a55dfc2129d96aee69d939d6a89f6407f69f7bd12c1a619f28989f471fd219d731958f8e62b0fd650c32300f0ad8dc06d5df23d9fc8c1a77fe210c25
+DIST gcc-14.1.0-patches-1.tar.xz 11584 BLAKE2B 
d483f4e3324acdc26b9837028d5e20ad0cdcf3ef4bcc78a6902d63ceebc7e5ff70c8163f6a8c8e36405df47c59dd2df506147c53ce51a8ec73494e65b5902647
 SHA512 
3d7aea113b594d1896c93e9e6be85f467488fa75de2800ed76eab2f87cef26829b235d1f361b187e38cf13b0fb9518cd4431c3106ec1e49d0f744e7eb703eaa0
 DIST gcc-validate-failures-a447cd6dee206facb66720bdacf0c765a8b09f33.py 27537 
BLAKE2B 
96c7474de0bc50ab890a91551412398c979396c43aa237a4b6d8baa98ce7fda2cc9f5a755a03fd9d055d885ee2fb40ba29644a0649c24398361ce75a20fae634
 SHA512 
409434953351cf1f2287f1e4a4fbde5b28a27add35ddd284080acec71b33cb4ec5e1c07f41a79fac060bd6f1eedd198812495141923e410ded907429fe515f83

diff --git a/sys-devel/kgcc64/kgcc64-14.1.1_p20240511.ebuild 
b/sys-devel/kgcc64/kgcc64-14.1.1_p20240511.ebuild
new file mode 100644
index 000000000000..cc3127938240
--- /dev/null
+++ b/sys-devel/kgcc64/kgcc64-14.1.1_p20240511.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+case ${CHOST} in
+       hppa*)    CTARGET=hppa64-${CHOST#*-};;
+       mips*)    CTARGET=${CHOST/mips/mips64};;
+       powerpc*) CTARGET=${CHOST/powerpc/powerpc64};;
+       s390*)    CTARGET=${CHOST/s390/s390x};;
+       sparc*)   CTARGET=${CHOST/sparc/sparc64};;
+       i?86*)    CTARGET=x86_64-${CHOST#*-};;
+esac
+export CTARGET
+TOOLCHAIN_ALLOWED_LANGS="c"
+TOOLCHAIN_PATCH_DEV="sam"
+PATCH_VER="1"
+PATCH_GCC_VER="14.1.0"
+MUSL_VER="1"
+MUSL_GCC_VER="14.1.0"
+GCC_TARGET_NO_MULTILIB=true
+PYTHON_COMPAT=( python3_{10..12} )
+inherit toolchain
+
+DESCRIPTION="64bit kernel compiler"
+
+# Works on hppa and mips; all other archs, refer to bug #228115
+KEYWORDS="~hppa"
+
+# unlike every other target, hppa has not unified the 32/64 bit
+# ports in binutils yet
+BDEPEND="hppa? ( sys-devel/binutils-hppa64 )"
+
+pkg_postinst() {
+       toolchain_pkg_postinst
+
+       cd "${ROOT}"/usr/bin
+       local x
+       for x in gcc cpp ; do
+               cat <<-EOF >${CTARGET%%-*}-linux-${x}
+               #!/bin/sh
+               exec ${CTARGET}-${x} "\$@"
+               EOF
+               chmod a+rx ${CTARGET%%-*}-linux-${x}
+       done
+}

Reply via email to