diff options
16 files changed, 56 insertions, 416 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-Add-pkg-config-support-for-building-applications-and.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-Add-pkg-config-support-for-building-applications-and.patch deleted file mode 100644 index dd159b9cec..0000000000 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-Add-pkg-config-support-for-building-applications-and.patch +++ /dev/null | |||
@@ -1,168 +0,0 @@ | |||
1 | From 4bf83597379523032663c8e95b3786a217c9a849 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hugh McMaster <hugh.mcmaster@outlook.com> | ||
3 | Date: Wed, 3 Apr 2019 21:36:03 +1100 | ||
4 | Subject: [PATCH] Add pkg-config support for building applications and | ||
5 | sub-agents | ||
6 | |||
7 | The netsnmp package should be used when building Net-SNMP applications. | ||
8 | The netsnmp-agent package should be used when building Net-SNMP subagents. | ||
9 | |||
10 | Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> | ||
11 | [ bvanassche: edited makefile code and .pc files; added ./configure changes ] | ||
12 | |||
13 | Upstream-Status: Backport | ||
14 | https://sourceforge.net/p/net-snmp/patches/_discuss/thread/a0d66e91dd/f940/attachment/0001-Add-pkg-config-support-for-building-applications-and.patch | ||
15 | --- | ||
16 | Makefile.in | 2 ++ | ||
17 | Makefile.rules | 30 ++++++++++++++++++++++++++---- | ||
18 | configure | 4 ++++ | ||
19 | configure.ac | 1 + | ||
20 | netsnmp-agent.pc.in | 12 ++++++++++++ | ||
21 | netsnmp.pc.in | 12 ++++++++++++ | ||
22 | 6 files changed, 57 insertions(+), 4 deletions(-) | ||
23 | create mode 100644 netsnmp-agent.pc.in | ||
24 | create mode 100644 netsnmp.pc.in | ||
25 | |||
26 | diff --git a/Makefile.in b/Makefile.in | ||
27 | index 9dbdde1353..ec972636c2 100644 | ||
28 | --- a/Makefile.in | ||
29 | +++ b/Makefile.in | ||
30 | @@ -35,6 +35,7 @@ INSTALLBUILTHEADERS=include/net-snmp/net-snmp-config.h | ||
31 | INSTALLBUILTINCLUDEHEADERS=@FEATUREHEADERS@ | ||
32 | INSTALLBINSCRIPTS=net-snmp-config net-snmp-create-v3-user | ||
33 | INSTALLUCDHEADERS=ucd-snmp-config.h version.h mib_module_config.h | ||
34 | +INSTALL_PKGCONFIG=netsnmp.pc netsnmp-agent.pc | ||
35 | |||
36 | # | ||
37 | # other install rules. | ||
38 | @@ -275,6 +276,7 @@ configclean: makefileclean | ||
39 | libtool include/net-snmp/net-snmp-config.h \ | ||
40 | net-snmp-config net-snmp-config-x configure-summary \ | ||
41 | net-snmp-create-v3-user net-snmp-create-v3-user-x | ||
42 | + rm -f *.pc | ||
43 | rm -f mibs/.index | ||
44 | rm -f include/net-snmp/agent/mib_module_config.h \ | ||
45 | include/net-snmp/agent/agent_module_config.h \ | ||
46 | diff --git a/Makefile.rules b/Makefile.rules | ||
47 | index 9e9e9009e5..e714f91e72 100644 | ||
48 | --- a/Makefile.rules | ||
49 | +++ b/Makefile.rules | ||
50 | @@ -85,12 +85,14 @@ subdirs: | ||
51 | # installlibs handles local, ucd and subdir libs. need to do subdir libs | ||
52 | # before bins, sinze those libs may be needed for successful linking | ||
53 | install: installlocalheaders @installucdheaders@ \ | ||
54 | - installlibs \ | ||
55 | - installlocalbin installlocalsbin \ | ||
56 | + installlibs install_pkgconfig \ | ||
57 | + installlocalbin installlocalsbin \ | ||
58 | installsubdirs $(OTHERINSTALL) | ||
59 | |||
60 | -uninstall: uninstalllibs uninstallbin uninstallsbin uninstallheaders \ | ||
61 | - uninstallsubdirs $(OTHERUNINSTALL) | ||
62 | +uninstall: uninstalllibs uninstall_pkgconfig \ | ||
63 | + uninstallbin uninstallsbin \ | ||
64 | + uninstallheaders \ | ||
65 | + uninstallsubdirs $(OTHERUNINSTALL) | ||
66 | |||
67 | installprogs: installbin installsbin | ||
68 | |||
69 | @@ -287,6 +289,26 @@ uninstalllibs: | ||
70 | done \ | ||
71 | fi | ||
72 | |||
73 | +# | ||
74 | +# pkg-config files | ||
75 | +# | ||
76 | +install_pkgconfig: $(INSTALL_PKGCONFIG) | ||
77 | + @if test "x$(INSTALL_PKGCONFIG)" != x; then \ | ||
78 | + $(SHELL) $(top_srcdir)/mkinstalldirs $(INSTALL_PREFIX)$(libdir)/pkgconfig; \ | ||
79 | + for i in $(INSTALL_PKGCONFIG); do \ | ||
80 | + echo "installing $$i in $(INSTALL_PREFIX)$(libdir)/pkgconfig"; \ | ||
81 | + done; \ | ||
82 | + $(INSTALL) $(INSTALL_PKGCONFIG) $(INSTALL_PREFIX)$(libdir)/pkgconfig; \ | ||
83 | + fi | ||
84 | + | ||
85 | +uninstall_pkgconfig: | ||
86 | + @if test "x$(INSTALL_PKGCONFIG)" != x; then \ | ||
87 | + for i in $(INSTALL_PKGCONFIG); do \ | ||
88 | + echo "removing $$i from $(INSTALL_PREFIX)$(libdir)/pkgconfig"; \ | ||
89 | + $(UNINSTALL) $(INSTALL_PREFIX)$(libdir)/pkgconfig/$$i;\ | ||
90 | + done; \ | ||
91 | + fi | ||
92 | + | ||
93 | # | ||
94 | # normal bin binaries | ||
95 | # | ||
96 | diff --git a/configure b/configure | ||
97 | index cad6b74486..8909bffe05 100755 | ||
98 | --- a/configure | ||
99 | +++ b/configure | ||
100 | @@ -31717,6 +31717,8 @@ ac_config_files="$ac_config_files net-snmp-config:net-snmp-config.in" | ||
101 | |||
102 | ac_config_files="$ac_config_files net-snmp-create-v3-user:net-snmp-create-v3-user.in" | ||
103 | |||
104 | +ac_config_files="$ac_config_files netsnmp.pc:netsnmp.pc.in netsnmp-agent.pc:netsnmp-agent.pc.in" | ||
105 | + | ||
106 | ac_config_files="$ac_config_files dist/generation-scripts/gen-variables:dist/generation-scripts/gen-variables.in" | ||
107 | |||
108 | ac_config_files="$ac_config_files local/snmpconf" | ||
109 | @@ -32740,6 +32742,8 @@ do | ||
110 | "mibs/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/Makefile:Makefile.top:mibs/Makefile.in:Makefile.rules" ;; | ||
111 | "net-snmp-config") CONFIG_FILES="$CONFIG_FILES net-snmp-config:net-snmp-config.in" ;; | ||
112 | "net-snmp-create-v3-user") CONFIG_FILES="$CONFIG_FILES net-snmp-create-v3-user:net-snmp-create-v3-user.in" ;; | ||
113 | + "netsnmp.pc") CONFIG_FILES="$CONFIG_FILES netsnmp.pc:netsnmp.pc.in" ;; | ||
114 | + "netsnmp-agent.pc") CONFIG_FILES="$CONFIG_FILES netsnmp-agent.pc:netsnmp-agent.pc.in" ;; | ||
115 | "dist/generation-scripts/gen-variables") CONFIG_FILES="$CONFIG_FILES dist/generation-scripts/gen-variables:dist/generation-scripts/gen-variables.in" ;; | ||
116 | "local/snmpconf") CONFIG_FILES="$CONFIG_FILES local/snmpconf" ;; | ||
117 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | ||
118 | diff --git a/configure.ac b/configure.ac | ||
119 | index 1622b7c051..898b50f368 100644 | ||
120 | --- a/configure.ac | ||
121 | +++ b/configure.ac | ||
122 | @@ -118,6 +118,7 @@ AC_CONFIG_FILES([net-snmp-config:net-snmp-config.in], | ||
123 | [chmod +x net-snmp-config]) | ||
124 | AC_CONFIG_FILES([net-snmp-create-v3-user:net-snmp-create-v3-user.in], | ||
125 | [chmod +x net-snmp-create-v3-user]) | ||
126 | +AC_CONFIG_FILES([netsnmp.pc:netsnmp.pc.in netsnmp-agent.pc:netsnmp-agent.pc.in]) | ||
127 | AC_CONFIG_FILES([dist/generation-scripts/gen-variables:dist/generation-scripts/gen-variables.in]) | ||
128 | AC_CONFIG_FILES([local/snmpconf]) | ||
129 | |||
130 | diff --git a/netsnmp-agent.pc.in b/netsnmp-agent.pc.in | ||
131 | new file mode 100644 | ||
132 | index 0000000000..3a1c77bbf8 | ||
133 | --- /dev/null | ||
134 | +++ b/netsnmp-agent.pc.in | ||
135 | @@ -0,0 +1,12 @@ | ||
136 | +prefix=@prefix@ | ||
137 | +exec_prefix=@exec_prefix@ | ||
138 | +includedir=@includedir@ | ||
139 | +libdir=@libdir@ | ||
140 | + | ||
141 | +Name: netsnmp-agent (@PACKAGE_NAME@) | ||
142 | +Description: SNMP (Simple Network Management Protocol) sub-agent SDK. | ||
143 | +URL: http://www.net-snmp.org | ||
144 | +Version: @PACKAGE_VERSION@ | ||
145 | +Cflags: -I${includedir} | ||
146 | +Libs: -L${libdir} -lnetsnmpmibs -lnetsnmpagent -lnetsnmp | ||
147 | +Libs.private: @LDFLAGS@ @LMIBLIBS@ @LAGENTLIBS@ @PERLLDOPTS_FOR_APPS@ @LNETSNMPLIBS@ @LIBS@ | ||
148 | diff --git a/netsnmp.pc.in b/netsnmp.pc.in | ||
149 | new file mode 100644 | ||
150 | index 0000000000..0a1f5785a4 | ||
151 | --- /dev/null | ||
152 | +++ b/netsnmp.pc.in | ||
153 | @@ -0,0 +1,12 @@ | ||
154 | +prefix=@prefix@ | ||
155 | +exec_prefix=@exec_prefix@ | ||
156 | +includedir=@includedir@ | ||
157 | +libdir=@libdir@ | ||
158 | + | ||
159 | +Name: netsnmp (@PACKAGE_NAME@) | ||
160 | +Description: SNMP (Simple Network Management Protocol) daemon and applications. | ||
161 | +URL: http://www.net-snmp.org | ||
162 | +Version: @PACKAGE_VERSION@ | ||
163 | +Cflags: -I${includedir} | ||
164 | +Libs: -L${libdir} -lnetsnmp | ||
165 | +Libs.private: @LDFLAGS@ @LNETSNMPLIBS@ @LIBS@ @PERLLDOPTS_FOR_APPS@ | ||
166 | -- | ||
167 | 2.26.2 | ||
168 | |||
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/0001-config_os_headers-Error-Fix.patch index 5ad7470c90..05a47f61ce 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/0001-config_os_headers-Error-Fix.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 2ad4df6d503be72a8910c3087611adb33d77ffde Mon Sep 17 00:00:00 2001 | 1 | From 69d4c517c07f55c505090e48d96ace8cd599fb26 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,15 +13,16 @@ 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 | |||
16 | --- | 17 | --- |
17 | configure.d/config_os_headers | 4 ++-- | 18 | configure.d/config_os_headers | 4 ++-- |
18 | 1 file changed, 2 insertions(+), 2 deletions(-) | 19 | 1 file changed, 2 insertions(+), 2 deletions(-) |
19 | 20 | ||
20 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers | 21 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers |
21 | index 2fdb5a35d6..0272f02c8e 100644 | 22 | index f07d512..2363b42 100644 |
22 | --- a/configure.d/config_os_headers | 23 | --- a/configure.d/config_os_headers |
23 | +++ b/configure.d/config_os_headers | 24 | +++ b/configure.d/config_os_headers |
24 | @@ -487,8 +487,8 @@ then | 25 | @@ -395,8 +395,8 @@ then |
25 | unset ac_cv_header_pkg_h | 26 | unset ac_cv_header_pkg_h |
26 | netsnmp_save_CPPFLAGS="$CPPFLAGS" | 27 | netsnmp_save_CPPFLAGS="$CPPFLAGS" |
27 | netsnmp_save_LDFLAGS="$LDFLAGS" | 28 | netsnmp_save_LDFLAGS="$LDFLAGS" |
@@ -32,6 +33,3 @@ index 2fdb5a35d6..0272f02c8e 100644 | |||
32 | AC_CHECK_HEADERS(pkg.h, | 33 | AC_CHECK_HEADERS(pkg.h, |
33 | NETSNMP_SEARCH_LIBS(pkg_init, pkg, | 34 | NETSNMP_SEARCH_LIBS(pkg_init, pkg, |
34 | AC_DEFINE(HAVE_LIBPKG, 1, [define if you have BSD pkg-ng]))) | 35 | AC_DEFINE(HAVE_LIBPKG, 1, [define if you have BSD pkg-ng]))) |
35 | -- | ||
36 | 2.26.2 | ||
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/0001-get_pid_from_inode-Include-limit.h.patch index bf133b3e37..22e591556a 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/0001-get_pid_from_inode-Include-limit.h.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 98c6edba4835b515d933542411d80879327eee16 Mon Sep 17 00:00:00 2001 | 1 | From 2bf1bbe1d428ed06d57aa76b03e394b72ff2216d 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 |
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-net-snmp-fix-compile-error-disable-des.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-net-snmp-fix-compile-error-disable-des.patch deleted file mode 100644 index 33a1e745fa..0000000000 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-net-snmp-fix-compile-error-disable-des.patch +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | From 383e67e359b89abe0440597ce414297892ade511 Mon Sep 17 00:00:00 2001 | ||
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Tue, 26 Feb 2019 14:26:07 +0800 | ||
4 | Subject: [PATCH] net-snmp: fix compile error with --disable-des | ||
5 | |||
6 | | scapi.c: In function 'sc_encrypt': | ||
7 | | scapi.c:1256:5: error: 'pad_size' undeclared (first use in this function); did you mean 'dysize'? | ||
8 | | pad_size = pai->pad_size; | ||
9 | | ^~~~~~~~ | ||
10 | | dysize | ||
11 | |||
12 | pad_size is defined only without --disable-des | ||
13 | [snip] | ||
14 | #ifndef NETSNMP_DISABLE_DES | ||
15 | int pad, plast, pad_size = 0; | ||
16 | |||
17 | but used when disable-des, | ||
18 | [snip] | ||
19 | QUITFUN(SNMPERR_GENERR, sc_encrypt_quit); | ||
20 | } | ||
21 | pad_size = pai->pad_size; | ||
22 | |||
23 | memset(my_iv, 0, sizeof(my_iv)); | ||
24 | |||
25 | #ifndef NETSNMP_DISABLE_DES | ||
26 | if (USM_CREATE_USER_PRIV_DES == (pai->type & USM_PRIV_MASK_ALG)) { | ||
27 | |||
28 | /* | ||
29 | |||
30 | fix by move it into #ifndef NETSNMP_DISABLE_DES | ||
31 | |||
32 | Upstream-Status: Submitted [https://sourceforge.net/p/net-snmp/bugs/2927/] | ||
33 | |||
34 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
35 | --- | ||
36 | snmplib/scapi.c | 3 ++- | ||
37 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
38 | |||
39 | diff --git a/snmplib/scapi.c b/snmplib/scapi.c | ||
40 | index 8ad1d70d90..8c6882d9ab 100644 | ||
41 | --- a/snmplib/scapi.c | ||
42 | +++ b/snmplib/scapi.c | ||
43 | @@ -1251,7 +1251,6 @@ sc_encrypt(const oid * privtype, size_t privtypelen, | ||
44 | |||
45 | QUITFUN(SNMPERR_GENERR, sc_encrypt_quit); | ||
46 | } | ||
47 | - pad_size = pai->pad_size; | ||
48 | |||
49 | memset(my_iv, 0, sizeof(my_iv)); | ||
50 | |||
51 | @@ -1261,6 +1260,8 @@ sc_encrypt(const oid * privtype, size_t privtypelen, | ||
52 | /* | ||
53 | * now calculate the padding needed | ||
54 | */ | ||
55 | + | ||
56 | + pad_size = pai->pad_size; | ||
57 | pad = pad_size - (ptlen % pad_size); | ||
58 | plast = (int) ptlen - (pad_size - pad); | ||
59 | if (pad == pad_size) | ||
60 | -- | ||
61 | 2.26.2 | ||
62 | |||
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/0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch index 778b40188b..42352a6b00 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/0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 89538a973119f1bf976b3a6df157ea940cf32eb5 Mon Sep 17 00:00:00 2001 | 1 | From f3ff99736b8cccbba77349b0d10a3cee366a4c87 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 |
@@ -10,22 +10,25 @@ EVP_MD_CTX_init() API returns void, it fixes errors with new compilers | |||
10 | snmplib/keytools.c: In function 'generate_Ku': error: invalid use of void expression | 10 | snmplib/keytools.c: In function 'generate_Ku': error: invalid use of void expression |
11 | 11 | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
13 | Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> | ||
13 | 14 | ||
14 | --- | 15 | --- |
15 | snmplib/keytools.c | 3 +-- | 16 | snmplib/keytools.c | 5 +---- |
16 | 1 file changed, 1 insertion(+), 2 deletions(-) | 17 | 1 file changed, 1 insertion(+), 4 deletions(-) |
17 | 18 | ||
18 | diff --git a/snmplib/keytools.c b/snmplib/keytools.c | 19 | diff --git a/snmplib/keytools.c b/snmplib/keytools.c |
19 | index 2cf0240..50fd3ea 100644 | 20 | index 129a7c0..2fc1efc 100644 |
20 | --- a/snmplib/keytools.c | 21 | --- a/snmplib/keytools.c |
21 | +++ b/snmplib/keytools.c | 22 | +++ b/snmplib/keytools.c |
22 | @@ -186,8 +186,7 @@ generate_Ku(const oid * hashtype, u_int hashtype_len, | 23 | @@ -183,10 +183,7 @@ generate_Ku(const oid * hashtype, u_int hashtype_len, |
23 | ctx = EVP_MD_CTX_create(); | 24 | ctx = EVP_MD_CTX_create(); |
24 | #else | 25 | #else |
25 | ctx = malloc(sizeof(*ctx)); | 26 | ctx = malloc(sizeof(*ctx)); |
26 | - if (!EVP_MD_CTX_init(ctx)) | 27 | - if (!EVP_MD_CTX_init(ctx)) { |
27 | - return SNMPERR_GENERR; | 28 | - rval = SNMPERR_GENERR; |
29 | - goto generate_Ku_quit; | ||
30 | - } | ||
28 | + EVP_MD_CTX_init(ctx); | 31 | + EVP_MD_CTX_init(ctx); |
29 | #endif | 32 | #endif |
30 | if (!EVP_DigestInit(ctx, hashfn)) | 33 | if (!EVP_DigestInit(ctx, hashfn)) { |
31 | return SNMPERR_GENERR; | 34 | rval = SNMPERR_GENERR; |
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0002-configure-fix-a-cc-check-issue.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0002-configure-fix-a-cc-check-issue.patch index 4782714d57..c973bde721 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/0002-configure-fix-a-cc-check-issue.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0002-configure-fix-a-cc-check-issue.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From a3631df3d6743113e1cd63579925e15bcce85868 Mon Sep 17 00:00:00 2001 | 1 | From 0a02ac779c51a2b4af3b58cb96967bf3eff80367 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 16:45:34 +0800 | 3 | Date: Wed, 24 May 2017 16:45:34 +0800 |
4 | Subject: [PATCH 2/4] configure: fix a cc check issue. | 4 | Subject: [PATCH] configure: fix a cc check issue. |
5 | 5 | ||
6 | When has "." in cc value, the expression | 6 | When has "." in cc value, the expression |
7 | $myperl -V:cc | $myperl -n -e 'print if (s/^\s*cc=.([-=\w\s\/]+).;\s*/$1/);' | 7 | $myperl -V:cc | $myperl -n -e 'print if (s/^\s*cc=.([-=\w\s\/]+).;\s*/$1/);' |
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/0004-configure-fix-incorrect-variable.patch index a3d84b291b..bfddc63dd7 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/0004-configure-fix-incorrect-variable.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From f3c5cd4df7ce8e5639c99b7b918e41fb89e969e3 Mon Sep 17 00:00:00 2001 | 1 | From 011bdcd07f2a289d0cfc1b411c03c0cc7c42dad1 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 4/4] configure: fix incorrect variable | 4 | Subject: [PATCH] configure: fix incorrect variable |
5 | 5 | ||
6 | For cross compile platform, this variable will not be correct, so fix it. | 6 | For cross compile platform, this variable will not be correct, so fix it. |
7 | 7 | ||
@@ -14,10 +14,10 @@ Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com> | |||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
15 | 15 | ||
16 | diff --git a/Makefile.in b/Makefile.in | 16 | diff --git a/Makefile.in b/Makefile.in |
17 | index 9dbdde1..5fdc760 100644 | 17 | index 912f6b2..a53d1b2 100644 |
18 | --- a/Makefile.in | 18 | --- a/Makefile.in |
19 | +++ b/Makefile.in | 19 | +++ b/Makefile.in |
20 | @@ -173,7 +173,7 @@ OTHERCLEANTODOS=perlclean @PYTHONCLEANTARGS@ cleanfeatures perlcleanfeatures pyt | 20 | @@ -174,7 +174,7 @@ OTHERCLEANTODOS=perlclean @PYTHONCLEANTARGS@ cleanfeatures perlcleanfeatures pyt |
21 | # | 21 | # |
22 | # override LD_RUN_PATH to avoid dependencies on the build directory | 22 | # override LD_RUN_PATH to avoid dependencies on the build directory |
23 | perlmodules: perlmakefiles subdirs | 23 | perlmodules: perlmakefiles subdirs |
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/CVE-2019-20892.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/CVE-2019-20892.patch deleted file mode 100644 index ec1b6de8fc..0000000000 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/CVE-2019-20892.patch +++ /dev/null | |||
@@ -1,120 +0,0 @@ | |||
1 | From 5f881d3bf24599b90d67a45cae7a3eb099cd71c9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Bart Van Assche <bvanassche@acm.org> | ||
3 | Date: Sat, 27 Jul 2019 19:34:09 -0700 | ||
4 | Subject: [PATCH] libsnmp, USM: Introduce a reference count in struct | ||
5 | usmStateReference | ||
6 | |||
7 | This patch fixes https://sourceforge.net/p/net-snmp/bugs/2956/. | ||
8 | |||
9 | Upstream-Status: Backport | ||
10 | [ak: fixup for 5.8 context, changes to library/snmpusm.h] | ||
11 | |||
12 | CVE: CVE-2019-20892 | ||
13 | |||
14 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
15 | Signed-off-by: Mingde (Matthew) Zeng <matthew.zeng@windriver.com> | ||
16 | |||
17 | --- | ||
18 | snmplib/snmp_client.c | 22 +++---------- | ||
19 | snmplib/snmpusm.c | 73 ++++++++++++++++++++++++++++--------------- | ||
20 | 2 files changed, 53 insertions(+), 42 deletions(-) | ||
21 | |||
22 | Index: net-snmp-5.8/snmplib/snmpusm.c | ||
23 | =================================================================== | ||
24 | --- net-snmp-5.8.orig/snmplib/snmpusm.c | ||
25 | +++ net-snmp-5.8/snmplib/snmpusm.c | ||
26 | @@ -285,12 +285,35 @@ free_enginetime_on_shutdown(int majorid, | ||
27 | struct usmStateReference * | ||
28 | usm_malloc_usmStateReference(void) | ||
29 | { | ||
30 | - struct usmStateReference *retval = (struct usmStateReference *) | ||
31 | - calloc(1, sizeof(struct usmStateReference)); | ||
32 | + struct usmStateReference *retval; | ||
33 | |||
34 | + retval = calloc(1, sizeof(struct usmStateReference)); | ||
35 | + if (retval) | ||
36 | + retval->refcnt = 1; | ||
37 | return retval; | ||
38 | } /* end usm_malloc_usmStateReference() */ | ||
39 | |||
40 | +static int | ||
41 | +usm_clone(netsnmp_pdu *pdu, netsnmp_pdu *new_pdu) | ||
42 | +{ | ||
43 | + struct usmStateReference *ref = pdu->securityStateRef; | ||
44 | + struct usmStateReference **new_ref = | ||
45 | + (struct usmStateReference **)&new_pdu->securityStateRef; | ||
46 | + int ret = 0; | ||
47 | + | ||
48 | + if (!ref) | ||
49 | + return ret; | ||
50 | + | ||
51 | + if (pdu->command == SNMP_MSG_TRAP2) { | ||
52 | + netsnmp_assert(pdu->securityModel == SNMP_DEFAULT_SECMODEL); | ||
53 | + ret = usm_clone_usmStateReference(ref, new_ref); | ||
54 | + } else { | ||
55 | + netsnmp_assert(ref == *new_ref); | ||
56 | + ref->refcnt++; | ||
57 | + } | ||
58 | + | ||
59 | + return ret; | ||
60 | +} | ||
61 | |||
62 | void | ||
63 | usm_free_usmStateReference(void *old) | ||
64 | @@ -3345,6 +3368,7 @@ init_usm(void) | ||
65 | def->encode_reverse = usm_secmod_rgenerate_out_msg; | ||
66 | def->encode_forward = usm_secmod_generate_out_msg; | ||
67 | def->decode = usm_secmod_process_in_msg; | ||
68 | + def->pdu_clone = usm_clone; | ||
69 | def->pdu_free_state_ref = usm_free_usmStateReference; | ||
70 | def->session_setup = usm_session_init; | ||
71 | def->handle_report = usm_handle_report; | ||
72 | Index: net-snmp-5.8/snmplib/snmp_client.c | ||
73 | =================================================================== | ||
74 | --- net-snmp-5.8.orig/snmplib/snmp_client.c | ||
75 | +++ net-snmp-5.8/snmplib/snmp_client.c | ||
76 | @@ -402,27 +402,15 @@ _clone_pdu_header(netsnmp_pdu *pdu) | ||
77 | return NULL; | ||
78 | } | ||
79 | |||
80 | - if (pdu->securityStateRef && | ||
81 | - pdu->command == SNMP_MSG_TRAP2) { | ||
82 | - | ||
83 | - ret = usm_clone_usmStateReference((struct usmStateReference *) pdu->securityStateRef, | ||
84 | - (struct usmStateReference **) &newpdu->securityStateRef ); | ||
85 | - | ||
86 | - if (ret) | ||
87 | - { | ||
88 | + sptr = find_sec_mod(newpdu->securityModel); | ||
89 | + if (sptr && sptr->pdu_clone) { | ||
90 | + /* call security model if it needs to know about this */ | ||
91 | + ret = sptr->pdu_clone(pdu, newpdu); | ||
92 | + if (ret) { | ||
93 | snmp_free_pdu(newpdu); | ||
94 | return NULL; | ||
95 | } | ||
96 | } | ||
97 | - | ||
98 | - if ((sptr = find_sec_mod(newpdu->securityModel)) != NULL && | ||
99 | - sptr->pdu_clone != NULL) { | ||
100 | - /* | ||
101 | - * call security model if it needs to know about this | ||
102 | - */ | ||
103 | - (*sptr->pdu_clone) (pdu, newpdu); | ||
104 | - } | ||
105 | - | ||
106 | return newpdu; | ||
107 | } | ||
108 | |||
109 | Index: net-snmp-5.8/include/net-snmp/library/snmpusm.h | ||
110 | =================================================================== | ||
111 | --- net-snmp-5.8.orig/include/net-snmp/library/snmpusm.h | ||
112 | +++ net-snmp-5.8/include/net-snmp/library/snmpusm.h | ||
113 | @@ -43,6 +43,7 @@ extern "C" { | ||
114 | * Structures. | ||
115 | */ | ||
116 | struct usmStateReference { | ||
117 | + int refcnt; | ||
118 | char *usr_name; | ||
119 | size_t usr_name_length; | ||
120 | u_char *usr_engine_id; | ||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/fix-libtool-finish.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/fix-libtool-finish.patch index fc3ac2a4ba..26dd014ce4 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/fix-libtool-finish.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/fix-libtool-finish.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 0becb4843a40910d5ec9aa11969d4905a22037cf Mon Sep 17 00:00:00 2001 | 1 | From 27444fbf8323679ea0551a3bd5f04c365143d8c0 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" |
@@ -20,7 +20,7 @@ Signed-off-by: Roy.Li <rongqing.li@windriver.com> | |||
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | 20 | 1 file changed, 1 insertion(+), 1 deletion(-) |
21 | 21 | ||
22 | diff --git a/Makefile.top b/Makefile.top | 22 | diff --git a/Makefile.top b/Makefile.top |
23 | index 5d4f9bc..d0ed31c 100644 | 23 | index 6315401..fc0ee06 100644 |
24 | --- a/Makefile.top | 24 | --- a/Makefile.top |
25 | +++ b/Makefile.top | 25 | +++ b/Makefile.top |
26 | @@ -89,7 +89,7 @@ LIBREVISION = 0 | 26 | @@ -89,7 +89,7 @@ LIBREVISION = 0 |
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/net-snmp-5.7.2-fix-engineBoots-value-on-SIGHUP.patch index 5cbb60d8e5..da6d80ef4a 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/net-snmp-5.7.2-fix-engineBoots-value-on-SIGHUP.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From d619cd9fc01f336ff0ff55b18f9112789eb4d84c Mon Sep 17 00:00:00 2001 | 1 | From b6a3d6c8af35f1ef27b80b0516742fce89f4eb29 Mon Sep 17 00:00:00 2001 |
2 | From: Marian Florea <marian.florea@windriver.com> | 2 | From: Marian Florea <marian.florea@windriver.com> |
3 | Date: Thu, 20 Jul 2017 16:55:24 +0800 | 3 | Date: Thu, 20 Jul 2017 16:55:24 +0800 |
4 | Subject: [PATCH] net snmp: fix engineBoots value on SIGHUP | 4 | Subject: [PATCH] net snmp: fix engineBoots value on SIGHUP |
@@ -14,10 +14,10 @@ Signed-off-by: Li Zhou <li.zhou@windriver.com> | |||
14 | 2 files changed, 3 insertions(+), 2 deletions(-) | 14 | 2 files changed, 3 insertions(+), 2 deletions(-) |
15 | 15 | ||
16 | diff --git a/agent/snmpd.c b/agent/snmpd.c | 16 | diff --git a/agent/snmpd.c b/agent/snmpd.c |
17 | index 6566354..eb0d4b4 100644 | 17 | index ae73eda..66b4560 100644 |
18 | --- a/agent/snmpd.c | 18 | --- a/agent/snmpd.c |
19 | +++ b/agent/snmpd.c | 19 | +++ b/agent/snmpd.c |
20 | @@ -1239,6 +1239,7 @@ receive(void) | 20 | @@ -1207,6 +1207,7 @@ receive(void) |
21 | snmp_log(LOG_INFO, "NET-SNMP version %s restarted\n", | 21 | snmp_log(LOG_INFO, "NET-SNMP version %s restarted\n", |
22 | netsnmp_get_version()); | 22 | netsnmp_get_version()); |
23 | update_config(); | 23 | update_config(); |
@@ -26,10 +26,10 @@ index 6566354..eb0d4b4 100644 | |||
26 | #if HAVE_SIGHOLD | 26 | #if HAVE_SIGHOLD |
27 | sigrelse(SIGHUP); | 27 | sigrelse(SIGHUP); |
28 | diff --git a/snmplib/snmpv3.c b/snmplib/snmpv3.c | 28 | diff --git a/snmplib/snmpv3.c b/snmplib/snmpv3.c |
29 | index 771ba3b..5de05e7 100644 | 29 | index 29c2a0f..ada961c 100644 |
30 | --- a/snmplib/snmpv3.c | 30 | --- a/snmplib/snmpv3.c |
31 | +++ b/snmplib/snmpv3.c | 31 | +++ b/snmplib/snmpv3.c |
32 | @@ -1060,9 +1060,9 @@ init_snmpv3_post_config(int majorid, int minorid, void *serverarg, | 32 | @@ -1059,9 +1059,9 @@ init_snmpv3_post_config(int majorid, int minorid, void *serverarg, |
33 | /* | 33 | /* |
34 | * 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 |
35 | */ | 35 | */ |
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/net-snmp-add-knob-whether-nlist.h-are-checked.patch index fb773e6388..f1ebe2bb61 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/net-snmp-add-knob-whether-nlist.h-are-checked.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From a1134a31d417cc05a1fdb094f613a00a7a5e7ac5 Mon Sep 17 00:00:00 2001 | 1 | From e507dcf8b29c55011f85d88bf05400d4717e4074 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,30 +9,28 @@ 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 | |||
12 | --- | 13 | --- |
13 | configure.d/config_os_headers | 2 ++ | 14 | configure.d/config_os_headers | 2 ++ |
14 | 1 file changed, 2 insertions(+) | 15 | 1 file changed, 2 insertions(+) |
15 | 16 | ||
16 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers | 17 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers |
17 | index 2fdb5a35d6..af997461d5 100644 | 18 | index 76ef58a..f07d512 100644 |
18 | --- a/configure.d/config_os_headers | 19 | --- a/configure.d/config_os_headers |
19 | +++ b/configure.d/config_os_headers | 20 | +++ b/configure.d/config_os_headers |
20 | @@ -32,6 +32,7 @@ AC_CHECK_HEADERS([getopt.h pthread.h regex.h ] dnl | 21 | @@ -37,6 +37,7 @@ AC_CHECK_HEADERS([getopt.h pthread.h regex.h ] dnl |
21 | [sys/un.h ]) | 22 | [sys/timeb.h ]) |
22 | 23 | ||
23 | # Library and Agent: | 24 | # Library and Agent: |
24 | +if test "x$with_elf" != "xno"; then | 25 | +if test "x$with_elf" != "xno"; then |
25 | AC_CHECK_HEADERS([nlist.h],,,[ | 26 | AC_CHECK_HEADERS([nlist.h],,,[ |
26 | AC_INCLUDES_DEFAULT | 27 | AC_INCLUDES_DEFAULT |
27 | [ | 28 | [ |
28 | @@ -39,6 +40,7 @@ AC_INCLUDES_DEFAULT | 29 | @@ -44,6 +45,7 @@ AC_INCLUDES_DEFAULT |
29 | #define LIBBSD_DISABLE_DEPRECATED 1 | 30 | #define LIBBSD_DISABLE_DEPRECATED 1 |
30 | #endif | 31 | #endif |
31 | ]]) | 32 | ]]) |
32 | +fi | 33 | +fi |
33 | 34 | ||
34 | # Library: | 35 | # Library: |
35 | AC_CHECK_HEADERS([fcntl.h io.h kstat.h ] dnl | 36 | AC_CHECK_HEADERS([crt_externs.h ] dnl |
36 | -- | ||
37 | 2.26.2 | ||
38 | |||
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/net-snmp-fix-for-disable-des.patch index 4cd8fd1e46..2941a36092 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/net-snmp-fix-for-disable-des.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 068952c0e0cdda5a91250b91c5fcc9b85b43daab Mon Sep 17 00:00:00 2001 | 1 | From 3ca4335ec1d6b7b384c134fc85d7a9e513c68376 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 |
@@ -15,10 +15,10 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
15 | 1 file changed, 2 insertions(+) | 15 | 1 file changed, 2 insertions(+) |
16 | 16 | ||
17 | diff --git a/snmplib/scapi.c b/snmplib/scapi.c | 17 | diff --git a/snmplib/scapi.c b/snmplib/scapi.c |
18 | index 8ad1d70..43caddf 100644 | 18 | index 00c9174..c6875e1 100644 |
19 | --- a/snmplib/scapi.c | 19 | --- a/snmplib/scapi.c |
20 | +++ b/snmplib/scapi.c | 20 | +++ b/snmplib/scapi.c |
21 | @@ -84,7 +84,9 @@ netsnmp_feature_child_of(usm_scapi, usm_support) | 21 | @@ -85,7 +85,9 @@ netsnmp_feature_child_of(usm_scapi, usm_support); |
22 | #include <openssl/hmac.h> | 22 | #include <openssl/hmac.h> |
23 | #include <openssl/evp.h> | 23 | #include <openssl/evp.h> |
24 | #include <openssl/rand.h> | 24 | #include <openssl/rand.h> |
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/net-snmp-testing-add-the-output-format-for-ptest.patch index 7cbaf0bc50..807983f612 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/net-snmp-testing-add-the-output-format-for-ptest.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 827fe3b0253aab33472828f40ad05934cc0261b8 Mon Sep 17 00:00:00 2001 | 1 | From 972df16e9599dffddf5d714a4cbf43008c771122 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 |
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/reproducibility-accept-configure-options-from-env.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/reproducibility-accept-configure-options-from-env.patch deleted file mode 100644 index b0dbf5ad36..0000000000 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/reproducibility-accept-configure-options-from-env.patch +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | Reproducible build: To avoid build host paths being written into binaries, | ||
2 | accept NETSNMP_CONFIGURE_OPTIONS from the environment. | ||
3 | NETSNMP_CONFIGURE_OPTIONS can be set either null or to a fixed value. | ||
4 | |||
5 | --- net-snmp-5.8.original/configure.ac 2018-11-20 17:41:39.926529072 +1300 | ||
6 | +++ net-snmp-5.8/configure.ac 2018-11-20 17:54:44.488180224 +1300 | ||
7 | @@ -28,7 +28,7 @@ | ||
8 | # | ||
9 | # save the configure arguments | ||
10 | # | ||
11 | -AC_DEFINE_UNQUOTED(NETSNMP_CONFIGURE_OPTIONS,"$ac_configure_args", | ||
12 | +AC_DEFINE_UNQUOTED(NETSNMP_CONFIGURE_OPTIONS,"${NETSNMP_CONFIGURE_OPTIONS-$ac_configure_args}", | ||
13 | [configure options specified]) | ||
14 | CONFIGURE_OPTIONS="\"$ac_configure_args\"" | ||
15 | AC_SUBST(CONFIGURE_OPTIONS) | ||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/reproducibility-have-printcap.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/reproducibility-have-printcap.patch index 4316c7a713..bf1e7bedf2 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/reproducibility-have-printcap.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/reproducibility-have-printcap.patch | |||
@@ -1,11 +1,22 @@ | |||
1 | From 84e362fe97f50fbad69f083bc2d8fe18f83eb2f7 Mon Sep 17 00:00:00 2001 | ||
2 | From: "douglas.royds" <douglas.royds@taitradio.com> | ||
3 | Date: Wed, 21 Nov 2018 13:52:18 +1300 | ||
4 | Subject: [PATCH] net-snmp: Reproducibility: Don't check build host for | ||
5 | |||
1 | Reproducible build: Don't check for /etc/printcap on the build machine when | 6 | Reproducible build: Don't check for /etc/printcap on the build machine when |
2 | cross-compiling. Use AC_CHECK_FILE to set the cached variable | 7 | cross-compiling. Use AC_CHECK_FILE to set the cached variable |
3 | 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 |
4 | 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. |
5 | 10 | ||
6 | --- net-snmp-5.8.original/configure.d/config_os_misc4 2018-11-20 17:05:03.986274522 +1300 | 11 | --- |
7 | +++ net-snmp-5.8/configure.d/config_os_misc4 2018-11-20 17:08:32.250700448 +1300 | 12 | configure.d/config_os_misc4 | 4 ++-- |
8 | @@ -116,9 +116,9 @@ | 13 | 1 file changed, 2 insertions(+), 2 deletions(-) |
14 | |||
15 | diff --git a/configure.d/config_os_misc4 b/configure.d/config_os_misc4 | ||
16 | index 6f23c8e..8cea75a 100644 | ||
17 | --- a/configure.d/config_os_misc4 | ||
18 | +++ b/configure.d/config_os_misc4 | ||
19 | @@ -99,9 +99,9 @@ if test x$LPSTAT_PATH != x; then | ||
9 | [Path to the lpstat command]) | 20 | [Path to the lpstat command]) |
10 | AC_DEFINE(HAVE_LPSTAT, 1, [Set if the lpstat command is available]) | 21 | AC_DEFINE(HAVE_LPSTAT, 1, [Set if the lpstat command is available]) |
11 | fi | 22 | fi |
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.bb index 67316db0d2..5df1f9340e 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.bb | |||
@@ -25,13 +25,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \ | |||
25 | file://net-snmp-5.7.2-fix-engineBoots-value-on-SIGHUP.patch \ | 25 | file://net-snmp-5.7.2-fix-engineBoots-value-on-SIGHUP.patch \ |
26 | file://net-snmp-fix-for-disable-des.patch \ | 26 | file://net-snmp-fix-for-disable-des.patch \ |
27 | file://reproducibility-have-printcap.patch \ | 27 | file://reproducibility-have-printcap.patch \ |
28 | file://reproducibility-accept-configure-options-from-env.patch \ | ||
29 | file://0001-net-snmp-fix-compile-error-disable-des.patch \ | ||
30 | file://0001-Add-pkg-config-support-for-building-applications-and.patch \ | ||
31 | file://CVE-2019-20892.patch \ | ||
32 | " | 28 | " |
33 | SRC_URI[md5sum] = "63bfc65fbb86cdb616598df1aff6458a" | 29 | SRC_URI[sha256sum] = "04303a66f85d6d8b16d3cc53bde50428877c82ab524e17591dfceaeb94df6071" |
34 | SRC_URI[sha256sum] = "b2fc3500840ebe532734c4786b0da4ef0a5f67e51ef4c86b3345d697e4976adf" | ||
35 | 30 | ||
36 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/net-snmp/files/net-snmp/" | 31 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/net-snmp/files/net-snmp/" |
37 | UPSTREAM_CHECK_REGEX = "/net-snmp/(?P<pver>\d+(\.\d+)+)/" | 32 | UPSTREAM_CHECK_REGEX = "/net-snmp/(?P<pver>\d+(\.\d+)+)/" |