1 |
commit: 33ed77d033847d9777670770d5d6384310a47c50 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 6 20:02:22 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 6 20:02:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33ed77d0 |
7 |
|
8 |
sys-devel/kgcc64: add 9.4.0 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-devel/kgcc64/Manifest | 2 ++ |
13 |
sys-devel/kgcc64/kgcc64-9.4.0.ebuild | 42 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 44 insertions(+) |
15 |
|
16 |
diff --git a/sys-devel/kgcc64/Manifest b/sys-devel/kgcc64/Manifest |
17 |
index 2a601d0d9fa4..af4193df6866 100644 |
18 |
--- a/sys-devel/kgcc64/Manifest |
19 |
+++ b/sys-devel/kgcc64/Manifest |
20 |
@@ -4,3 +4,5 @@ DIST gcc-11.1.0-patches-1.tar.bz2 12130 BLAKE2B 4d763b83dba7875bbbe8bbb9b6c39279 |
21 |
DIST gcc-11.1.0.tar.xz 78877216 BLAKE2B fe617e776b0270d11adea21b5c37d889de90865c19ab82d1c37bbd5c5b9c583a98c174606c4f893ca4950a4233e2a58aae93ad6aa7ad33d4e78a31c72371c1ed SHA512 fd6bba0f67ff48069d03073d1a9b5e896383b1cfc9dde008e868e60a9ec5014a837d56af0ecbf467b3fb9b37ec74a676e819a18b44393a0a3c4280175b5d7ad8 |
22 |
DIST gcc-9.3.0-patches-3.tar.bz2 14193 BLAKE2B 4863fec1af41a8cdb2c24479b28812df36c1f71ab71d267ff0efc467cfb8ce99ed77714ceaedfb08b0d1eb0eb9316758cc7cbc5a8ad0bb582050690935e64b46 SHA512 8b90a5826df64e6f74e4f6c0e5acead695b38f671e26485b110d5b341daaad4ac21aabb04baae9ad457408eed274888b7f785bbc782611acfc7261e6a315d110 |
23 |
DIST gcc-9.3.0.tar.xz 70533868 BLAKE2B 21efb1432aefad5ed9b9b395e88ef2adfda3a8ea6e3e808cd151da6e66df9fed1bafdc8b8ff055d4b2272ac786d8b7ddc4293bb6b51c55c40a261a0eda0e7cb4 SHA512 4b9e3639eef6e623747a22c37a904b4750c93b6da77cf3958d5047e9b5ebddb7eebe091cc16ca0a227c0ecbd2bf3b984b221130f269a97ee4cc18f9cf6c444de |
24 |
+DIST gcc-9.4.0-patches-1.tar.bz2 14012 BLAKE2B d5fbfd73d9c3a5b66be5b124d981fe5a7468363c83784989a50731f87931435f4b6302e4c20a64b20680581ed40005eff7bdd5855526a093f73a04c3c1ddab31 SHA512 b84884c7d2197cb14229d3321b98cd66c783cf9ebf7e5d1b1186e6cf32ee9e47d004ebad26118f9c848f9bc0a3783ceb23d9b65101d98c3bfa99874e66ee7cbc |
25 |
+DIST gcc-9.4.0.tar.xz 72411232 BLAKE2B 4bb000d33d6bd2d6cc91c040713f27f79dcf726ef8ab1542c711e0c25651507628510b1373bc73aef71ffb660afddb2eb8d8c8540f5f1498ee243cfff6c0be67 SHA512 dfd3500bf21784b8351a522d53463cf362ede66b0bc302edf350bb44e94418497a8b4b797b6af8ca9b2eeb746b3b115d9c3698381b989546e9151b4496415624 |
26 |
|
27 |
diff --git a/sys-devel/kgcc64/kgcc64-9.4.0.ebuild b/sys-devel/kgcc64/kgcc64-9.4.0.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..e6b50adde92e |
30 |
--- /dev/null |
31 |
+++ b/sys-devel/kgcc64/kgcc64-9.4.0.ebuild |
32 |
@@ -0,0 +1,42 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+case ${CHOST} in |
39 |
+ hppa*) CTARGET=hppa64-${CHOST#*-};; |
40 |
+ mips*) CTARGET=${CHOST/mips/mips64};; |
41 |
+ powerpc*) CTARGET=${CHOST/powerpc/powerpc64};; |
42 |
+ s390*) CTARGET=${CHOST/s390/s390x};; |
43 |
+ sparc*) CTARGET=${CHOST/sparc/sparc64};; |
44 |
+ i?86*) CTARGET=x86_64-${CHOST#*-};; |
45 |
+esac |
46 |
+export CTARGET |
47 |
+TOOLCHAIN_ALLOWED_LANGS="c" |
48 |
+GCC_TARGET_NO_MULTILIB=true |
49 |
+ |
50 |
+PATCH_VER="1" |
51 |
+inherit toolchain |
52 |
+ |
53 |
+DESCRIPTION="64bit kernel compiler" |
54 |
+ |
55 |
+# Works on hppa and mips; all other archs, refer to bug #228115 |
56 |
+KEYWORDS="~hppa" |
57 |
+ |
58 |
+# unlike every other target, hppa has not unified the 32/64 bit |
59 |
+# ports in binutils yet |
60 |
+DEPEND="hppa? ( sys-devel/binutils-hppa64 )" |
61 |
+ |
62 |
+pkg_postinst() { |
63 |
+ toolchain_pkg_postinst |
64 |
+ |
65 |
+ cd "${ROOT}"/usr/bin |
66 |
+ local x |
67 |
+ for x in gcc cpp ; do |
68 |
+ cat <<-EOF >${CTARGET%%-*}-linux-${x} |
69 |
+ #!/bin/sh |
70 |
+ exec ${CTARGET}-${x} "\$@" |
71 |
+ EOF |
72 |
+ chmod a+rx ${CTARGET%%-*}-linux-${x} |
73 |
+ done |
74 |
+} |