linux-headers: bump 3.14.x and 4.{4, 5}.x series
PATCH 1/2 linux-headers: bump 3.14.x and 4.{4, 5}.x series
Kernel headers 4.5 -> 4.5.4 broke netfilter uapi headers leading to build failures for cases where glibc's net/if.h was included before linux/if.h
This is fixed since 4.5.5 via linux kernel commit 4a91cb61 and fixes:
http://autobuild.buildroot.net/results/736/7362431f62ebb1b436ac41ea3ef85228c763e6f3/
--- package/linux-headers/Config.in.host | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
package/linux-headers/Config.in.host +3 -3
@@ -214,13 +214,13 @@ config BR2_DEFAULT_KERNEL_HEADERS default "3.4.112" if BR2_KERNEL_HEADERS_3_4 default "3.10.101" if BR2_KERNEL_HEADERS_3_10 default "3.12.59" if BR2_KERNEL_HEADERS_3_12 - default "3.14.69" if BR2_KERNEL_HEADERS_3_14 + default "3.14.70" if BR2_KERNEL_HEADERS_3_14 default "3.18.33" if BR2_KERNEL_HEADERS_3_18 default "3.19.8" if BR2_KERNEL_HEADERS_3_19 default "4.0.9" if BR2_KERNEL_HEADERS_4_0 default "4.1.24" if BR2_KERNEL_HEADERS_4_1 default "4.2.8" if BR2_KERNEL_HEADERS_4_2 default "4.3.6" if BR2_KERNEL_HEADERS_4_3 - default "4.4.10" if BR2_KERNEL_HEADERS_4_4 - default "4.5.4" if BR2_KERNEL_HEADERS_4_5 + default "4.4.11" if BR2_KERNEL_HEADERS_4_4 + default "4.5.5" if BR2_KERNEL_HEADERS_4_5 default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
Signature · 1 line
2.7.3
PATCH 2/2 connman: remove xtables build fix patch
This was added in 0dece985 to deal with kernel headers 4.5 -> 4.5.4 breakage. Unfortunately the fix in 4.5.5 and 4.6+ doesn't deal correctly with this causing more build breakage, so we'd rather "break" for the small range of 4.5.x versions broken than for the rest of time.
--- package/connman/0001-xtables.patch | 61 -------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 package/connman/0001-xtables.patch
package/connman/0001-xtables.patch deleted +0 -61
@@ -1,61 +0,0 @@ -Use some preprocessor tricks to route around incompatibilies seen -between newer Linux kernels and glibc when both net/if.h and linux/if.h -are included in the same source. - -Patch from gentoo, see https://bugs.gentoo.org/show_bug.cgi?id=577584 - -Signed-off-by: Gustavo Zacarias <[email protected]> - ---- connman-1.31/src/iptables.c.old 2016-03-22 20:12:47.829460752 -0700 -+++ connman-1.31/src/iptables.c 2016-03-22 21:33:36.835384724 -0700 -@@ -28,11 +28,11 @@ - #include <stdio.h> - #include <string.h> - #include <unistd.h> - #include <sys/errno.h> - #include <sys/socket.h> --#include <xtables.h> -+#include "connman_xtables.h" - #include <inttypes.h> - - #include <linux/netfilter_ipv4/ip_tables.h> - - #include "connman.h" ---- connman-1.31/src/firewall.c.old 2016-03-22 21:29:01.959472262 -0700 -+++ connman-1.31/src/firewall.c 2016-03-22 21:33:53.048144181 -0700 -@@ -23,11 +23,11 @@ - #include <config.h> - #endif - - #include <errno.h> - --#include <xtables.h> -+#include "connman_xtables.h" - #include <linux/netfilter_ipv4/ip_tables.h> - - #include "connman.h" - - #define CHAIN_PREFIX "connman-" ---- /dev/null 2016-03-18 06:21:16.372989086 -0700 -+++ connman-1.31/include/connman_xtables.h 2016-03-22 21:32:21.349504786 -0700 -@@ -0,0 +1,20 @@ -+#ifndef CONNMAN_XTABLES_H -+#define CONNMAN_XTABLES_H -+ -+#include <linux/version.h> -+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) -+#include <xtables.h> -+#else -+#ifdef __USE_MISC -+#define GENTOO_USE_MISC __USE_MISC -+#undef __USE_MISC -+#endif -+ -+#include <xtables.h> -+ -+#ifdef GENTOO_USE_MISC -+#define __USE_MISC GENTOO_USE_MISC -+#undef GENTOO_USE_MISC -+#endif -+#endif -+#endif
Signature · 1 line
2.7.3
PATCH 2/2 connman: remove xtables build fix patch
Hello,
Quoted 10 lines · Gustavo Zacarias
This was added in
0dece985to deal with kernel headers 4.5 -> 4.5.4 breakage. Unfortunately the fix in 4.5.5 and 4.6+ doesn't deal correctly with this causing more build breakage, so we'd rather "break" for the small range of 4.5.x versions broken than for the rest of time.Signed-off-by Gustavo Zacarias <[email protected]>--- package/connman/0001-xtables.patch | 61 -------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 package/connman/0001-xtables.patch
Does this fixes some autobuilder failures?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/2 connman: remove xtables build fix patch
Quoted 8 lines · Thomas Petazzoni
Hello,
Quoted 5 lines · Gustavo Zacarias
This was added in
0dece985to deal with kernel headers 4.5 -> 4.5.4 breakage. Unfortunately the fix in 4.5.5 and 4.6+ doesn't deal correctly with this causing more build breakage, so we'd rather "break" for the small range of 4.5.x versions broken than for the rest of time.
Quoted 7 lines
Quoted 5 lines
Signed-off-by Gustavo Zacarias <[email protected]>--- package/connman/0001-xtables.patch | 61 -------------------------------------- 1 file changed, 61 deletions(-)delete mode 100644
package/connman/0001-xtables.patchDoes this fixes some autobuilder failures?
Hi.
Not right now since 4.6 is in -next, however it will if the stable headers are bumped to 4.5.5.
Regards.
PATCH 2/2 connman: remove xtables build fix patch
Hello,
Quoted 2 lines · Gustavo Zacarias
Not right now since 4.6 is in -next, however it will if the stable headers are bumped to 4.5.5.
Well, your patch 1/2 does:
- default "4.4.10" if BR2_KERNEL_HEADERS_4_4
- default "4.5.4" if BR2_KERNEL_HEADERS_4_5
+ default "4.4.11" if BR2_KERNEL_HEADERS_4_4
+ default "4.5.5" if BR2_KERNEL_HEADERS_4_5
So it should fix the thing, right?
However, it means I'd have to rebuild once again the Buildroot external toolchains, at least the ones that use 4.5 kernel headers, right?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/2 connman: remove xtables build fix patch
Quoted 14 lines · Thomas Petazzoni
Hello,
Quoted 2 lines · Gustavo Zacarias
Not right now since 4.6 is in -next, however it will if the stable headers are bumped to 4.5.5.
Well, your patch 1/2 does:
(quoted diff) +2
-2- default "4.4.10" if BR2_KERNEL_HEADERS_4_4 - default "4.5.4" if BR2_KERNEL_HEADERS_4_5 + default "4.4.11" if BR2_KERNEL_HEADERS_4_4 + default "4.5.5" if BR2_KERNEL_HEADERS_4_5
Quoted 6 lines
So it should fix the thing, right?
However, it means I'd have to rebuild once again the Buildroot external toolchains, at least the ones that use 4.5 kernel headers, right?
Thomas
Hi.
Well, no, after bumping to 4.5.5 connman will go broken with the hacky patch because it's incompatible with the kernel fix upstream. It's a shitty situation, and yes, you'll have to rebuild, sorry. This is what happens when kids break the headers.
Regards.
PATCH 2/2 connman: remove xtables build fix patch
Hello,
Quoted 2 lines · Gustavo Zacarias
Well, no, after bumping to 4.5.5 connman will go broken with the hacky patch because it's incompatible with the kernel fix upstream.
Yes, but if we:
1/ Apply your patch 1/2 which bumps to 4.5.5
2/ Apply your patch 2/2 which removes the patch
3/ Rebuild the pre-built Buildroot external toolchains that used 4.5.4
headers
Then, the connman build failures should go away, right?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/2 connman: remove xtables build fix patch
Quoted 9 lines · Thomas Petazzoni
Hello,
Quoted 2 lines · Gustavo Zacarias
Well, no, after bumping to 4.5.5 connman will go broken with the hacky patch because it's incompatible with the kernel fix upstream.
Yes, but if we:
Quoted 8 lines
1/ Apply your patch 1/2 which bumps to 4.5.5
2/ Apply your patch 2/2 which removes the patch
3/ Rebuild the pre-built Buildroot external toolchains that used 4.5.4
headersThen, the connman build failures should go away, right?
Hi.
Yes, exactly.
The only caveat would be people with toolchain headers 4.5.0 - 4.5.4 or any eventual external toolchain that ships that way (which by definition would be "broken").
Regards.
PATCH 2/2 connman: remove xtables build fix patch
Hello,
Quoted 3 lines · Gustavo Zacarias
The only caveat would be people with toolchain headers 4.5.0 - 4.5.4 or any eventual external toolchain that ships that way (which by definition would be "broken").
Yes, understood. But I believe that's a reasonable trade-off. Building a toolchain with 4.5 headers (and therefore running 4.5) is really being bleeding-edge, so it's pretty unlikely to see many users doing that.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/2 linux-headers: bump 3.14.x and 4.{4, 5}.x series
In reply to Gustavo ZacariasAm Thu, 19 May 2016 10:25:36 -0300 schrieb Gustavo Zacarias:
Quoted 5 lines
Kernel headers 4.5 -> 4.5.4 broke netfilter uapi headers leading to build failures for cases where glibc's
net/if.hwas included beforelinux/if.hThis is fixed since 4.5.5 via linux kernel commit4a91cb61and fixes:
http://autobuild.buildroot.net/
results/736/7362431f62ebb1b436ac41ea3ef85228c763e6f3/
(compile-tested collectd, fixes
http://autobuild.buildroot.net/results/ae1/
ae1e3a33a1c2b7433ca7a04659467e2017756b00/)
PATCH 1/2 linux-headers: bump 3.14.x and 4.{4, 5}.x series
In reply to Gustavo ZacariasHello,
Quoted 10 lines · Gustavo Zacarias
Kernel headers 4.5 -> 4.5.4 broke netfilter uapi headers leading to build failures for cases where glibc's
net/if.hwas included beforelinux/if.h
This is fixed since 4.5.5 via linux kernel commit4a91cb61and fixes:
http://autobuild.buildroot.net/results/736/7362431f62ebb1b436ac41ea3ef85228c763e6f3/Signed-off-by Gustavo Zacarias <[email protected]>--- package/linux-headers/Config.in.host | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Both patches applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com