1 |
commit: 1ab5f342d49c1ff50699e46e6a38da0418db84bc |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 30 18:27:33 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 30 18:27:33 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/toolchain/linux-headers-patches.git/commit/?id=1ab5f342 |
7 |
|
8 |
5.17: new patchset, clone of 5.16 |
9 |
|
10 |
* 5.17/00_all_0001-unifdef-drop-unused-errno.h-include.patch |
11 |
* 5.17/00_all_0002-x86-do-not-build-relocs-tool-when-installing-headers.patch |
12 |
* 5.17/00_all_0003-uapi-fix-System-V-buf-header-includes.patch |
13 |
|
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
..._0001-unifdef-drop-unused-errno.h-include.patch | 32 +++++++++++++++++++++ |
17 |
...build-relocs-tool-when-installing-headers.patch | 33 ++++++++++++++++++++++ |
18 |
...003-uapi-fix-System-V-buf-header-includes.patch | 28 ++++++++++++++++++ |
19 |
3 files changed, 93 insertions(+) |
20 |
|
21 |
diff --git a/5.17/00_all_0001-unifdef-drop-unused-errno.h-include.patch b/5.17/00_all_0001-unifdef-drop-unused-errno.h-include.patch |
22 |
new file mode 100644 |
23 |
index 0000000..617eb9a |
24 |
--- /dev/null |
25 |
+++ b/5.17/00_all_0001-unifdef-drop-unused-errno.h-include.patch |
26 |
@@ -0,0 +1,32 @@ |
27 |
+From c4d1a109c5c0b1bd27d2b5448a1306a2f6005339 Mon Sep 17 00:00:00 2001 |
28 |
+From: Mike Frysinger <vapier@g.o> |
29 |
+Date: Tue, 6 Dec 2011 17:22:42 -0500 |
30 |
+Subject: [PATCH] unifdef: drop unused errno.h include |
31 |
+ |
32 |
+This is the only header on my system that ends up requiring kernel |
33 |
+headers, so if the kernel headers aren't available, we end up being |
34 |
+unable to install kernel headers :). |
35 |
+ |
36 |
+Since this file doesn't actually use anything from errno.h, drop |
37 |
+the include so it at least makes us a bit more robust on glibc. |
38 |
+ |
39 |
+Signed-off-by: Mike Frysinger <vapier@g.o> |
40 |
+--- |
41 |
+ scripts/unifdef.c | 1 - |
42 |
+ 1 file changed, 1 deletion(-) |
43 |
+ |
44 |
+diff --git a/scripts/unifdef.c b/scripts/unifdef.c |
45 |
+index 7493c0ee51cc..c5dfae538b08 100644 |
46 |
+--- a/scripts/unifdef.c |
47 |
++++ b/scripts/unifdef.c |
48 |
+@@ -48,7 +48,6 @@ |
49 |
+ |
50 |
+ #include <ctype.h> |
51 |
+ #include <err.h> |
52 |
+-#include <errno.h> |
53 |
+ #include <stdarg.h> |
54 |
+ #include <stdbool.h> |
55 |
+ #include <stdio.h> |
56 |
+-- |
57 |
+2.16.1 |
58 |
+ |
59 |
|
60 |
diff --git a/5.17/00_all_0002-x86-do-not-build-relocs-tool-when-installing-headers.patch b/5.17/00_all_0002-x86-do-not-build-relocs-tool-when-installing-headers.patch |
61 |
new file mode 100644 |
62 |
index 0000000..a82c98e |
63 |
--- /dev/null |
64 |
+++ b/5.17/00_all_0002-x86-do-not-build-relocs-tool-when-installing-headers.patch |
65 |
@@ -0,0 +1,33 @@ |
66 |
+From 57875de37c5375ea95e1e949ec7c741d0038d3a1 Mon Sep 17 00:00:00 2001 |
67 |
+From: Mike Frysinger <vapier@g.o> |
68 |
+Date: Sat, 15 Nov 2014 03:37:38 -0500 |
69 |
+Subject: [PATCH] x86: do not build relocs tool when installing headers |
70 |
+ |
71 |
+This isn't needed to install headers, so don't bother building it. |
72 |
+Otherwise we run into a chicken/egg issue where we need the kernel |
73 |
+headers in order to install the kernel headers. It's also a waste |
74 |
+of time. |
75 |
+ |
76 |
+Signed-off-by: Mike Frysinger <vapier@g.o> |
77 |
+--- |
78 |
+ arch/x86/Makefile | 2 ++ |
79 |
+ 1 file changed, 2 insertions(+) |
80 |
+ |
81 |
+diff --git a/arch/x86/Makefile b/arch/x86/Makefile |
82 |
+index 60135cbd905c..9b15b2daa77f 100644 |
83 |
+--- a/arch/x86/Makefile |
84 |
++++ b/arch/x86/Makefile |
85 |
+@@ -221,8 +221,10 @@ |
86 |
+ endif |
87 |
+ |
88 |
+ |
89 |
++ifneq ($(filter-out headers_install,$(MAKECMDGOALS)),) |
90 |
+ archscripts: scripts_basic |
91 |
+ $(Q)$(MAKE) $(build)=arch/x86/tools relocs |
92 |
++endif |
93 |
+ |
94 |
+ ### |
95 |
+ # Syscall table generation |
96 |
+-- |
97 |
+2.16.1 |
98 |
+ |
99 |
|
100 |
diff --git a/5.17/00_all_0003-uapi-fix-System-V-buf-header-includes.patch b/5.17/00_all_0003-uapi-fix-System-V-buf-header-includes.patch |
101 |
new file mode 100644 |
102 |
index 0000000..987a98d |
103 |
--- /dev/null |
104 |
+++ b/5.17/00_all_0003-uapi-fix-System-V-buf-header-includes.patch |
105 |
@@ -0,0 +1,28 @@ |
106 |
+From beac664726b0b5b5c833aaf6576ca583534406ba Mon Sep 17 00:00:00 2001 |
107 |
+From: Mike Frysinger <vapier@g.o> |
108 |
+Date: Mon, 2 Nov 2015 13:30:12 -0500 |
109 |
+Subject: [PATCH] uapi: fix System V buf header includes |
110 |
+ |
111 |
+These headers rely on kernel types but don't include the other headers |
112 |
+that define them. So when you try to include them directly, you often |
113 |
+hit build failures due to unknown types. |
114 |
+ |
115 |
+Signed-off-by: Mike Frysinger <vapier@g.o> |
116 |
+ |
117 |
+diff --git a/include/uapi/asm-generic/shmbuf.h b/include/uapi/asm-generic/shmbuf.h |
118 |
+index 2b6c3bb97f97..a0171147d796 100644 |
119 |
+--- a/include/uapi/asm-generic/shmbuf.h |
120 |
++++ b/include/uapi/asm-generic/shmbuf.h |
121 |
+@@ -2,7 +2,9 @@ |
122 |
+ #ifndef __ASM_GENERIC_SHMBUF_H |
123 |
+ #define __ASM_GENERIC_SHMBUF_H |
124 |
+ |
125 |
++ |
126 |
+ #include <asm/bitsperlong.h> |
127 |
++#include <asm/ipcbuf.h> |
128 |
+ |
129 |
+ /* |
130 |
+ * The shmid64_ds structure for x86 architecture. |
131 |
+-- |
132 |
+2.16.1 |
133 |
+ |