All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4] libnl: 3.2.29 -> 3.3.0
@ 2017-05-18  9:15 Huang Qiyu
  2017-05-18  9:27 ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: Huang Qiyu @ 2017-05-18  9:15 UTC (permalink / raw)
  To: openembedded-core

1) Upgrade libnl from 3.2.29 to 3.3.0.
2) Delete patch "fix-pktloc_syntax_h-race.patch", since it is  integrated upstream.
3) Add patch "musl-header-conflict.patch" to fix musl compile error.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
---
 .../libnl/libnl/fix-pktloc_syntax_h-race.patch     | 36 -------------
 .../libnl/libnl/musl-header-conflict.patch         | 59 ++++++++++++++++++++++
 .../libnl/{libnl_3.2.29.bb => libnl_3.3.0.bb}      |  6 +--
 3 files changed, 62 insertions(+), 39 deletions(-)
 delete mode 100644 meta/recipes-support/libnl/libnl/fix-pktloc_syntax_h-race.patch
 create mode 100644 meta/recipes-support/libnl/libnl/musl-header-conflict.patch
 rename meta/recipes-support/libnl/{libnl_3.2.29.bb => libnl_3.3.0.bb} (88%)

diff --git a/meta/recipes-support/libnl/libnl/fix-pktloc_syntax_h-race.patch b/meta/recipes-support/libnl/libnl/fix-pktloc_syntax_h-race.patch
deleted file mode 100644
index 79aa0bd..0000000
--- a/meta/recipes-support/libnl/libnl/fix-pktloc_syntax_h-race.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-Upstream-Status: Inappropriate [configuration]
-
-libnl has progressed to 0.3.2 and there does not appear to be any
-"make -j" issues with this build after my limited testing on that
-newer version so we can assume this issue is fixed upstream
-
-Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
-
-Index: libnl-3.2.25/lib/Makefile.am
-===================================================================
---- libnl-3.2.25.orig/lib/Makefile.am
-+++ libnl-3.2.25/lib/Makefile.am
-@@ -46,9 +46,12 @@ CLEANFILES = \
- 
- # Hack to avoid using ylwrap. It does not function correctly in combination
- # with --header-file=
-+route/pktloc.lo: route/pktloc_syntax.h route/pktloc_grammar.h
-+route/pktloc_grammar.h: route/pktloc_grammar.c
- route/pktloc_grammar.c: route/pktloc_grammar.l
- 	$(AM_V_GEN) $(MKDIR_P) route; $(FLEX) --header-file=route/pktloc_grammar.h $(LFLAGS) -o $@ $^
- 
-+route/pktloc_syntax.h: route/pktloc_syntax.c
- route/pktloc_syntax.c: route/pktloc_syntax.y
- 	$(AM_V_GEN) $(MKDIR_P) route; $(YACC) -d $(YFLAGS) -o $@ $^
- 
-@@ -102,7 +105,9 @@ BUILT_SOURCES = \
- 	route/cls/ematch_grammar.c \
- 	route/cls/ematch_syntax.c \
- 	route/pktloc_grammar.c \
--	route/pktloc_syntax.c
-+   route/pktloc_syntax.c \
-+   route/pktloc_syntax.h \
-+   route/pktloc_grammar.h
- 
- EXTRA_DIST = \
- 	route/pktloc_grammar.l \
diff --git a/meta/recipes-support/libnl/libnl/musl-header-conflict.patch b/meta/recipes-support/libnl/libnl/musl-header-conflict.patch
new file mode 100644
index 0000000..dfe4cb8
--- /dev/null
+++ b/meta/recipes-support/libnl/libnl/musl-header-conflict.patch
@@ -0,0 +1,59 @@
+From e1f2827673d9d45fe69ca912628bbb90d4003f49 Mon Sep 17 00:00:00 2001
+From: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
+Date: Mon, 15 May 2017 02:09:08 +0900
+Subject: [PATCH] Fix musl compile error like:
+
+In file included from ../libnl-3.3.0/include/linux-private/linux/ipv6.h:5:0,
+                 from ../libnl-3.3.0/include/netlink-private/netlink.h:54,
+                 from ../libnl-3.3.0/lib/nl.c:28:
+../libnl-3.3.0/include/linux-private/linux/in6.h:32:8: error:
+redefinition of 'struct in6_addr'
+ struct in6_addr {
+        ^~~~~~~~
+
+Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
+---
+ include/linux-private/linux/if_bridge.h | 1 -
+ include/linux-private/linux/ipv6.h      | 1 -
+ include/netlink-private/netlink.h       | 1 -
+ 3 files changed, 3 deletions(-)
+
+diff --git a/include/linux-private/linux/if_bridge.h b/include/linux-private/linux/if_bridge.h
+index f24050b..8f7490c 100644
+--- a/include/linux-private/linux/if_bridge.h
++++ b/include/linux-private/linux/if_bridge.h
+@@ -15,7 +15,6 @@
+ 
+ #include <linux/types.h>
+ #include <linux/if_ether.h>
+-#include <linux/in6.h>
+ 
+ #define SYSFS_BRIDGE_ATTR	"bridge"
+ #define SYSFS_BRIDGE_FDB	"brforward"
+diff --git a/include/linux-private/linux/ipv6.h b/include/linux-private/linux/ipv6.h
+index e05e684..f16349d 100644
+--- a/include/linux-private/linux/ipv6.h
++++ b/include/linux-private/linux/ipv6.h
+@@ -2,7 +2,6 @@
+ #define _IPV6_H
+ 
+ #include <asm/byteorder.h>
+-#include <linux/in6.h>
+ 
+ /* The latest drafts declared increase in minimal mtu up to 1280. */
+ 
+diff --git a/include/netlink-private/netlink.h b/include/netlink-private/netlink.h
+index 728ca5c..a73115b 100644
+--- a/include/netlink-private/netlink.h
++++ b/include/netlink-private/netlink.h
+@@ -29,7 +29,6 @@
+ #include <limits.h>
+ #include <search.h>
+ 
+-#include <arpa/inet.h>
+ #include <netdb.h>
+ 
+ #include <defs.h>
+-- 
+2.7.4
+
diff --git a/meta/recipes-support/libnl/libnl_3.2.29.bb b/meta/recipes-support/libnl/libnl_3.3.0.bb
similarity index 88%
rename from meta/recipes-support/libnl/libnl_3.2.29.bb
rename to meta/recipes-support/libnl/libnl_3.3.0.bb
index 7d4839b..b070416 100644
--- a/meta/recipes-support/libnl/libnl_3.2.29.bb
+++ b/meta/recipes-support/libnl/libnl_3.3.0.bb
@@ -10,13 +10,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 DEPENDS = "flex-native bison-native"
 
 SRC_URI = "https://github.com/thom311/${BPN}/releases/download/${BPN}${@d.getVar('PV').replace('.','_')}/${BP}.tar.gz \
-           file://fix-pktloc_syntax_h-race.patch \
            file://fix-pc-file.patch \
+           file://musl-header-conflict.patch \
 "
 UPSTREAM_CHECK_URI = "https://github.com/thom311/${BPN}/releases"
 
-SRC_URI[md5sum] = "a8ba62a5c4f883f4e493a46d1f3733fe"
-SRC_URI[sha256sum] = "0beb593dc6abfffa18a5c787b27884979c1b7e7f1fd468c801e3cc938a685922"
+SRC_URI[md5sum] = "ab3ef137cad95bdda5ff0ffa5175dfa5"
+SRC_URI[sha256sum] = "705468b5ae4cd1eb099d2d1c476d6a3abe519bc2810becf12fb1e32de1e074e4"
 
 inherit autotools pkgconfig
 
-- 
2.7.4





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v4] libnl: 3.2.29 -> 3.3.0
  2017-05-18  9:15 [PATCH v4] libnl: 3.2.29 -> 3.3.0 Huang Qiyu
