1 |
commit: 87dd049078d78e654436f3cb084091ef69376ee8 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 31 02:46:44 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 31 02:50:00 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87dd0490 |
7 |
|
8 |
sys-kernel/linux-headers: fix 5.15 patch |
9 |
|
10 |
We don't need to drop the const bit, avoids us patching consumers. |
11 |
|
12 |
Thanks-to: Jory A. Pratt <anarchy <AT> gentoo.org> |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
...linux-headers-5.15-remove-inclusion-sysinfo.h.patch | 18 +++++++++--------- |
16 |
...ers-5.15-r2.ebuild => linux-headers-5.15-r3.ebuild} | 0 |
17 |
2 files changed, 9 insertions(+), 9 deletions(-) |
18 |
|
19 |
diff --git a/sys-kernel/linux-headers/files/linux-headers-5.15-remove-inclusion-sysinfo.h.patch b/sys-kernel/linux-headers/files/linux-headers-5.15-remove-inclusion-sysinfo.h.patch |
20 |
index 064066f19ef6..11760b93227c 100644 |
21 |
--- a/sys-kernel/linux-headers/files/linux-headers-5.15-remove-inclusion-sysinfo.h.patch |
22 |
+++ b/sys-kernel/linux-headers/files/linux-headers-5.15-remove-inclusion-sysinfo.h.patch |
23 |
@@ -1,6 +1,8 @@ |
24 |
-Earlier version: https://git.alpinelinux.org/aports/tree/main/linux-headers/0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch |
25 |
+https://git.alpinelinux.org/aports/tree/main/linux-headers/0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch |
26 |
https://bugs.gentoo.org/828726 |
27 |
|
28 |
+[Adapted to drop the const.h change as things may rely on it like btrfs.] |
29 |
+ |
30 |
From: rofl0r <retnyg@×××.net> |
31 |
Date: Mon, 20 Jan 2014 21:31:34 +0100 |
32 |
Subject: [PATCH 3/3] remove inclusion of sysinfo.h in kernel.h |
33 |
@@ -8,17 +10,15 @@ Subject: [PATCH 3/3] remove inclusion of sysinfo.h in kernel.h |
34 |
the declaration of struct sysinfo clashes with userspace. |
35 |
it's not quite clear why that header was included from kernel.h, |
36 |
as none of its functionality is needed. |
37 |
+ |
38 |
--- a/include/uapi/linux/kernel.h |
39 |
+++ b/include/uapi/linux/kernel.h |
40 |
-@@ -2,7 +2,9 @@ |
41 |
- #ifndef _UAPI_LINUX_KERNEL_H |
42 |
- #define _UAPI_LINUX_KERNEL_H |
43 |
+@@ -4,7 +4,7 @@ |
44 |
|
45 |
-+#ifdef __GLIBC__ |
46 |
+ #ifdef __GLIBC__ |
47 |
#include <linux/sysinfo.h> |
48 |
- #include <linux/const.h> |
49 |
-+#endif |
50 |
+-#include <linux/const.h> |
51 |
+ #endif |
52 |
++#include <linux/const.h> |
53 |
|
54 |
#endif /* _UAPI_LINUX_KERNEL_H */ |
55 |
- |
56 |
- |
57 |
|
58 |
diff --git a/sys-kernel/linux-headers/linux-headers-5.15-r2.ebuild b/sys-kernel/linux-headers/linux-headers-5.15-r3.ebuild |
59 |
similarity index 100% |
60 |
rename from sys-kernel/linux-headers/linux-headers-5.15-r2.ebuild |
61 |
rename to sys-kernel/linux-headers/linux-headers-5.15-r3.ebuild |