[OE-core] [PATCH] linux-libc-headers: if_tunnel: remove include of if/ip/in6.h

Bruce Ashfield bruce.ashfield at gmail.com
Tue Oct 4 00:27:03 UTC 2016


On Mon, Oct 3, 2016 at 3:55 PM, Khem Raj <raj.khem at gmail.com> wrote:

> What Repercussion does this have wrt APIs headers for future. Provided
> this is a local patch. I think removing header includes like this can cause
> issues.
>


It's something we could drop in the future, but these are mods that have
been done since -rc4, and could very well be undone if they start breaking
things like this.

The alternative is to try and fix the userspace applications, but I
currently don't see a fast way to do that (and I'm now officially on
vacation).

Cheers,

Bruce


>
> On Oct 3, 2016 9:55 AM, "Bruce Ashfield" <bruce.ashfield at windriver.com>
> wrote:
>
> commit 1fe8e0f074c [include/uapi/linux/if_tunnel.h: include linux/if.h,
> linux/ip.h and linux/in6.h]
> breaks the builds of net-tools.
>
> We remove the new includes until such a time that userspace can adapt to
> the
> new kernel headers.
>
> Signed-off-by: Bruce Ashfield <bruce.ashfield at windriver.com>
> ---
>  ...1-if_tunnel-remove-include-of-if-ip-in6.h.patch | 33
> ++++++++++++++++++++++
>  .../linux-libc-headers/linux-libc-headers_4.8.bb   |  1 +
>  2 files changed, 34 insertions(+)
>  create mode 100644 meta/recipes-kernel/linux-libc
> -headers/linux-libc-headers/0001-if_tunnel-remove-include-
> of-if-ip-in6.h.patch
>
> diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/
> 0001-if_tunnel-remove-include-of-if-ip-in6.h.patch
> b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/
> 0001-if_tunnel-remove-include-of-if-ip-in6.h.patch
> new file mode 100644
> index 000000000000..f2011880dccb
> --- /dev/null
> +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/
> 0001-if_tunnel-remove-include-of-if-ip-in6.h.patch
> @@ -0,0 +1,33 @@
> +From 017ae5929312685c4c044765445bfd4d2a4abb5c Mon Sep 17 00:00:00 2001
> +From: Bruce Ashfield <bruce.ashfield at windriver.com>
> +Date: Mon, 3 Oct 2016 12:27:57 -0400
> +Subject: [PATCH] if_tunnel: remove include of if/ip/in6.h
> +
> +commit 1fe8e0f074c [include/uapi/linux/if_tunnel.h: include linux/if.h,
> linux/ip.h and linux/in6.h]
> +breaks the builds of net-tools.
> +
> +We remove the new includes until such a time that userspace can adapt to
> the
> +new kernel headers.
> +
> +Signed-off-by: Bruce Ashfield <bruce.ashfield at windriver.com>
> +---
> + include/uapi/linux/if_tunnel.h | 3 ---
> + 1 file changed, 3 deletions(-)
> +
> +diff --git a/include/uapi/linux/if_tunnel.h
> b/include/uapi/linux/if_tunnel.h
> +index 777b6cd..1046f55 100644
> +--- a/include/uapi/linux/if_tunnel.h
> ++++ b/include/uapi/linux/if_tunnel.h
> +@@ -2,9 +2,6 @@
> + #define _UAPI_IF_TUNNEL_H_
> +
> + #include <linux/types.h>
> +-#include <linux/if.h>
> +-#include <linux/ip.h>
> +-#include <linux/in6.h>
> + #include <asm/byteorder.h>
> +
> +
> +--
> +2.7.4
> +
> diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_
> 4.8.bb b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.8.bb
> index 778f0b6e6443..ee2d8293450e 100644
> --- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.8.bb
> +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.8.bb
> @@ -10,6 +10,7 @@ SRC_URI_append_libc-musl = "\
>
>  SRC_URI_append = "\
>      file://0001-ppp-fix-in-if.h-includes.patch \
> +    file://0001-if_tunnel-remove-include-of-if-ip-in6.h.patch \
>      "
>
>  SRC_URI[md5sum] = "c1af0afbd3df35c1ccdc7a5118cd2d07"
> --
> 2.5.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>


-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20161003/987e150a/attachment-0002.html>


More information about the Openembedded-core mailing list