diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2024-03-07 14:18:33 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-03-08 10:07:26 -0800 |
commit | 0178f52636696c601a4ed421c645370624731995 (patch) | |
tree | 9b64974c7800d836ae671bd86ff6ec8af140f5ef /meta-networking | |
parent | 05afab094d4a264c0a25ad3b36cae0ef3fb33e56 (diff) | |
download | meta-openembedded-0178f52636696c601a4ed421c645370624731995.tar.gz |
net-snmp: upgrade 5.9.3 -> 5.9.4
ChangeLog:
https://github.com/net-snmp/net-snmp/blob/V5-9-patches/CHANGES
* Refresh patches
* Drop backport CVE patch
* Drop 0001-Add-noreturn-attribute-to-netsnmp_pci_error.patch as the
issue has been fixed upstream.
* Add a patch to fix build on musl
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
17 files changed, 118 insertions, 206 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/files/init b/meta-networking/recipes-protocols/net-snmp/files/init index 47995466f..47995466f 100755..100644 --- a/meta-networking/recipes-protocols/net-snmp/files/init +++ b/meta-networking/recipes-protocols/net-snmp/files/init | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-Add-noreturn-attribute-to-netsnmp_pci_error.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-Add-noreturn-attribute-to-netsnmp_pci_error.patch deleted file mode 100644 index 6fbace75a..000000000 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-Add-noreturn-attribute-to-netsnmp_pci_error.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From 5719f40db65a72624a0b0f08e546d12bf823bd1e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 18 Jan 2023 14:38:44 -0800 | ||
4 | Subject: [PATCH] Add noreturn attribute to netsnmp_pci_error() | ||
5 | |||
6 | Fixes build with clang16 | ||
7 | | mibgroup/if-mib/data_access/interface_linux.c:152:23: error: incompatible function pointer types assigning to 'void (*)(char *, ...) __attribute__((noreturn))' from 'void (char *, ...)' [-Wincompatible-function-pointer-types] | ||
8 | | pci_access->error = netsnmp_pci_error; | ||
9 | | ^ ~~~~~~~~~~~~~~~~~ | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | agent/mibgroup/if-mib/data_access/interface_linux.c | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/agent/mibgroup/if-mib/data_access/interface_linux.c b/agent/mibgroup/if-mib/data_access/interface_linux.c | ||
18 | index c6cc54e..12eb865 100644 | ||
19 | --- a/agent/mibgroup/if-mib/data_access/interface_linux.c | ||
20 | +++ b/agent/mibgroup/if-mib/data_access/interface_linux.c | ||
21 | @@ -31,7 +31,7 @@ static struct pci_access *pci_access; | ||
22 | /* Avoid letting libpci call exit(1) when no PCI bus is available. */ | ||
23 | static int do_longjmp =0; | ||
24 | static jmp_buf err_buf; | ||
25 | -static void | ||
26 | +__attribute__((noreturn)) static void | ||
27 | netsnmp_pci_error(char *msg, ...) | ||
28 | { | ||
29 | va_list args; | ||
30 | -- | ||
31 | 2.39.1 | ||
32 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-add-knob-whether-nlist.h-are-checked.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-net-snmp-add-knob-whether-nlist.h-are-checked.patch index 3152ce288..ea9dccac2 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-add-knob-whether-nlist.h-are-checked.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-net-snmp-add-knob-whether-nlist.h-are-checked.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From ad65b106d3cb3c6e595381be1c45a73c1ef6eb5e Mon Sep 17 00:00:00 2001 | 1 | From 787269b337e70f073e194c3b361eaf4d5f2291ce Mon Sep 17 00:00:00 2001 |
2 | From: Chong Lu <Chong.Lu@windriver.com> | 2 | From: Chong Lu <Chong.Lu@windriver.com> |
3 | Date: Thu, 28 May 2020 09:46:34 -0500 | 3 | Date: Thu, 28 May 2020 09:46:34 -0500 |
4 | Subject: [PATCH] net-snmp: add knob whether nlist.h are checked | 4 | Subject: [PATCH] net-snmp: add knob whether nlist.h are checked |
@@ -9,13 +9,12 @@ Add knob to decide whether nlist.h are checked or not. | |||
9 | Upstream-Status: Pending | 9 | Upstream-Status: Pending |
10 | 10 | ||
11 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> | 11 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> |
12 | |||
13 | --- | 12 | --- |
14 | configure.d/config_os_headers | 2 ++ | 13 | configure.d/config_os_headers | 2 ++ |
15 | 1 file changed, 2 insertions(+) | 14 | 1 file changed, 2 insertions(+) |
16 | 15 | ||
17 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers | 16 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers |
18 | index b9c8c31..01c3376 100644 | 17 | index 584064e..c0688f8 100644 |
19 | --- a/configure.d/config_os_headers | 18 | --- a/configure.d/config_os_headers |
20 | +++ b/configure.d/config_os_headers | 19 | +++ b/configure.d/config_os_headers |
21 | @@ -37,6 +37,7 @@ AC_CHECK_HEADERS([getopt.h pthread.h regex.h ] dnl | 20 | @@ -37,6 +37,7 @@ AC_CHECK_HEADERS([getopt.h pthread.h regex.h ] dnl |
@@ -34,3 +33,6 @@ index b9c8c31..01c3376 100644 | |||
34 | 33 | ||
35 | # Library: | 34 | # Library: |
36 | AC_CHECK_HEADERS([crt_externs.h ] dnl | 35 | AC_CHECK_HEADERS([crt_externs.h ] dnl |
36 | -- | ||
37 | 2.25.1 | ||
38 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/fix-libtool-finish.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0002-net-snmp-fix-libtool-finish.patch index 409c1e03c..e951537b0 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/fix-libtool-finish.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0002-net-snmp-fix-libtool-finish.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From ab1d77c52e84746e75506a2870783806bc77f396 Mon Sep 17 00:00:00 2001 | 1 | From 5f002c3cc46ecf4d4a29571309f2cc0d3d34330f Mon Sep 17 00:00:00 2001 |
2 | From: "Roy.Li" <rongqing.li@windriver.com> | 2 | From: "Roy.Li" <rongqing.li@windriver.com> |
3 | Date: Fri, 16 Jan 2015 14:14:01 +0800 | 3 | Date: Fri, 16 Jan 2015 14:14:01 +0800 |
4 | Subject: [PATCH] net-snmp: fix "libtool --finish" | 4 | Subject: [PATCH] net-snmp: fix "libtool --finish" |
@@ -14,16 +14,15 @@ rpm-postinst for each recipe while do_package, in package.bbclass. | |||
14 | Upstream-Status: Inappropriate [cross compile specific] | 14 | Upstream-Status: Inappropriate [cross compile specific] |
15 | 15 | ||
16 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | 16 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> |
17 | |||
18 | --- | 17 | --- |
19 | Makefile.top | 2 +- | 18 | Makefile.top | 2 +- |
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | 19 | 1 file changed, 1 insertion(+), 1 deletion(-) |
21 | 20 | ||
22 | diff --git a/Makefile.top b/Makefile.top | 21 | diff --git a/Makefile.top b/Makefile.top |
23 | index a962c54..1ba5607 100644 | 22 | index d1b3923..53e0392 100644 |
24 | --- a/Makefile.top | 23 | --- a/Makefile.top |
25 | +++ b/Makefile.top | 24 | +++ b/Makefile.top |
26 | @@ -89,7 +89,7 @@ LIBREVISION = 0 | 25 | @@ -89,7 +89,7 @@ LIBREVISION = 1 |
27 | LIB_LD_CMD = $(LIBTOOL) --mode=link $(LINKCC) $(CFLAGS) -rpath $(libdir) -version-info $(LIBCURRENT):$(LIBREVISION):$(LIBAGE) @LD_NO_UNDEFINED@ -o | 26 | LIB_LD_CMD = $(LIBTOOL) --mode=link $(LINKCC) $(CFLAGS) -rpath $(libdir) -version-info $(LIBCURRENT):$(LIBREVISION):$(LIBAGE) @LD_NO_UNDEFINED@ -o |
28 | LIB_EXTENSION = la | 27 | LIB_EXTENSION = la |
29 | LIB_VERSION = | 28 | LIB_VERSION = |
@@ -32,3 +31,6 @@ index a962c54..1ba5607 100644 | |||
32 | LINK = $(LIBTOOL) --mode=link $(LINKCC) | 31 | LINK = $(LIBTOOL) --mode=link $(LINKCC) |
33 | # RANLIB = @RANLIB@ | 32 | # RANLIB = @RANLIB@ |
34 | RANLIB = : | 33 | RANLIB = : |
34 | -- | ||
35 | 2.25.1 | ||
36 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-testing-add-the-output-format-for-ptest.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0003-testing-add-the-output-format-for-ptest.patch index 09ca532a7..ab5449293 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-testing-add-the-output-format-for-ptest.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0003-testing-add-the-output-format-for-ptest.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 36a5656db7ea75dd15f35a6c1728937c6e2b901c Mon Sep 17 00:00:00 2001 | 1 | From 2a1a2b58af09c6c03026474f1fd0db7d36e977c7 Mon Sep 17 00:00:00 2001 |
2 | From: Jackie Huang <jackie.huang@windriver.com> | 2 | From: Jackie Huang <jackie.huang@windriver.com> |
3 | Date: Wed, 14 Jan 2015 15:10:06 +0800 | 3 | Date: Wed, 14 Jan 2015 15:10:06 +0800 |
4 | Subject: [PATCH] testing: add the output format for ptest | 4 | Subject: [PATCH] testing: add the output format for ptest |
@@ -6,7 +6,6 @@ Subject: [PATCH] testing: add the output format for ptest | |||
6 | Upstream-Status: Inappropriate [OE specific] | 6 | Upstream-Status: Inappropriate [OE specific] |
7 | 7 | ||
8 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 8 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
9 | |||
10 | --- | 9 | --- |
11 | testing/RUNTESTS | 4 ++++ | 10 | testing/RUNTESTS | 4 ++++ |
12 | 1 file changed, 4 insertions(+) | 11 | 1 file changed, 4 insertions(+) |
@@ -33,3 +32,6 @@ index 6715831..a2b6fb8 100755 | |||
33 | done | 32 | done |
34 | 33 | ||
35 | if [ -f failed_tests ]; then | 34 | if [ -f failed_tests ]; then |
35 | -- | ||
36 | 2.25.1 | ||
37 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-config_os_headers-Error-Fix.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0004-config_os_headers-Error-Fix.patch index 5aea52788..e2269bc3e 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-config_os_headers-Error-Fix.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0004-config_os_headers-Error-Fix.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From e86d5fd52f19b85da0b7cce660c6e65ec4c0f9bb Mon Sep 17 00:00:00 2001 | 1 | From b1c941c20577578aa5ff3450d9d8d7a23c55d14a Mon Sep 17 00:00:00 2001 |
2 | From: Li xin <lixin.fnst@cn.fujitsu.com> | 2 | From: Li xin <lixin.fnst@cn.fujitsu.com> |
3 | Date: Fri, 21 Aug 2015 18:23:13 +0900 | 3 | Date: Fri, 21 Aug 2015 18:23:13 +0900 |
4 | Subject: [PATCH] config_os_headers: Error Fix | 4 | Subject: [PATCH] config_os_headers: Error Fix |
@@ -13,13 +13,12 @@ conftest.c:168:17: fatal error: pkg.h: No such file or directory | |||
13 | Upstream-Status: Pending | 13 | Upstream-Status: Pending |
14 | 14 | ||
15 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> | 15 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> |
16 | |||
17 | --- | 16 | --- |
18 | configure.d/config_os_headers | 4 ++-- | 17 | configure.d/config_os_headers | 4 ++-- |
19 | 1 file changed, 2 insertions(+), 2 deletions(-) | 18 | 1 file changed, 2 insertions(+), 2 deletions(-) |
20 | 19 | ||
21 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers | 20 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers |
22 | index 01c3376..6edd85f 100644 | 21 | index c0688f8..f68713c 100644 |
23 | --- a/configure.d/config_os_headers | 22 | --- a/configure.d/config_os_headers |
24 | +++ b/configure.d/config_os_headers | 23 | +++ b/configure.d/config_os_headers |
25 | @@ -395,8 +395,8 @@ then | 24 | @@ -395,8 +395,8 @@ then |
@@ -33,3 +32,6 @@ index 01c3376..6edd85f 100644 | |||
33 | AC_CHECK_HEADERS(pkg.h, | 32 | AC_CHECK_HEADERS(pkg.h, |
34 | NETSNMP_SEARCH_LIBS(pkg_init, pkg, | 33 | NETSNMP_SEARCH_LIBS(pkg_init, pkg, |
35 | AC_DEFINE(HAVE_LIBPKG, 1, [define if you have BSD pkg-ng]))) | 34 | AC_DEFINE(HAVE_LIBPKG, 1, [define if you have BSD pkg-ng]))) |
35 | -- | ||
36 | 2.25.1 | ||
37 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0005-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch index 6450c1cc9..7a6b35460 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0005-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch | |||
@@ -1,25 +1,23 @@ | |||
1 | From f4e1acd4f509dd26cf88da872bd5adcf884f4a5f Mon Sep 17 00:00:00 2001 | 1 | From c790411f9aa82064fea9bbf23b499fb6b7f22c4f Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 18 Sep 2015 00:28:45 -0400 | 3 | Date: Fri, 18 Sep 2015 00:28:45 -0400 |
4 | Subject: [PATCH] snmplib/keytools.c: Don't check for return from | 4 | Subject: [PATCH] snmplib/keytools.c: Don't check for return from |
5 | |||
6 | EVP_MD_CTX_init() | 5 | EVP_MD_CTX_init() |
7 | 6 | ||
8 | EVP_MD_CTX_init() API returns void, it fixes errors with new compilers | 7 | EVP_MD_CTX_init() API returns void, it fixes errors with new compilers |
9 | 8 | ||
10 | snmplib/keytools.c: In function 'generate_Ku': error: invalid use of void expression | 9 | snmplib/keytools.c: In function 'generate_Ku': error: invalid use of void expression |
11 | 10 | ||
11 | Upstream-Status: Pending | ||
12 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
13 | Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> | 14 | Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> |
14 | |||
15 | --- | 15 | --- |
16 | Upstream-Status: Pending | ||
17 | |||
18 | snmplib/keytools.c | 5 +---- | 16 | snmplib/keytools.c | 5 +---- |
19 | 1 file changed, 1 insertion(+), 4 deletions(-) | 17 | 1 file changed, 1 insertion(+), 4 deletions(-) |
20 | 18 | ||
21 | diff --git a/snmplib/keytools.c b/snmplib/keytools.c | 19 | diff --git a/snmplib/keytools.c b/snmplib/keytools.c |
22 | index 14a452a..fb1694b 100644 | 20 | index 388e655..5a66898 100644 |
23 | --- a/snmplib/keytools.c | 21 | --- a/snmplib/keytools.c |
24 | +++ b/snmplib/keytools.c | 22 | +++ b/snmplib/keytools.c |
25 | @@ -183,10 +183,7 @@ generate_Ku(const oid * hashtype, u_int hashtype_len, | 23 | @@ -183,10 +183,7 @@ generate_Ku(const oid * hashtype, u_int hashtype_len, |
@@ -34,3 +32,6 @@ index 14a452a..fb1694b 100644 | |||
34 | #endif | 32 | #endif |
35 | if (!EVP_DigestInit(ctx, hashfn)) { | 33 | if (!EVP_DigestInit(ctx, hashfn)) { |
36 | rval = SNMPERR_GENERR; | 34 | rval = SNMPERR_GENERR; |
35 | -- | ||
36 | 2.25.1 | ||
37 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-get_pid_from_inode-Include-limit.h.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0006-get_pid_from_inode-Include-limit.h.patch index a7881a871..6a0161ae2 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-get_pid_from_inode-Include-limit.h.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0006-get_pid_from_inode-Include-limit.h.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 8097734b27fd146f358a4edd0d1a0d28309bd9a4 Mon Sep 17 00:00:00 2001 | 1 | From 95868615a04b4a6f0dd5997c9726422828426116 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 22 Jul 2016 18:34:39 +0000 | 3 | Date: Fri, 22 Jul 2016 18:34:39 +0000 |
4 | Subject: [PATCH] get_pid_from_inode: Include limit.h | 4 | Subject: [PATCH] get_pid_from_inode: Include limit.h |
@@ -8,7 +8,6 @@ PATH_MAX and NAME_MAX are required by this file | |||
8 | Upstream-Status: Pending | 8 | Upstream-Status: Pending |
9 | 9 | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
11 | |||
12 | --- | 11 | --- |
13 | agent/mibgroup/util_funcs/get_pid_from_inode.c | 1 + | 12 | agent/mibgroup/util_funcs/get_pid_from_inode.c | 1 + |
14 | 1 file changed, 1 insertion(+) | 13 | 1 file changed, 1 insertion(+) |
@@ -25,3 +24,6 @@ index 5788e1d..ea380a6 100644 | |||
25 | #include <stdio.h> | 24 | #include <stdio.h> |
26 | #ifdef HAVE_STDLIB_H | 25 | #ifdef HAVE_STDLIB_H |
27 | #include <stdlib.h> | 26 | #include <stdlib.h> |
27 | -- | ||
28 | 2.25.1 | ||
29 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0004-configure-fix-incorrect-variable.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0007-configure-fix-incorrect-variable.patch index 6e224188a..5d394eec1 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/0004-configure-fix-incorrect-variable.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0007-configure-fix-incorrect-variable.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 6d655ba677563ac9d62d4d8eee59fdb39d486c02 Mon Sep 17 00:00:00 2001 | 1 | From 385fa343cf178ccfe2c9a9fd7795d0db3c959fdd Mon Sep 17 00:00:00 2001 |
2 | From: Wenlin Kang <wenlin.kang@windriver.com> | 2 | From: Wenlin Kang <wenlin.kang@windriver.com> |
3 | Date: Wed, 24 May 2017 17:10:20 +0800 | 3 | Date: Wed, 24 May 2017 17:10:20 +0800 |
4 | Subject: [PATCH] configure: fix incorrect variable | 4 | Subject: [PATCH] configure: fix incorrect variable |
@@ -8,13 +8,12 @@ For cross compile platform, this variable will not be correct, so fix it. | |||
8 | Upstream-Status: Inappropriate [cross compile specific] | 8 | Upstream-Status: Inappropriate [cross compile specific] |
9 | 9 | ||
10 | Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com> | 10 | Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com> |
11 | |||
12 | --- | 11 | --- |
13 | Makefile.in | 2 +- | 12 | Makefile.in | 2 +- |
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
15 | 14 | ||
16 | diff --git a/Makefile.in b/Makefile.in | 15 | diff --git a/Makefile.in b/Makefile.in |
17 | index f1cbbf5..1545be3 100644 | 16 | index 1c1182e..f947b8c 100644 |
18 | --- a/Makefile.in | 17 | --- a/Makefile.in |
19 | +++ b/Makefile.in | 18 | +++ b/Makefile.in |
20 | @@ -173,7 +173,7 @@ OTHERCLEANTODOS=perlclean @PYTHONCLEANTARGS@ cleanfeatures perlcleanfeatures pyt | 19 | @@ -173,7 +173,7 @@ OTHERCLEANTODOS=perlclean @PYTHONCLEANTARGS@ cleanfeatures perlcleanfeatures pyt |
@@ -26,3 +25,6 @@ index f1cbbf5..1545be3 100644 | |||
26 | if test $$? != 0 ; then \ | 25 | if test $$? != 0 ; then \ |
27 | exit 1 ; \ | 26 | exit 1 ; \ |
28 | fi | 27 | fi |
28 | -- | ||
29 | 2.25.1 | ||
30 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-5.7.2-fix-engineBoots-value-on-SIGHUP.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0008-net-snmp-fix-engineBoots-value-on-SIGHUP.patch index 35e93d636..a57c4c8f1 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-5.7.2-fix-engineBoots-value-on-SIGHUP.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0008-net-snmp-fix-engineBoots-value-on-SIGHUP.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 5ad4eab43c1ea63ff343bba64d576440e8783e75 Mon Sep 17 00:00:00 2001 | 1 | From b5cbe0953a7e7a3c77c7ec69dfe81254475f08c0 Mon Sep 17 00:00:00 2001 |
2 | From: Zheng Ruoqin <zhengrq.fnst@fujitsu.com> | 2 | From: Zheng Ruoqin <zhengrq.fnst@fujitsu.com> |
3 | Date: Wed, 9 Jun 2021 15:47:30 +0900 | 3 | Date: Wed, 9 Jun 2021 15:47:30 +0900 |
4 | Subject: [PATCH] net snmp: fix engineBoots value on SIGHUP | 4 | Subject: [PATCH] net snmp: fix engineBoots value on SIGHUP |
@@ -8,14 +8,13 @@ Upstream-Status: Pending | |||
8 | Signed-off-by: Marian Florea <marian.florea@windriver.com> | 8 | Signed-off-by: Marian Florea <marian.florea@windriver.com> |
9 | Signed-off-by: Li Zhou <li.zhou@windriver.com> | 9 | Signed-off-by: Li Zhou <li.zhou@windriver.com> |
10 | Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> | 10 | Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> |
11 | |||
12 | --- | 11 | --- |
13 | agent/snmpd.c | 1 + | 12 | agent/snmpd.c | 1 + |
14 | snmplib/snmpv3.c | 4 ++-- | 13 | snmplib/snmpv3.c | 4 ++-- |
15 | 2 files changed, 3 insertions(+), 2 deletions(-) | 14 | 2 files changed, 3 insertions(+), 2 deletions(-) |
16 | 15 | ||
17 | diff --git a/agent/snmpd.c b/agent/snmpd.c | 16 | diff --git a/agent/snmpd.c b/agent/snmpd.c |
18 | index 90de12d..1ccc4db 100644 | 17 | index fe31c87..d9f68dd 100644 |
19 | --- a/agent/snmpd.c | 18 | --- a/agent/snmpd.c |
20 | +++ b/agent/snmpd.c | 19 | +++ b/agent/snmpd.c |
21 | @@ -1169,6 +1169,7 @@ snmpd_reconfig(void) | 20 | @@ -1169,6 +1169,7 @@ snmpd_reconfig(void) |
@@ -27,10 +26,10 @@ index 90de12d..1ccc4db 100644 | |||
27 | #ifdef HAVE_SIGPROCMASK | 26 | #ifdef HAVE_SIGPROCMASK |
28 | ret = sigprocmask(SIG_UNBLOCK, &set, NULL); | 27 | ret = sigprocmask(SIG_UNBLOCK, &set, NULL); |
29 | diff --git a/snmplib/snmpv3.c b/snmplib/snmpv3.c | 28 | diff --git a/snmplib/snmpv3.c b/snmplib/snmpv3.c |
30 | index 7b1746b..4a17e0d 100644 | 29 | index be9256f..d17d2e3 100644 |
31 | --- a/snmplib/snmpv3.c | 30 | --- a/snmplib/snmpv3.c |
32 | +++ b/snmplib/snmpv3.c | 31 | +++ b/snmplib/snmpv3.c |
33 | @@ -1059,9 +1059,9 @@ init_snmpv3_post_config(int majorid, int minorid, void *serverarg, | 32 | @@ -1071,9 +1071,9 @@ init_snmpv3_post_config(int majorid, int minorid, void *serverarg, |
34 | /* | 33 | /* |
35 | * if our engineID has changed at all, the boots record must be set to 1 | 34 | * if our engineID has changed at all, the boots record must be set to 1 |
36 | */ | 35 | */ |
@@ -42,3 +41,6 @@ index 7b1746b..4a17e0d 100644 | |||
42 | engineBoots = 1; | 41 | engineBoots = 1; |
43 | } | 42 | } |
44 | 43 | ||
44 | -- | ||
45 | 2.25.1 | ||
46 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-fix-for-disable-des.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0009-net-snmp-fix-for-disable-des.patch index c382c02d8..36a676fb0 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-fix-for-disable-des.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0009-net-snmp-fix-for-disable-des.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From b1b9980853b1083f0c8b9f628f8b4c3a484d4f91 Mon Sep 17 00:00:00 2001 | 1 | From aa1f157c675da248ed186e020d17cb2528d0be12 Mon Sep 17 00:00:00 2001 |
2 | From: Jackie Huang <jackie.huang@windriver.com> | 2 | From: Jackie Huang <jackie.huang@windriver.com> |
3 | Date: Thu, 22 Jun 2017 10:25:08 +0800 | 3 | Date: Thu, 22 Jun 2017 10:25:08 +0800 |
4 | Subject: [PATCH] net-snmp: fix for --disable-des | 4 | Subject: [PATCH] net-snmp: fix for --disable-des |
@@ -9,16 +9,15 @@ the --disable-des works correctly. | |||
9 | Upstream-Status: Submitted [net-snmp-coders@lists.sourceforge.net] | 9 | Upstream-Status: Submitted [net-snmp-coders@lists.sourceforge.net] |
10 | 10 | ||
11 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 11 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
12 | |||
13 | --- | 12 | --- |
14 | snmplib/scapi.c | 2 ++ | 13 | snmplib/scapi.c | 2 ++ |
15 | 1 file changed, 2 insertions(+) | 14 | 1 file changed, 2 insertions(+) |
16 | 15 | ||
17 | diff --git a/snmplib/scapi.c b/snmplib/scapi.c | 16 | diff --git a/snmplib/scapi.c b/snmplib/scapi.c |
18 | index 54fdd5c..0f7e931 100644 | 17 | index ac77004..7545bfa 100644 |
19 | --- a/snmplib/scapi.c | 18 | --- a/snmplib/scapi.c |
20 | +++ b/snmplib/scapi.c | 19 | +++ b/snmplib/scapi.c |
21 | @@ -85,7 +85,9 @@ netsnmp_feature_child_of(usm_scapi, usm_support); | 20 | @@ -86,7 +86,9 @@ netsnmp_feature_child_of(usm_scapi, usm_support); |
22 | #include <openssl/hmac.h> | 21 | #include <openssl/hmac.h> |
23 | #include <openssl/evp.h> | 22 | #include <openssl/evp.h> |
24 | #include <openssl/rand.h> | 23 | #include <openssl/rand.h> |
@@ -28,3 +27,6 @@ index 54fdd5c..0f7e931 100644 | |||
28 | #ifdef HAVE_AES | 27 | #ifdef HAVE_AES |
29 | #include <openssl/aes.h> | 28 | #include <openssl/aes.h> |
30 | #endif | 29 | #endif |
30 | -- | ||
31 | 2.25.1 | ||
32 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/reproducibility-have-printcap.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0010-net-snmp-Reproducibility-Don-t-check-build-host-for.patch index 5fbb411a5..246ce2b8d 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/reproducibility-have-printcap.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0010-net-snmp-Reproducibility-Don-t-check-build-host-for.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From b923cd38e2503b86aedf66b767fd7f51c9f25645 Mon Sep 17 00:00:00 2001 | 1 | From a96140995d10660046146d9fa75faa5f7faabab0 Mon Sep 17 00:00:00 2001 |
2 | From: "douglas.royds" <douglas.royds@taitradio.com> | 2 | From: "douglas.royds" <douglas.royds@taitradio.com> |
3 | Date: Wed, 21 Nov 2018 13:52:18 +1300 | 3 | Date: Wed, 21 Nov 2018 13:52:18 +1300 |
4 | Subject: [PATCH] net-snmp: Reproducibility: Don't check build host for | 4 | Subject: [PATCH] net-snmp: Reproducibility: Don't check build host for |
@@ -8,14 +8,13 @@ cross-compiling. Use AC_CHECK_FILE to set the cached variable | |||
8 | ac_cv_file__etc_printcap instead. When cross-compiling, this variable should be | 8 | ac_cv_file__etc_printcap instead. When cross-compiling, this variable should be |
9 | set in the environment to "yes" or "no" as appropriate for the target platform. | 9 | set in the environment to "yes" or "no" as appropriate for the target platform. |
10 | 10 | ||
11 | --- | ||
12 | Upstream-Status: Pending | 11 | Upstream-Status: Pending |
13 | 12 | --- | |
14 | configure.d/config_os_misc4 | 4 ++-- | 13 | configure.d/config_os_misc4 | 4 ++-- |
15 | 1 file changed, 2 insertions(+), 2 deletions(-) | 14 | 1 file changed, 2 insertions(+), 2 deletions(-) |
16 | 15 | ||
17 | diff --git a/configure.d/config_os_misc4 b/configure.d/config_os_misc4 | 16 | diff --git a/configure.d/config_os_misc4 b/configure.d/config_os_misc4 |
18 | index b6864d9..07ca922 100644 | 17 | index 4c445d6..099257f 100644 |
19 | --- a/configure.d/config_os_misc4 | 18 | --- a/configure.d/config_os_misc4 |
20 | +++ b/configure.d/config_os_misc4 | 19 | +++ b/configure.d/config_os_misc4 |
21 | @@ -99,9 +99,9 @@ if test x$LPSTAT_PATH != x; then | 20 | @@ -99,9 +99,9 @@ if test x$LPSTAT_PATH != x; then |
@@ -30,3 +29,6 @@ index b6864d9..07ca922 100644 | |||
30 | 29 | ||
31 | 30 | ||
32 | # Check ps args | 31 | # Check ps args |
32 | -- | ||
33 | 2.25.1 | ||
34 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-ac_add_search_path.m4-keep-consistent-between-32bit.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0011-ac_add_search_path.m4-keep-consistent-between-32bit-.patch index 0eeddf752..1e845c4e6 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-ac_add_search_path.m4-keep-consistent-between-32bit.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0011-ac_add_search_path.m4-keep-consistent-between-32bit-.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 98c62e24fdd05d7e8bd8149840bad8eb0feb3fb1 Mon Sep 17 00:00:00 2001 | 1 | From 85a6c5017a2cd18a5a66afcb3f6a02276c101ad0 Mon Sep 17 00:00:00 2001 |
2 | From: Mingli Yu <mingli.yu@windriver.com> | 2 | From: Mingli Yu <mingli.yu@windriver.com> |
3 | Date: Fri, 29 Jan 2021 08:49:15 +0000 | 3 | Date: Fri, 29 Jan 2021 08:49:15 +0000 |
4 | Subject: [PATCH] ac_add_search_path.m4: keep consistent between 32bit and | 4 | Subject: [PATCH] ac_add_search_path.m4: keep consistent between 32bit and |
@@ -16,7 +16,6 @@ So add the patch to fix the gap between 32bit and 64bit system. | |||
16 | Upstream-Status: Inappropriate [configuration specific] | 16 | Upstream-Status: Inappropriate [configuration specific] |
17 | 17 | ||
18 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | 18 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
19 | |||
20 | --- | 19 | --- |
21 | m4/ac_add_search_path.m4 | 4 ++-- | 20 | m4/ac_add_search_path.m4 | 4 ++-- |
22 | 1 file changed, 2 insertions(+), 2 deletions(-) | 21 | 1 file changed, 2 insertions(+), 2 deletions(-) |
@@ -36,3 +35,6 @@ index 8e0a819..e9585bc 100644 | |||
36 | fi | 35 | fi |
37 | if test -d $1/include; then | 36 | if test -d $1/include; then |
38 | CPPFLAGS="-I$1/include $CPPFLAGS" | 37 | CPPFLAGS="-I$1/include $CPPFLAGS" |
38 | -- | ||
39 | 2.25.1 | ||
40 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0012-Fix-configuration-of-NETSNMP_FD_MASK_TYPE.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0012-Fix-configuration-of-NETSNMP_FD_MASK_TYPE.patch new file mode 100644 index 000000000..9d4b76993 --- /dev/null +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0012-Fix-configuration-of-NETSNMP_FD_MASK_TYPE.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 21ea0b9ce5cc9445f7ffd7a9020b816681e16284 Mon Sep 17 00:00:00 2001 | ||
2 | From: Adam Gajda <adgajda@users.noreply.github.com> | ||
3 | Date: Mon, 2 Oct 2023 16:40:31 +0200 | ||
4 | Subject: [PATCH] Fix configuration of NETSNMP_FD_MASK_TYPE | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | [https://github.com/net-snmp/net-snmp/commit/af1b7f77975bbb2fcbdb3f005f8cb010d1d33cd3] | ||
8 | |||
9 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
10 | --- | ||
11 | configure | 2 +- | ||
12 | configure.d/config_project_types | 2 +- | ||
13 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/configure b/configure | ||
16 | index 907d441..f4468c6 100755 | ||
17 | --- a/configure | ||
18 | +++ b/configure | ||
19 | @@ -31638,7 +31638,7 @@ CFLAGS="$CFLAGS -Werror" | ||
20 | |||
21 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the type of fd_set::fds_bits" >&5 | ||
22 | printf %s "checking for the type of fd_set::fds_bits... " >&6; } | ||
23 | -for type in __fd_mask __int32_t unknown; do | ||
24 | +for type in __fd_mask __int32_t long\ int unknown; do | ||
25 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26 | /* end confdefs.h. */ | ||
27 | |||
28 | diff --git a/configure.d/config_project_types b/configure.d/config_project_types | ||
29 | index 1b4c66b..a78e8eb 100644 | ||
30 | --- a/configure.d/config_project_types | ||
31 | +++ b/configure.d/config_project_types | ||
32 | @@ -66,7 +66,7 @@ netsnmp_save_CFLAGS=$CFLAGS | ||
33 | CFLAGS="$CFLAGS -Werror" | ||
34 | |||
35 | AC_MSG_CHECKING([for the type of fd_set::fds_bits]) | ||
36 | -for type in __fd_mask __int32_t unknown; do | ||
37 | +for type in __fd_mask __int32_t long\ int unknown; do | ||
38 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ | ||
39 | #include <sys/select.h> | ||
40 | #include <stddef.h> | ||
41 | -- | ||
42 | 2.25.1 | ||
43 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/CVE-2022-44792-CVE-2022-44793.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/CVE-2022-44792-CVE-2022-44793.patch deleted file mode 100644 index b18d4dc29..000000000 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/CVE-2022-44792-CVE-2022-44793.patch +++ /dev/null | |||
@@ -1,121 +0,0 @@ | |||
1 | From d13302656d9ff0807c5defe18623adc947f43a2b Mon Sep 17 00:00:00 2001 | ||
2 | From: Narpat Mali <narpat.mali@windriver.com> | ||
3 | Date: Wed, 8 Feb 2023 13:15:39 +0000 | ||
4 | Subject: [PATCH] agent: Disallow SET requests with any NULL varbind Merge pull | ||
5 | request #490 from fenner/set-null | ||
6 | |||
7 | fixes: #474 and #475 | ||
8 | |||
9 | CVE: CVE-2022-44792, CVE-2022-44793 | ||
10 | |||
11 | Upstream-Status: Backport [https://github.com/net-snmp/net-snmp/commit/be804106fd0771a7d05236cff36e199af077af57] | ||
12 | |||
13 | Signed-off-by: Narpat Mali <narpat.mali@windriver.com> | ||
14 | --- | ||
15 | agent/snmp_agent.c | 32 +++++++++++++++++++ | ||
16 | apps/snmpset.c | 1 + | ||
17 | .../default/T0142snmpv2csetnull_simple | 31 ++++++++++++++++++ | ||
18 | 3 files changed, 64 insertions(+) | ||
19 | create mode 100644 testing/fulltests/default/T0142snmpv2csetnull_simple | ||
20 | |||
21 | diff --git a/agent/snmp_agent.c b/agent/snmp_agent.c | ||
22 | index 867d0c1..3f678fe 100644 | ||
23 | --- a/agent/snmp_agent.c | ||
24 | +++ b/agent/snmp_agent.c | ||
25 | @@ -3719,12 +3719,44 @@ netsnmp_handle_request(netsnmp_agent_session *asp, int status) | ||
26 | return 1; | ||
27 | } | ||
28 | |||
29 | +static int | ||
30 | +check_set_pdu_for_null_varbind(netsnmp_agent_session *asp) | ||
31 | +{ | ||
32 | + int i; | ||
33 | + netsnmp_variable_list *v = NULL; | ||
34 | + | ||
35 | + for (i = 1, v = asp->pdu->variables; v != NULL; i++, v = v->next_variable) { | ||
36 | + if (v->type == ASN_NULL) { | ||
37 | + /* | ||
38 | + * Protect SET implementations that do not protect themselves | ||
39 | + * against wrong type. | ||
40 | + */ | ||
41 | + DEBUGMSGTL(("snmp_agent", "disallowing SET with NULL var for varbind %d\n", i)); | ||
42 | + asp->index = i; | ||
43 | + return SNMP_ERR_WRONGTYPE; | ||
44 | + } | ||
45 | + } | ||
46 | + return SNMP_ERR_NOERROR; | ||
47 | +} | ||
48 | + | ||
49 | int | ||
50 | handle_pdu(netsnmp_agent_session *asp) | ||
51 | { | ||
52 | int status, inclusives = 0; | ||
53 | netsnmp_variable_list *v = NULL; | ||
54 | |||
55 | +#ifndef NETSNMP_NO_WRITE_SUPPORT | ||
56 | + /* | ||
57 | + * Check for ASN_NULL in SET request | ||
58 | + */ | ||
59 | + if (asp->pdu->command == SNMP_MSG_SET) { | ||
60 | + status = check_set_pdu_for_null_varbind(asp); | ||
61 | + if (status != SNMP_ERR_NOERROR) { | ||
62 | + return status; | ||
63 | + } | ||
64 | + } | ||
65 | +#endif /* NETSNMP_NO_WRITE_SUPPORT */ | ||
66 | + | ||
67 | /* | ||
68 | * for illegal requests, mark all nodes as ASN_NULL | ||
69 | */ | ||
70 | diff --git a/apps/snmpset.c b/apps/snmpset.c | ||
71 | index 48e14bd..d542713 100644 | ||
72 | --- a/apps/snmpset.c | ||
73 | +++ b/apps/snmpset.c | ||
74 | @@ -182,6 +182,7 @@ main(int argc, char *argv[]) | ||
75 | case 'x': | ||
76 | case 'd': | ||
77 | case 'b': | ||
78 | + case 'n': /* undocumented */ | ||
79 | #ifdef NETSNMP_WITH_OPAQUE_SPECIAL_TYPES | ||
80 | case 'I': | ||
81 | case 'U': | ||
82 | diff --git a/testing/fulltests/default/T0142snmpv2csetnull_simple b/testing/fulltests/default/T0142snmpv2csetnull_simple | ||
83 | new file mode 100644 | ||
84 | index 0000000..0f1b8f3 | ||
85 | --- /dev/null | ||
86 | +++ b/testing/fulltests/default/T0142snmpv2csetnull_simple | ||
87 | @@ -0,0 +1,31 @@ | ||
88 | +#!/bin/sh | ||
89 | + | ||
90 | +. ../support/simple_eval_tools.sh | ||
91 | + | ||
92 | +HEADER SNMPv2c set of system.sysContact.0 with NULL varbind | ||
93 | + | ||
94 | +SKIPIF NETSNMP_DISABLE_SET_SUPPORT | ||
95 | +SKIPIF NETSNMP_NO_WRITE_SUPPORT | ||
96 | +SKIPIF NETSNMP_DISABLE_SNMPV2C | ||
97 | +SKIPIFNOT USING_MIBII_SYSTEM_MIB_MODULE | ||
98 | + | ||
99 | +# | ||
100 | +# Begin test | ||
101 | +# | ||
102 | + | ||
103 | +# standard V2C configuration: testcomunnity | ||
104 | +snmp_write_access='all' | ||
105 | +. ./Sv2cconfig | ||
106 | +STARTAGENT | ||
107 | + | ||
108 | +CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity -v 2c $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.4.0" | ||
109 | + | ||
110 | +CHECK ".1.3.6.1.2.1.1.4.0 = STRING:" | ||
111 | + | ||
112 | +CAPTURE "snmpset -On $SNMP_FLAGS -c testcommunity -v 2c $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.4.0 n x" | ||
113 | + | ||
114 | +CHECK "Reason: wrongType" | ||
115 | + | ||
116 | +STOPAGENT | ||
117 | + | ||
118 | +FINISHED | ||
119 | -- | ||
120 | 2.34.1 | ||
121 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/run-ptest b/meta-networking/recipes-protocols/net-snmp/net-snmp/run-ptest index 76514c202..76514c202 100755..100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/run-ptest +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/run-ptest | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb index 6f1c11417..5da06bb6d 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb | |||
@@ -14,22 +14,21 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \ | |||
14 | file://snmptrapd.conf \ | 14 | file://snmptrapd.conf \ |
15 | file://snmpd.service \ | 15 | file://snmpd.service \ |
16 | file://snmptrapd.service \ | 16 | file://snmptrapd.service \ |
17 | file://net-snmp-add-knob-whether-nlist.h-are-checked.patch \ | ||
18 | file://fix-libtool-finish.patch \ | ||
19 | file://net-snmp-testing-add-the-output-format-for-ptest.patch \ | ||
20 | file://run-ptest \ | 17 | file://run-ptest \ |
21 | file://0001-config_os_headers-Error-Fix.patch \ | 18 | file://0001-net-snmp-add-knob-whether-nlist.h-are-checked.patch \ |
22 | file://0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch \ | 19 | file://0002-net-snmp-fix-libtool-finish.patch \ |
23 | file://0001-get_pid_from_inode-Include-limit.h.patch \ | 20 | file://0003-testing-add-the-output-format-for-ptest.patch \ |
24 | file://0004-configure-fix-incorrect-variable.patch \ | 21 | file://0004-config_os_headers-Error-Fix.patch \ |
25 | file://net-snmp-5.7.2-fix-engineBoots-value-on-SIGHUP.patch \ | 22 | file://0005-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch \ |
26 | file://net-snmp-fix-for-disable-des.patch \ | 23 | file://0006-get_pid_from_inode-Include-limit.h.patch \ |
27 | file://reproducibility-have-printcap.patch \ | 24 | file://0007-configure-fix-incorrect-variable.patch \ |
28 | file://0001-ac_add_search_path.m4-keep-consistent-between-32bit.patch \ | 25 | file://0008-net-snmp-fix-engineBoots-value-on-SIGHUP.patch \ |
29 | file://0001-Add-noreturn-attribute-to-netsnmp_pci_error.patch \ | 26 | file://0009-net-snmp-fix-for-disable-des.patch \ |
30 | file://CVE-2022-44792-CVE-2022-44793.patch \ | 27 | file://0010-net-snmp-Reproducibility-Don-t-check-build-host-for.patch \ |
31 | " | 28 | file://0011-ac_add_search_path.m4-keep-consistent-between-32bit-.patch \ |
32 | SRC_URI[sha256sum] = "2097f29b7e1bf3f1300b4bae52fa2308d0bb8d5d3998dbe02f9462a413a2ef0a" | 29 | file://0012-Fix-configuration-of-NETSNMP_FD_MASK_TYPE.patch \ |
30 | " | ||
31 | SRC_URI[sha256sum] = "8b4de01391e74e3c7014beb43961a2d6d6fa03acc34280b9585f4930745b0544" | ||
33 | 32 | ||
34 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/net-snmp/files/net-snmp/" | 33 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/net-snmp/files/net-snmp/" |
35 | UPSTREAM_CHECK_REGEX = "/net-snmp/(?P<pver>\d+(\.\d+)+)/" | 34 | UPSTREAM_CHECK_REGEX = "/net-snmp/(?P<pver>\d+(\.\d+)+)/" |
@@ -152,6 +151,8 @@ do_install:append() { | |||
152 | -e "s@^NSC_LDFLAGS=\"-L.* @NSC_LDFLAGS=\"-L\$\{libdir\} @g" \ | 151 | -e "s@^NSC_LDFLAGS=\"-L.* @NSC_LDFLAGS=\"-L\$\{libdir\} @g" \ |
153 | -i ${D}${bindir}/net-snmp-config | 152 | -i ${D}${bindir}/net-snmp-config |
154 | 153 | ||
154 | sed -i -e 's:${HOSTTOOLS_DIR}/::g' ${D}${bindir}/net-snmp-create-v3-user | ||
155 | |||
155 | oe_multilib_header net-snmp/net-snmp-config.h | 156 | oe_multilib_header net-snmp/net-snmp-config.h |
156 | 157 | ||
157 | if [ "${HAS_PERL}" = "1" ]; then | 158 | if [ "${HAS_PERL}" = "1" ]; then |