commit:     1e09368e4904e7ddf78cd82aaec000df13f7df08
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 18 01:19:45 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec 18 01:19:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e09368e

sys-devel/kgcc64: add 13.2.1_p20231216

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

 sys-devel/kgcc64/Manifest                       |  2 ++
 sys-devel/kgcc64/kgcc64-13.2.1_p20231216.ebuild | 45 +++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/sys-devel/kgcc64/Manifest b/sys-devel/kgcc64/Manifest
index ea24b6ab3758..b94a910ecbe2 100644
--- a/sys-devel/kgcc64/Manifest
+++ b/sys-devel/kgcc64/Manifest
@@ -14,6 +14,8 @@ DIST gcc-12.3.0-musl-patches-1.tar.xz 3572 BLAKE2B 
c7bf65f7c9ea8023ddaac821ee2b7
 DIST gcc-12.3.0-patches-2.tar.xz 14236 BLAKE2B 
06c43662c9abb0fa3cf90d5e2273c69aecb9158e6cf6f23c04754ed5d686be2616e81e2502eb16f4298ddd50518ca7677e13249da9e9b091162d3931ff65e4fe
 SHA512 
b0d4b85dbf1a54aaaa1997203b872e3106906b4ad49cde57e1428bc22b2f8e2d73b8cb10ae0d0b792aebaf664594da4d1dea04c44ddc34e59047410766db04d1
 DIST gcc-13-20230826.tar.xz 84285788 BLAKE2B 
c25be594e322dd7145245c42ae21b98aa9e3e6ae69f1fa313830e40bf2e8fcb8435762f1c9d3f1ca1dbf31653bdc76a658bec708b7850fe40a7c55504ac30618
 SHA512 
3d47632e90651bd50a881c727c1ef2aa3322b4fc3e082919ae430270901abf8a05a34fe93f8b678c10dc9a0758f93dc3b33ed5947c8743dab453d2b50c063722
 DIST gcc-13-20231014.tar.xz 84317080 BLAKE2B 
18c2326f203951d16904e4f2bf7fa0cd55da0460b19a9c9ce45de94b41fa71f8c1b8eb9d08700de427b3e02c2e61d3cbcc85cb6f27236717dca8359bfaf4c534
 SHA512 
406673a62deba759fc0532a801b3f57cabf894ea328587b23e62a707ba5767b0e3ae9b3f86bf3c6fcf13e8a3c30bc470e6598b625c8231efb629034211c162c2
+DIST gcc-13-20231216.tar.xz 84341616 BLAKE2B 
416ee94995b0812ac155ccfb9a5cad39529e0b437341eae65fdc75ba64bcdb453742e213f676a80d91615f1840e2e52488e4a8311588a2ed16fde7c176c5dd06
 SHA512 
66a72380db151355ede533541b2e77406925f2a0f941772018bf93f8a4c2b8eaeacc3f600985897f7d9868234bc250a7af82d27634ba170ab6dfb2a62c68c0ed
 DIST gcc-13.2.0-musl-patches-2.tar.xz 5292 BLAKE2B 
c057d6574d03c05854edaa9f3fd40e9149662b04f3ac7a7db3eb078d73a7b535726d1bf52e5b12736dedb2f9898ad731f2e48a6421fcfbf7b90f929dee072fcb
 SHA512 
a691da0c87c443a5e9d23731f4005f27871c5b12bc9102873ffa24d374aa7b9fbd187c4f5635d23fa9ffb17e351e76173c2d3fdf40646e355c4cb314b538de69
 DIST gcc-13.2.0-patches-10.tar.xz 45860 BLAKE2B 
3c4f8179fc27c31c117bf9260cebbab0805e0977cb41084f2df5c6664121ae67f83deb882572b0bce8d5f20c0ec927eeac43e60d69ce8d4d5a263c1dddedecaf
 SHA512 
4088cc80278826043bc6a9819dfcfa09a251e256eca9a2654f1a83b9b54107ca08fbea0e9ab61593cb0b43fc42a3d87acbe095dc8f806c7010a3ac33148d5c9b
+DIST gcc-13.2.0-patches-11.tar.xz 46340 BLAKE2B 
c9f12ccbe7bb7ba3a2afec16695e69b062429779d544f5614e1ef0617751e54d77eb9bb6e19dc8c6132c57e630f0e77e2cc20cf2c77e0e79d03a6e57b9ba53c6
 SHA512 
a09801ecefccc66830607986a622bbcc5f217ba08da4ac9f68436e422b5a19042c60c7d5fcb75d4fe9ad9008ab06278382c9798b319ed9630c2e97fa09c3a344
 DIST gcc-13.2.0-patches-7.tar.xz 37064 BLAKE2B 
4a8700a8d44bfaa84926f8bfd0da4c5b0c0377f47fc0679456e909f7c9029b9cf1b72c0ba0bc505d9035d5c38e27f7e5b029727eaf2bc7aca417a6be966b2f43
 SHA512 
f440c97e6782ecb8581d41608e31a648ac426e2d870bc1d171da7794cdeff2fd0546cae0c7214e72fd3a00ead8a5c66f3f633b670b74553a2f3a40378b51f20c

diff --git a/sys-devel/kgcc64/kgcc64-13.2.1_p20231216.ebuild 
b/sys-devel/kgcc64/kgcc64-13.2.1_p20231216.ebuild
new file mode 100644
index 000000000000..07416e227816
--- /dev/null
+++ b/sys-devel/kgcc64/kgcc64-13.2.1_p20231216.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2023 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="11"
+PATCH_GCC_VER="13.2.0"
+MUSL_VER="2"
+MUSL_GCC_VER="13.2.0"
+GCC_TARGET_NO_MULTILIB=true
+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