1 |
commit: edb166c13cd137717b9fbc06dc35ff7c79fed785 |
2 |
Author: WANG Xuerui <xen0n <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 10 07:01:54 2022 +0000 |
4 |
Commit: WANG Xuerui <xen0n <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 24 05:12:10 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edb166c1 |
7 |
|
8 |
sys-kernel/linux-headers: add 5.19_rc1 |
9 |
|
10 |
While we can certainly wait for the official 5.19 release, adding this |
11 |
facilitates early loong testing across a wide variety of packages, |
12 |
because 5.19 is the earliest Linux version with upstreamed loong |
13 |
support. IUSE=experimental-loong is dropped while at it. |
14 |
|
15 |
This package will be replaced with the proper 5.19 release once that one |
16 |
is officially out. |
17 |
|
18 |
This is ~loong-only, because there isn't significant changes for other |
19 |
arches. |
20 |
|
21 |
Reviewed-by: Sam James <sam <AT> gentoo.org> |
22 |
Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org> |
23 |
|
24 |
sys-kernel/linux-headers/Manifest | 1 + |
25 |
.../linux-headers/linux-headers-5.19_rc1.ebuild | 58 ++++++++++++++++++++++ |
26 |
2 files changed, 59 insertions(+) |
27 |
|
28 |
diff --git a/sys-kernel/linux-headers/Manifest b/sys-kernel/linux-headers/Manifest |
29 |
index 09d45895a920..83f132bebced 100644 |
30 |
--- a/sys-kernel/linux-headers/Manifest |
31 |
+++ b/sys-kernel/linux-headers/Manifest |
32 |
@@ -23,3 +23,4 @@ DIST linux-5.18.tar.xz 129790264 BLAKE2B e2745a69eb70169e90505a9318a3993046eab30 |
33 |
DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f |
34 |
DIST linux-loongarch-next-on-5.17-20220423.tar.xz 177296 BLAKE2B 947fd8c2192fe454beb346ea700a09a711f629d87cc5ff5b5d882fa1d57bb5e918fea821f5eddd44152812502479f853527b8317176326f8926bd1a532666a86 SHA512 b18df78802c2718181da95fdd5f83761bec7fced16b0aec05d00dcbd9b5c25fc0f84fbdd7e3b3fa5a3f78aea66e268dde3d9272a3f921b595b16270623ae0b7e |
35 |
DIST linux-loongarch-next-on-5.18-20220523.tar.xz 160468 BLAKE2B ccb6df7fbee86fba7ae725362efeb03cdf4187cf877a7f21e470639c14509214ed31c06434207950b219d34ed41a9fd2be0b711faeb5c6c02198836f06ef7dce SHA512 d87b667947a1d41fbea6db80dc2896c2c7e297bac471b99820b10a4d1e8a680f3566a89bdb4e70c0bdfba335ce158f3e82f930eb2f6b64fd6ba736028bf709f2 |
36 |
+DIST patch-5.19-rc1.patch 90995640 BLAKE2B 0042e0a588fb4fa43259373e7c251e0f17f7640994d88bd1b27f73388a9a7a3229e03edc194f0cb719b9505fff651c7c9a4119c4f616040b35af7e500afd8d36 SHA512 bb2614786eecee03e38742a32dfbffce2b08881d35f51222dec88f9cec584eb1b60f3751e35f1a354124a162d443f0a4e345f6ee0193cebc29bc7ae5abb89003 |
37 |
|
38 |
diff --git a/sys-kernel/linux-headers/linux-headers-5.19_rc1.ebuild b/sys-kernel/linux-headers/linux-headers-5.19_rc1.ebuild |
39 |
new file mode 100644 |
40 |
index 000000000000..273a2dcf6359 |
41 |
--- /dev/null |
42 |
+++ b/sys-kernel/linux-headers/linux-headers-5.19_rc1.ebuild |
43 |
@@ -0,0 +1,58 @@ |
44 |
+# Copyright 1999-2022 Gentoo Authors |
45 |
+# Distributed under the terms of the GNU General Public License v2 |
46 |
+ |
47 |
+EAPI=7 |
48 |
+ |
49 |
+ETYPE="headers" |
50 |
+H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 cris frv hexagon hppa ia64 loong m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc x86 xtensa" |
51 |
+K_BASE_VER="5.18" |
52 |
+inherit kernel-2 |
53 |
+detect_version |
54 |
+ |
55 |
+#PATCH_PV=${PV} # to ease testing new versions against not existing patches |
56 |
+PATCH_PV="${K_BASE_VER}" |
57 |
+PATCH_VER="1" |
58 |
+PATCH_DEV="sam" |
59 |
+SRC_URI="${KERNEL_URI} |
60 |
+ ${PATCH_VER:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/sys-kernel/linux-headers/gentoo-headers-${PATCH_PV}-${PATCH_VER}.tar.xz}" |
61 |
+S="${WORKDIR}/linux-${K_BASE_VER}" |
62 |
+ |
63 |
+# this is an rc version, for testing on loong only |
64 |
+#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
65 |
+KEYWORDS="~loong" |
66 |
+ |
67 |
+BDEPEND="app-arch/xz-utils |
68 |
+ dev-lang/perl" |
69 |
+ |
70 |
+# bug #816762 |
71 |
+RESTRICT="test" |
72 |
+ |
73 |
+[[ -n ${PATCH_VER} ]] && PATCHES=( "${WORKDIR}"/${PATCH_PV} ) |
74 |
+ |
75 |
+src_unpack() { |
76 |
+ # avoid kernel-2_src_unpack |
77 |
+ default |
78 |
+} |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ # TODO: May need forward porting to newer versions |
82 |
+ use elibc_musl && PATCHES+=( |
83 |
+ "${FILESDIR}"/${PN}-5.10-Use-stddefs.h-instead-of-compiler.h.patch |
84 |
+ "${FILESDIR}"/${PN}-5.15-remove-inclusion-sysinfo.h.patch |
85 |
+ ) |
86 |
+ |
87 |
+ # avoid kernel-2_src_prepare |
88 |
+ default |
89 |
+} |
90 |
+ |
91 |
+src_test() { |
92 |
+ emake headers_check ${xmakeopts} |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ kernel-2_src_install |
97 |
+ |
98 |
+ find "${ED}" \( -name '.install' -o -name '*.cmd' \) -delete || die |
99 |
+ # delete empty directories |
100 |
+ find "${ED}" -empty -type d -delete || die |
101 |
+} |