@ 2017-05-18  9:27 ` Burton, Ross
  2017-05-18 10:03   ` Huang, Qiyu
  0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2017-05-18  9:27 UTC (permalink / raw)
  To: Huang Qiyu; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 882 bytes --]

On 18 May 2017 at 10:15, Huang Qiyu <huangqy.fnst@cn.fujitsu.com> wrote:

> +++ b/meta/recipes-support/libnl/libnl/musl-header-conflict.patch
> @@ -0,0 +1,59 @@
> +From e1f2827673d9d45fe69ca912628bbb90d4003f49 Mon Sep 17 00:00:00 2001
> +From: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
> +Date: Mon, 15 May 2017 02:09:08 +0900
> +Subject: [PATCH] Fix musl compile error like:
> +
> +In file included from ../libnl-3.3.0/include/linux-
> private/linux/ipv6.h:5:0,
> +                 from ../libnl-3.3.0/include/
> netlink-private/netlink.h:54,
> +                 from ../libnl-3.3.0/lib/nl.c:28:
> +../libnl-3.3.0/include/linux-private/linux/in6.h:32:8: error:
> +redefinition of 'struct in6_addr'
> + struct in6_addr {
> +        ^~~~~~~~
> +
> +Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
>

This patch needs an Upstream-Status tag.

Ross

[-- Attachment #2: Type: text/html, Size: 1484 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v4] libnl: 3.2.29 -> 3.3.0
  2017-05-18  9:27 ` Burton, Ross
@ 2017-05-18 10:03   ` Huang, Qiyu
  2017-05-18 10:19     ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: Huang, Qiyu @ 2017-05-18 10:03 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 1290 bytes --]

I fixed this error by myself, so it don't have Upstream-Status.

huangqy

From: Burton, Ross [mailto:ross.burton@intel.com]
Sent: Thursday, May 18, 2017 5:27 PM
To: Huang, Qiyu/黄 琦宇 <huangqy.fnst@cn.fujitsu.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH v4] libnl: 3.2.29 -> 3.3.0


