summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Gamblin <trevor.gamblin@windriver.com>2021-12-01 15:41:17 -0500
committerKhem Raj <raj.khem@gmail.com>2021-12-01 12:47:27 -0800
commita7313d45035ea3340c520a98436de7fa4c8cd49a (patch)
treea5404399429dd5ba2caec65861fa213bae446413
parent260968790546acce067ab1265f53ceb40791dfa1 (diff)
downloadmeta-openembedded-a7313d45035ea3340c520a98436de7fa4c8cd49a.tar.gz
libnftnl: upgrade 1.2.0 -> 1.2.1
Also fix patch contributor name in the process of reworking it to apply on the new 1.2.1 release (I had accidentally modified it when reworking it previously). Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-filter/libnftnl/libnftnl/0001-avoid-naming-local-function-as-one-of-printf-family.patch29
-rw-r--r--meta-networking/recipes-filter/libnftnl/libnftnl_1.2.1.bb (renamed from meta-networking/recipes-filter/libnftnl/libnftnl_1.2.0.bb)2
2 files changed, 23 insertions, 8 deletions
diff --git a/meta-networking/recipes-filter/libnftnl/libnftnl/0001-avoid-naming-local-function-as-one-of-printf-family.patch b/meta-networking/recipes-filter/libnftnl/libnftnl/0001-avoid-naming-local-function-as-one-of-printf-family.patch
index 62328203dd..68eb04a83e 100644
--- a/meta-networking/recipes-filter/libnftnl/libnftnl/0001-avoid-naming-local-function-as-one-of-printf-family.patch
+++ b/meta-networking/recipes-filter/libnftnl/libnftnl/0001-avoid-naming-local-function-as-one-of-printf-family.patch
@@ -1,6 +1,6 @@
1From c29959e045dd09d0b5727682d4e9dbc10923ac4f Mon Sep 17 00:00:00 2001 1From e03b003610a176d608da9a02e433e7ded7e4b75f Mon Sep 17 00:00:00 2001
2From: Trevor Gamblin <trevor.gamblin@windriver.com> 2From: Todd Cunningham <tcunningham07@gmail.com>
3Date: Wed, 2 Jun 2021 11:08:51 -0400 3Date: Wed, 11 Dec 2019 10:18:56 +1000
4Subject: [PATCH] avoid naming local function as one of printf family 4Subject: [PATCH] avoid naming local function as one of printf family
5 5
6Fixes build issues with clang 6Fixes build issues with clang
@@ -14,6 +14,9 @@ Signed-off-by: Todd Cunningham <tcunningham07@gmail.com>
14 14
15Use wiggle to get the patch to apply for version 1.2.0. 15Use wiggle to get the patch to apply for version 1.2.0.
16 16
17Add the same change in src/expr/last.c to make the patch apply for
181.2.1. Also correct the patch to show the original author and metadata.
19
17Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> 20Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
18--- 21---
19 include/expr_ops.h | 2 +- 22 include/expr_ops.h | 2 +-
@@ -33,6 +36,7 @@ Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
33 src/expr/fwd.c | 2 +- 36 src/expr/fwd.c | 2 +-
34 src/expr/hash.c | 2 +- 37 src/expr/hash.c | 2 +-
35 src/expr/immediate.c | 2 +- 38 src/expr/immediate.c | 2 +-
39 src/expr/last.c | 2 +-
36 src/expr/limit.c | 2 +- 40 src/expr/limit.c | 2 +-
37 src/expr/log.c | 2 +- 41 src/expr/log.c | 2 +-
38 src/expr/lookup.c | 2 +- 42 src/expr/lookup.c | 2 +-
@@ -66,7 +70,7 @@ Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
66 src/obj/synproxy.c | 2 +- 70 src/obj/synproxy.c | 2 +-
67 src/obj/tunnel.c | 2 +- 71 src/obj/tunnel.c | 2 +-
68 src/object.c | 2 +- 72 src/object.c | 2 +-
69 50 files changed, 51 insertions(+), 51 deletions(-) 73 51 files changed, 52 insertions(+), 52 deletions(-)
70 74
71diff --git a/include/expr_ops.h b/include/expr_ops.h 75diff --git a/include/expr_ops.h b/include/expr_ops.h
72index 7a6aa23..d3a2855 100644 76index 7a6aa23..d3a2855 100644
@@ -265,6 +269,17 @@ index 94b043c..a8a3c1f 100644
265- .snprintf = nftnl_expr_immediate_snprintf, 269- .snprintf = nftnl_expr_immediate_snprintf,
266+ .snprintf_ = nftnl_expr_immediate_snprintf, 270+ .snprintf_ = nftnl_expr_immediate_snprintf,
267 }; 271 };
272diff --git a/src/expr/last.c b/src/expr/last.c
273index e2a60c4..2f75464 100644
274--- a/src/expr/last.c
275+++ b/src/expr/last.c
276@@ -134,5 +134,5 @@ struct expr_ops expr_ops_last = {
277 .get = nftnl_expr_last_get,
278 .parse = nftnl_expr_last_parse,
279 .build = nftnl_expr_last_build,
280- .snprintf = nftnl_expr_last_snprintf,
281+ .snprintf_ = nftnl_expr_last_snprintf,
282 };
268diff --git a/src/expr/limit.c b/src/expr/limit.c 283diff --git a/src/expr/limit.c b/src/expr/limit.c
269index 3dfd54a..f652df0 100644 284index 3dfd54a..f652df0 100644
270--- a/src/expr/limit.c 285--- a/src/expr/limit.c
@@ -376,10 +391,10 @@ index 215a681..75a6b3c 100644
376+ .snprintf_ = nftnl_expr_osf_snprintf, 391+ .snprintf_ = nftnl_expr_osf_snprintf,
377 }; 392 };
378diff --git a/src/expr/payload.c b/src/expr/payload.c 393diff --git a/src/expr/payload.c b/src/expr/payload.c
379index 9ccb78e..aa17025 100644 394index 82747ec..e9130ec 100644
380--- a/src/expr/payload.c 395--- a/src/expr/payload.c
381+++ b/src/expr/payload.c 396+++ b/src/expr/payload.c
382@@ -258,5 +258,5 @@ struct expr_ops expr_ops_payload = { 397@@ -259,5 +259,5 @@ struct expr_ops expr_ops_payload = {
383 .get = nftnl_expr_payload_get, 398 .get = nftnl_expr_payload_get,
384 .parse = nftnl_expr_payload_parse, 399 .parse = nftnl_expr_payload_parse,
385 .build = nftnl_expr_payload_build, 400 .build = nftnl_expr_payload_build,
@@ -631,5 +646,5 @@ index 46e208b..d321c50 100644
631 } 646 }
632 ret = snprintf(buf + offset, remain, "]"); 647 ret = snprintf(buf + offset, remain, "]");
633-- 648--
6342.31.1 6492.33.1
635 650
diff --git a/meta-networking/recipes-filter/libnftnl/libnftnl_1.2.0.bb b/meta-networking/recipes-filter/libnftnl/libnftnl_1.2.1.bb
index d4aa267fa7..16de8589a7 100644
--- a/meta-networking/recipes-filter/libnftnl/libnftnl_1.2.0.bb
+++ b/meta-networking/recipes-filter/libnftnl/libnftnl_1.2.1.bb
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=79808397c3355f163c012616125c9e26"
4SECTION = "libs" 4SECTION = "libs"
5DEPENDS = "libmnl" 5DEPENDS = "libmnl"
6 6
7SRCREV = "d45be40eef72f0d42a1ba82efddbb0970d4c760a" 7SRCREV = "09456c720e9c00eecc08e41ac6b7c291b3821ee5"
8SRC_URI = "git://git.netfilter.org/libnftnl;branch=master \ 8SRC_URI = "git://git.netfilter.org/libnftnl;branch=master \
9 file://0001-avoid-naming-local-function-as-one-of-printf-family.patch \ 9 file://0001-avoid-naming-local-function-as-one-of-printf-family.patch \
10 " 10 "