Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/kgcc64/
Date: Wed, 31 Aug 2022 04:58:37
Message-Id: 1661921907.dd3791ae1a0663db7ae65cddb405afea7a152d9a.sam@gentoo
1 commit: dd3791ae1a0663db7ae65cddb405afea7a152d9a
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 31 04:58:10 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 31 04:58:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd3791ae
7
8 sys-devel/kgcc64: add 12.2.0
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-devel/kgcc64/Manifest | 3 +++
13 sys-devel/kgcc64/kgcc64-12.2.0.ebuild | 45 +++++++++++++++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/sys-devel/kgcc64/Manifest b/sys-devel/kgcc64/Manifest
17 index a54bd130b71f..d3fbce01898a 100644
18 --- a/sys-devel/kgcc64/Manifest
19 +++ b/sys-devel/kgcc64/Manifest
20 @@ -5,3 +5,6 @@ DIST gcc-10.4.0-patches-5.tar.xz 17056 BLAKE2B f336d69a8ad105b8c4a84e8248a5b8a88
21 DIST gcc-10.4.0.tar.xz 75018092 BLAKE2B ec1169025d3896b70ab80a4b8ce5040763a95529fc7e120c6bc3a3eb1db5cf938ebde347c1e595a8ff7d4081e79ded6252702d7a1a09648449b7a0783188e434 SHA512 440c08ca746da450d9a1b35e8fd2305cb27e7e6987cd9d0f7d375f3b1fc9e4b0bd7acb3cd7bf795e72fcbead59cdef5b6c152862f5d35cd9fbfe6902101ce648
22 DIST gcc-11.3.0-patches-4.tar.bz2 14030 BLAKE2B cdd555f329c7c0b993cd3527489681bfcc2162db0997611b66337e6b287356761c7deccd3b9f9bb8980a32df0574017a52c5e445e24db746757d87ffccb1ea89 SHA512 cb227599d01734ae9f9fc7ae2c8dd4cae1da80d6ab398ec6f112535239ac76ce8e91fbac88e19c2f75cb08ab75f966c1d1ad4af80ede67e953fbbafc7baefa58
23 DIST gcc-11.3.0.tar.xz 81141364 BLAKE2B 7e562d25446ca4ab9fe8cdb714866f66aba3744d78bf84f31bfb097c1a981e4c7f990cb1e6bcfec5ae6671836a4984e2b70eb8fed81dcef5e244f88da8623469 SHA512 f0be5ad705c73b84477128a69c047f57dd47002f375eb60e1e842e08cf2009a509e92152bca345823926d550b7395ae6d4de7db51d1ee371c2dc37313881fca7
24 +DIST gcc-12.2.0-musl-patches-1.tar.xz 3844 BLAKE2B 004432806696f7d0a32366270ac45695e858abee73a255e44dc6e0a225339e4cad40aab0d51dfe9a55d5aa4b4001f5726064bb2eea3212a0874b2d27e229abd7 SHA512 c354edcd641a9dfaf902a0ff4c44c75065d0cf1c36bbf6c3c35c2e23bff22b8f70bcf4458a5a0ef86371e9f2fafca8a54ca822e35820ff442c9458a2819c3606
25 +DIST gcc-12.2.0-patches-1.tar.xz 12864 BLAKE2B a5ae0a85dfc1b6f0bd968f0d5262ebed14ec9cdb3249e3a4c571578c54eda0e53708ee7fe8e03e506366c7f3cf7926eced9b390d9dee948c1249298c0fabd9fb SHA512 f3d793b89a2a0385d596162fb0c653d4acdf21ae418cb792c1786a01fde0391bd0719715dbf07d53636f127168f5cd99108a1dc11cf6cea889b7d82385bcc258
26 +DIST gcc-12.2.0.tar.xz 84645292 BLAKE2B 715574af9ad678f9dc8cfd19c866bf910c7edfd479e7e9681337feaa9b54e5d304ddb85483816b8d89754d502405823ae2eff0d1e444538763f40be8e428d8da SHA512 e9e857bd81bf7a370307d6848c81b2f5403db8c7b5207f54bce3f3faac3bde63445684092c2bc1a2427cddb6f7746496d9fbbef05fbbd77f2810b2998f1f9173
27
28 diff --git a/sys-devel/kgcc64/kgcc64-12.2.0.ebuild b/sys-devel/kgcc64/kgcc64-12.2.0.ebuild
29 new file mode 100644
30 index 000000000000..69d06d239f49
31 --- /dev/null
32 +++ b/sys-devel/kgcc64/kgcc64-12.2.0.ebuild
33 @@ -0,0 +1,45 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +case ${CHOST} in
40 + hppa*) CTARGET=hppa64-${CHOST#*-};;
41 + mips*) CTARGET=${CHOST/mips/mips64};;
42 + powerpc*) CTARGET=${CHOST/powerpc/powerpc64};;
43 + s390*) CTARGET=${CHOST/s390/s390x};;
44 + sparc*) CTARGET=${CHOST/sparc/sparc64};;
45 + i?86*) CTARGET=x86_64-${CHOST#*-};;
46 +esac
47 +export CTARGET
48 +TOOLCHAIN_ALLOWED_LANGS="c"
49 +TOOLCHAIN_PATCH_DEV="sam"
50 +PATCH_VER="1"
51 +PATCH_GCC_VER="12.2.0"
52 +MUSL_VER="1"
53 +MUSL_GCC_VER="12.2.0"
54 +GCC_TARGET_NO_MULTILIB=true
55 +inherit toolchain
56 +
57 +DESCRIPTION="64bit kernel compiler"
58 +
59 +# Works on hppa and mips; all other archs, refer to bug #228115
60 +KEYWORDS="~hppa"
61 +
62 +# unlike every other target, hppa has not unified the 32/64 bit
63 +# ports in binutils yet
64 +BDEPEND="hppa? ( sys-devel/binutils-hppa64 )"
65 +
66 +pkg_postinst() {
67 + toolchain_pkg_postinst
68 +
69 + cd "${ROOT}"/usr/bin
70 + local x
71 + for x in gcc cpp ; do
72 + cat <<-EOF >${CTARGET%%-*}-linux-${x}
73 + #!/bin/sh
74 + exec ${CTARGET}-${x} "\$@"
75 + EOF
76 + chmod a+rx ${CTARGET%%-*}-linux-${x}
77 + done
78 +}