diff options
| author | Roy Li <rongqing.li@windriver.com> | 2015-12-31 17:01:09 +0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2016-04-17 13:45:29 -0700 |
| commit | c94fdd75eeb5b6463b613d542205302fc44650ef (patch) | |
| tree | 40daf7ad56e41a374caea849477f8ee95e63047e /meta-networking | |
| parent | 0fbb0349c58028ac5b93cc8295fff794e15c2e49 (diff) | |
| download | meta-openembedded-c94fdd75eeb5b6463b613d542205302fc44650ef.tar.gz | |
net-snmp: fix the replacement in net-snmp-config
when net-snmp-config is used to configure by other package, and fail since
/libnl3 is not found, in fact, it should be -I/usr/include/libnl3, and is
modified as /libnl3 incorrectly.
instead of modify the net-snmp-config for target, the one under
${bindir_crossscripts} should be replaced with ${TAGING_INCDIR}
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-networking')
| -rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb index 7b51cbbf2b..06f3707009 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb | |||
| @@ -70,8 +70,7 @@ do_install_append() { | |||
| 70 | install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/snmpd | 70 | install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/snmpd |
| 71 | install -m 644 ${WORKDIR}/snmpd.conf ${D}${sysconfdir}/snmp/ | 71 | install -m 644 ${WORKDIR}/snmpd.conf ${D}${sysconfdir}/snmp/ |
| 72 | install -m 644 ${WORKDIR}/snmptrapd.conf ${D}${sysconfdir}/snmp/ | 72 | install -m 644 ${WORKDIR}/snmptrapd.conf ${D}${sysconfdir}/snmp/ |
| 73 | sed -e "s@-I/usr/include@@g" \ | 73 | sed -e "s@^prefix=.*@prefix=${STAGING_DIR_HOST}@g" \ |
| 74 | -e "s@^prefix=.*@prefix=${STAGING_DIR_HOST}@g" \ | ||
| 75 | -e "s@^exec_prefix=.*@exec_prefix=${STAGING_DIR_HOST}@g" \ | 74 | -e "s@^exec_prefix=.*@exec_prefix=${STAGING_DIR_HOST}@g" \ |
| 76 | -e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \ | 75 | -e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \ |
| 77 | -e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \ | 76 | -e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \ |
| @@ -105,6 +104,8 @@ net_snmp_sysroot_preprocess () { | |||
| 105 | if [ -e ${D}${bindir}/net-snmp-config ]; then | 104 | if [ -e ${D}${bindir}/net-snmp-config ]; then |
| 106 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ | 105 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ |
| 107 | install -m 755 ${D}${bindir}/net-snmp-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/ | 106 | install -m 755 ${D}${bindir}/net-snmp-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/ |
| 107 | sed -e "s@-I/usr/include@-I${STAGING_INCDIR}@g" \ | ||
| 108 | -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/net-snmp-config | ||
| 108 | fi | 109 | fi |
| 109 | } | 110 | } |
| 110 | 111 | ||
