diff options
| author | Pierre-Jean Texier <pjtexier@koncepto.io> | 2020-04-03 18:20:19 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-04-03 14:45:54 -0700 |
| commit | 519b86c549a7e62e0f9779402567571c96a35d40 (patch) | |
| tree | 4adf7aeb00832be16e072921a9387666a50b3a9a | |
| parent | fbebf1bb0aba87c39d6738fcf5a2422072c13232 (diff) | |
| download | meta-openembedded-519b86c549a7e62e0f9779402567571c96a35d40.tar.gz | |
nftables: upgrade 0.9.3 -> 0.9.4
See https://lwn.net/Articles/816528/
Also remove patch applied upstream
Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-filter/nftables/files/0001-update-python3-nftables-reference.patch | 47 | ||||
| -rw-r--r-- | meta-networking/recipes-filter/nftables/nftables_0.9.4.bb (renamed from meta-networking/recipes-filter/nftables/nftables_0.9.3.bb) | 7 |
2 files changed, 3 insertions, 51 deletions
diff --git a/meta-networking/recipes-filter/nftables/files/0001-update-python3-nftables-reference.patch b/meta-networking/recipes-filter/nftables/files/0001-update-python3-nftables-reference.patch deleted file mode 100644 index db2243480d..0000000000 --- a/meta-networking/recipes-filter/nftables/files/0001-update-python3-nftables-reference.patch +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | From ddbe652bf0f4ed300bae9497250130d68e4cbf5b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Arturo Borrero Gonzalez <arturo@netfilter.org> | ||
| 3 | Date: Tue, 10 Dec 2019 12:00:45 +0100 | ||
| 4 | Subject: py: load the SONAME-versioned shared object | ||
| 5 | |||
| 6 | Instruct the python module to load the SONAME versioned shared object. | ||
| 7 | |||
| 8 | Normal end-user systems may only have available libnftables.so.1.0.0 and not | ||
| 9 | libnftables.so which is usually only present in developer systems. | ||
| 10 | |||
| 11 | In Debian systems, for example: | ||
| 12 | |||
| 13 | % dpkg -L libnftables1 | grep so.1 | ||
| 14 | /usr/lib/x86_64-linux-gnu/libnftables.so.1.0.0 | ||
| 15 | /usr/lib/x86_64-linux-gnu/libnftables.so.1 | ||
| 16 | |||
| 17 | % dpkg -L libnftables-dev | grep so | ||
| 18 | /usr/lib/x86_64-linux-gnu/libnftables.so | ||
| 19 | |||
| 20 | The "1" is not a magic number, is the SONAME of libnftables in the current | ||
| 21 | version, as stated in Make_global.am. | ||
| 22 | |||
| 23 | Reported-by: Michael Biebl <biebl@debian.org> | ||
| 24 | Signed-off-by: Arturo Borrero Gonzalez <arturo@netfilter.org> | ||
| 25 | Acked-by: Phil Sutter <phil@nwl.cc> | ||
| 26 | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||
| 27 | --- | ||
| 28 | py/nftables.py | 2 +- | ||
| 29 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 30 | |||
| 31 | diff --git a/py/nftables.py b/py/nftables.py | ||
| 32 | index 48eb54fe..2a0a1e89 100644 | ||
| 33 | --- a/py/nftables.py | ||
| 34 | +++ b/py/nftables.py | ||
| 35 | @@ -64,7 +64,7 @@ class Nftables: | ||
| 36 | |||
| 37 | validator = None | ||
| 38 | |||
| 39 | - def __init__(self, sofile="libnftables.so"): | ||
| 40 | + def __init__(self, sofile="libnftables.so.1"): | ||
| 41 | """Instantiate a new Nftables class object. | ||
| 42 | |||
| 43 | Accepts a shared object file to open, by default standard search path | ||
| 44 | -- | ||
| 45 | cgit v1.2.1 | ||
| 46 | |||
| 47 | |||
diff --git a/meta-networking/recipes-filter/nftables/nftables_0.9.3.bb b/meta-networking/recipes-filter/nftables/nftables_0.9.4.bb index 65a7bcc5ff..5b57abb87a 100644 --- a/meta-networking/recipes-filter/nftables/nftables_0.9.3.bb +++ b/meta-networking/recipes-filter/nftables/nftables_0.9.4.bb | |||
| @@ -9,10 +9,9 @@ DEPENDS = "libmnl libnftnl bison-native \ | |||
| 9 | # Ensure we reject the 0.099 version by matching at least two dots | 9 | # Ensure we reject the 0.099 version by matching at least two dots |
| 10 | UPSTREAM_CHECK_REGEX = "nftables-(?P<pver>\d+(\.\d+){2,}).tar.bz2" | 10 | UPSTREAM_CHECK_REGEX = "nftables-(?P<pver>\d+(\.\d+){2,}).tar.bz2" |
| 11 | 11 | ||
| 12 | SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.bz2 \ | 12 | SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.bz2" |
| 13 | file://0001-update-python3-nftables-reference.patch" | 13 | SRC_URI[md5sum] = "fdfd51a1083fb054a487b5159b1ed5cd" |
| 14 | SRC_URI[md5sum] = "9913b2b46864394d41916b74638e0875" | 14 | SRC_URI[sha256sum] = "08b8683a9db5fba980bc092b75288af98d218bbe8ab446daf2338570d0730f9a" |
| 15 | SRC_URI[sha256sum] = "956b915ce2a7aeaff123e49006be7a0690a0964e96c062703181a36e2e5edb78" | ||
| 16 | 15 | ||
| 17 | inherit autotools manpages pkgconfig | 16 | inherit autotools manpages pkgconfig |
| 18 | 17 | ||
