net-snmp: fix cross-compile breakage, add libnl pkgconfig option
PATCH 1/1 net-snmp: fix cross-compile breakage, add libnl pkgconfig option
From: Stephen Arnold <[email protected]>
This patch enhances a previously unapplied patch on jethro, plus adds some flexibility in terms of required deps and a few cleanups.
Signed-off-by Stephen Arnold <[email protected]>
--- meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb +8 -2
@@ -27,7 +27,7 @@ SRC_URI[sha256sum] = "e8dfc79b6539b71a6ff335746ce63d2da2239062ad41872fff4354cafe inherit autotools update-rc.d siteinfo systemd pkgconfig -EXTRA_OEMAKE = "INSTALL_PREFIX=${D}" +EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${BUILD_CPPFLAGS}'" PARALLEL_MAKE = "" CCACHE = ""
@@ -36,12 +36,13 @@ TARGET_CC_ARCH += "${LDFLAGS}" PACKAGECONFIG ??= "" PACKAGECONFIG[elfutils] = "--with-elf, --without-elf, elfutils" +PACKAGECONFIG[libnl] = "--with-nl, --without-nl, libnl" EXTRA_OECONF = "--disable-embedded-perl \ --with-perl-modules=no \ - --enable-shared \ --disable-manuals \ --with-defaults \ + --with-install-prefix=${D} \ --with-persistent-directory=${localstatedir}/lib/net-snmp \ ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"
@@ -51,10 +52,15 @@ EXTRA_OECONF += "--with-mib-modules=smux" CACHED_CONFIGUREVARS = " \ ac_cv_header_valgrind_valgrind_h=no \ ac_cv_header_valgrind_memcheck_h=no \ + ac_cv_ETC_MNTTAB=/etc/mtab \ + lt_cv_shlibpath_overrides_runpath=yes \ " do_configure_prepend() { export PERLPROG="${bindir}/env perl" + sed -i -e "s|I/usr/include|I${STAGING_INCDIR}|g" \ + "${S}"/configure \ + "${S}"/configure.d/config_os_libs2 } do_install_append() {
Signature · 1 line
2.6.4
Quoted 24 lines · [[oe] [meta-networking][PATCH] net-snmp: fix cross-compile breakage, add libnl…
From: Stephen Arnold <[email protected]>
This patch enhances a previously unapplied patch on jethro, plus adds some flexibility in terms of required deps and a few cleanups.
Signed-off-by Stephen Arnold <[email protected]>--- meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb +1
-1@@ -27,7 +27,7 @@ SRC_URI[sha256sum] = "e8dfc79b6539b71a6ff335746ce63d2da2239062ad41872fff4354cafe inherit autotools update-rc.d siteinfo systemd pkgconfig -EXTRA_OEMAKE = "INSTALL_PREFIX=${D}" +EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${BUILD_CPPFLAGS}'" PARALLEL_MAKE = "" CCACHE = ""
meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb TARGET_CC_ARCH += "${LDFLAGS}" · line 42
Quoted 8 lines
meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb +1
-1@@ -36,12 +36,13 @@ TARGET_CC_ARCH += "${LDFLAGS}" PACKAGECONFIG ??= "" PACKAGECONFIG[elfutils] = "--with-elf, --without-elf, elfutils" +PACKAGECONFIG[libnl] = "--with-nl, --without-nl, libnl" EXTRA_OECONF = "--disable-embedded-perl \ --with-perl-modules=no \ - --enable-shared \
Why this change?
-J.
Quoted 25 lines
meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb +6
-0--disable-manuals \ --with-defaults \ + --with-install-prefix=${D} \ --with-persistent-directory=${localstatedir}/lib/net-snmp \ ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"@@ -51,10 +52,15 @@ EXTRA_OECONF += "--with-mib-modules=smux" CACHED_CONFIGUREVARS = " \ ac_cv_header_valgrind_valgrind_h=no \ ac_cv_header_valgrind_memcheck_h=no \ + ac_cv_ETC_MNTTAB=/etc/mtab \ + lt_cv_shlibpath_overrides_runpath=yes \ " do_configure_prepend() { export PERLPROG="${bindir}/env perl" + sed -i -e "s|I/usr/include|I${STAGING_INCDIR}|g" \ + "${S}"/configure \ + "${S}"/configure.d/config_os_libs2 } do_install_append() {Signature · 1 line
2.6.4
Signature · 2 lines
-Joe MacDonald. :wq