diff options
| -rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-add-knob-whether-nlist.h-are-checked.patch | 35 | ||||
| -rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb | 4 |
2 files changed, 39 insertions, 0 deletions
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 new file mode 100644 index 0000000000..74b0c12e05 --- /dev/null +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-add-knob-whether-nlist.h-are-checked.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | net-snmp: add knob whether nlist.h are checked | ||
| 2 | |||
| 3 | Previously, it still was checked when there was no nlish.h in sysroots directory. | ||
| 4 | Add knob to decide whether nlist.h are checked or not. | ||
| 5 | |||
| 6 | Upstream-status: Pending | ||
| 7 | |||
| 8 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> | ||
| 9 | --- | ||
| 10 | configure.d/config_os_headers | 2 ++ | ||
| 11 | 1 file changed, 2 insertions(+) | ||
| 12 | |||
| 13 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers | ||
| 14 | index d903f58..a05d30e 100644 | ||
| 15 | --- a/configure.d/config_os_headers | ||
| 16 | +++ b/configure.d/config_os_headers | ||
| 17 | @@ -31,6 +31,7 @@ AC_CHECK_HEADERS([getopt.h pthread.h regex.h ] dnl | ||
| 18 | [sys/un.h ]) | ||
| 19 | |||
| 20 | # Library and Agent: | ||
| 21 | +if test "x$with_elf" != "xno"; then | ||
| 22 | AC_CHECK_HEADERS([nlist.h],,,[ | ||
| 23 | AC_INCLUDES_DEFAULT | ||
| 24 | [ | ||
| 25 | @@ -38,6 +39,7 @@ AC_INCLUDES_DEFAULT | ||
| 26 | #define LIBBSD_DISABLE_DEPRECATED 1 | ||
| 27 | #endif | ||
| 28 | ]]) | ||
| 29 | +fi | ||
| 30 | |||
| 31 | # Library: | ||
| 32 | AC_CHECK_HEADERS([fcntl.h io.h kstat.h ] dnl | ||
| 33 | -- | ||
| 34 | 1.7.9.5 | ||
| 35 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb index a76de0d3b8..6ebbcd8374 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb | |||
| @@ -15,6 +15,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.zip \ | |||
| 15 | file://snmpd.service \ | 15 | file://snmpd.service \ |
| 16 | file://snmptrapd.service \ | 16 | file://snmptrapd.service \ |
| 17 | file://ifmib.patch \ | 17 | file://ifmib.patch \ |
| 18 | file://net-snmp-add-knob-whether-nlist.h-are-checked.patch \ | ||
| 18 | " | 19 | " |
| 19 | 20 | ||
| 20 | SRC_URI[md5sum] = "a2c83518648b0f2a5d378625e45c0e18" | 21 | SRC_URI[md5sum] = "a2c83518648b0f2a5d378625e45c0e18" |
| @@ -29,6 +30,9 @@ CCACHE = "" | |||
| 29 | 30 | ||
| 30 | TARGET_CC_ARCH += "${LDFLAGS}" | 31 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 31 | 32 | ||
| 33 | PACKAGECONFIG ??= "" | ||
| 34 | PACKAGECONFIG[elfutils] = "--with-elf, --without-elf, elfutils" | ||
| 35 | |||
| 32 | EXTRA_OECONF = "--disable-embedded-perl \ | 36 | EXTRA_OECONF = "--disable-embedded-perl \ |
| 33 | --with-perl-modules=no \ | 37 | --with-perl-modules=no \ |
| 34 | --enable-shared \ | 38 | --enable-shared \ |
