commit: 9a48c24690490e9e82dfbcdeb2aa4ad95584e6dd
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 19 18:03:08 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 19 18:03:08 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a48c246
sys-devel/kgcc64: add 15.2.0
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-devel/kgcc64/Manifest | 3 +++
sys-devel/kgcc64/kgcc64-15.2.0.ebuild | 45 +++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/sys-devel/kgcc64/Manifest b/sys-devel/kgcc64/Manifest
index fc6047f7df19..6f4c5fd24325 100644
--- a/sys-devel/kgcc64/Manifest
+++ b/sys-devel/kgcc64/Manifest
@@ -16,3 +16,6 @@ DIST gcc-14.3.0.tar.xz 95212220 BLAKE2B
11c0e549b2e9b4bbbe4cd64782032d2ec783b3db
DIST gcc-15.1.0-musl-patches-1.tar.xz 3036 BLAKE2B
f7e8b794feb3c30252dd3e35b990c8a134d337e285a2778ad5575b04667cf01040bf4187252151cd57097cd6d440851843156c9631736f4f065ca8b7ce2f0678
SHA512
4d3f1660d89484f63ad6c238884415673cdfdabb8833cce2fe114193b52f11b3518b034881024527f6553de93936d15ed707d4d2b1e8221908a08ec67810464b
DIST gcc-15.1.0-patches-1.tar.xz 18628 BLAKE2B
ee5fc9d6a06374ccc8d85cd1e269514fde8fed9b1810867a199ac747c09fc166e11e54ba531d42ee2ffbab3ca80277f9ad3c873fbaa3530ff60e5f2bc25c41ba
SHA512
72992f0698f632c98abd6d8c7a7a38a109b2f064775a0c5029e44dc29cd88ae061cddd603d47eabced5af5f8571e0b73c9778080873c69dd4dc4766c60339b28
DIST gcc-15.1.0.tar.xz 98268344 BLAKE2B
a902ce99db4e93615879e435bcd0b96d5a16ea0af42598ca0e6d12913b2ce3651a98574c3264b2717b848e6b5a823b403ccca0adde463938d5b41aa3f1da0d34
SHA512
ddd35ca6c653dffa88f7c7ef9ee4cd806e156e0f3b30f4d63e75a8363361285cd566ee73127734cde6a934611de815bee3e32e24bfd2e0ab9f7ff35c929821c1
+DIST gcc-15.2.0-musl-patches-1.tar.xz 7168 BLAKE2B
6b7cfb123c3a691693240db815e6852a1e6c3820baa499368c463e0a0c1490c701053cfea10bf1d33f89dd2ba7bbddf63c4e6e0976590e3aaf1fee78b9282079
SHA512
ab80ffd69b9ead1fe06a9433faaa97ae53947d214999e77ea363fa6435de080d031a1aa6869e1dc088e800317952f2dc249a9e872113db56fb76f0a432240871
+DIST gcc-15.2.0-patches-1.tar.xz 17412 BLAKE2B
b761d5c75e084724a80287adb0659286fa208d40b731fc562e9c555d178f2531ecd1e3ca85b674d83f7aabe774d12b382c0b12d0cd024d45e8b915d185f7e229
SHA512
15442890b5b077e3bb392b9cab5dc7a2379c6da7820dc54d25ae337cc5238f662d834ea531882a273f3aba36672f14600baca40a2f4580fceb0e396f56b15594
+DIST gcc-15.2.0.tar.xz 101056276 BLAKE2B
e270320978ca690e6e8f5ef06414dc13caf561f16403a3783c76fbf3dcee57e755a2d5bba922bf7fcae0bb6120443755d819b003791ae823d54589dd799804de
SHA512
89047a2e07bd9da265b507b516ed3635adb17491c7f4f67cf090f0bd5b3fc7f2ee6e4cc4008beef7ca884b6b71dffe2bb652b21f01a702e17b468cca2d10b2de
diff --git a/sys-devel/kgcc64/kgcc64-15.2.0.ebuild
b/sys-devel/kgcc64/kgcc64-15.2.0.ebuild
new file mode 100644
index 000000000000..092b73783994
--- /dev/null
+++ b/sys-devel/kgcc64/kgcc64-15.2.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2025 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="15.2.0"
+MUSL_VER="1"
+MUSL_GCC_VER="15.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
+}