On 18 May 2017 at 10:15, Huang Qiyu <huangqy.fnst@cn.fujitsu.com<mailto:huangqy.fnst@cn.fujitsu.com>> wrote:
+++ b/meta/recipes-support/libnl/libnl/musl-header-conflict.patch
@@ -0,0 +1,59 @@
+From e1f2827673d9d45fe69ca912628bbb90d4003f49 Mon Sep 17 00:00:00 2001
+From: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com<mailto:zhengrq.fnst@cn.fujitsu.com>>
+Date: Mon, 15 May 2017 02:09:08 +0900
+Subject: [PATCH] Fix musl compile error like:
+
+In file included from ../libnl-3.3.0/include/linux-private/linux/ipv6.h:5:0,
+                 from ../libnl-3.3.0/include/netlink-private/netlink.h:54,
+                 from ../libnl-3.3.0/lib/nl.c:28:
+../libnl-3.3.0/include/linux-private/linux/in6.h:32:8: error:
+redefinition of 'struct in6_addr'
+ struct in6_addr {
+        ^~~~~~~~
+
+Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com<mailto:zhengrq.fnst@cn.fujitsu.com>>

This patch needs an Upstream-Status tag.

Ross



[-- Attachment #2: Type: text/html, Size: 5119 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v4] libnl: 3.2.29 -> 3.3.0
  2017-05-18 10:03   ` Huang, Qiyu
@ 2017-05-18 10:19     ` Burton, Ross
  2017-05-18 16:45       ` Denys Dmytriyenko
  0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2017-05-18 10:19 UTC (permalink / raw)
  To: Huang, Qiyu; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

On 18 May 2017 at 11:03, Huang, Qiyu <huangqy.fnst@cn.fujitsu.com> wrote:

> I fixed this error by myself, so it don't have Upstream-Status.
>
>
Yes, you do.  Have you submitted it upstream? (then, Submitted).  Is it
appropriate upstream at all, or is it customisation (Inappropriate).  If
you wrote the patch, it needs to go upstream but you haven't yet, then
Pending.

Ideally we want Submitted/Backport/Inappropriate, but we've a worrying
number of Pending.  Please send it upstream.

Ross

[-- Attachment #2: Type: text/html, Size: 1025 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v4] libnl: 3.2.29 -> 3.3.0
  2017-05-18 10:19     ` Burton, Ross
@ 2017-05-18 16:45       ` Denys Dmytriyenko
  0 siblings, 0 replies; 5+ messages in thread
From: Denys Dmytriyenko @ 2017-05-18 16:45 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Thu, May 18, 2017 at 11:19:09AM +0100, Burton, Ross wrote:
> On 18 May 2017 at 11:03, Huang, Qiyu <huangqy.fnst@cn.fujitsu.com> wrote:
> 
> > I fixed this error by myself, so it don't have Upstream-Status.
> >
> >
> Yes, you do.  Have you submitted it upstream? (then, Submitted).  Is it
> appropriate upstream at all, or is it customisation (Inappropriate).  If
> you wrote the patch, it needs to go upstream but you haven't yet, then
> Pending.
> 
> Ideally we want Submitted/Backport/Inappropriate, but we've a worrying
> number of Pending.  Please send it upstream.

We have a nice Wiki with all this explained:

https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations

-- 
Denys


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-18 16:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-18  9:15 [PATCH v4] libnl: 3.2.29 -> 3.3.0 Huang Qiyu
2017-05-18  9:27 ` Burton, Ross
2017-05-18 10:03   ` Huang, Qiyu
2017-05-18 10:19     ` Burton, Ross
2017-05-18 16:45       ` Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.