Skip to contentSkip to conversation

net-snmp: enable ipv6 support

PATCH In review Yue Tao 2 participants 2 messages May 4, 2016 – May 5, 2016

lore
Share & tools
lore

Yue Tao

author
#0 lore raw

PATCH 1/1 net-snmp: enable ipv6 support

From: Zhu Yanjun <[email protected]>

Add packageconfig for ipv6 and enable it when it's defined in distro_features.

---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb +3 -0
index 1a50932..e4d7b17 100644
@@ -39,6 +39,9 @@ PACKAGECONFIG ??= ""
 PACKAGECONFIG[elfutils] = "--with-elf, --without-elf, elfutils"
 PACKAGECONFIG[libnl] = "--with-nl, --without-nl, libnl"
 
+PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
+PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,,"
+
 EXTRA_OECONF = "--disable-embedded-perl \
                 --with-perl-modules=no \
                 --disable-manuals \
Signature · 1 line
1.9.1
#1 lore raw
Quoted 15 lines · Yue Tao

From: Zhu Yanjun <[email protected]>

Add packageconfig for ipv6 and enable it when it's defined in distro_features.

---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb +0 -0
index 1a50932..e4d7b17 100644

meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb PACKAGECONFIG ??= "" · line 43

Quoted 5 lines
meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb +2 -0
@@ -39,6 +39,9 @@ PACKAGECONFIG ??= ""
 PACKAGECONFIG[elfutils] = "--with-elf, --without-elf, elfutils"
 PACKAGECONFIG[libnl] = "--with-nl, --without-nl, libnl"
 
+PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
+PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,,"

Don't use deprecated base_contains

I've fixed it in master-next.

Quoted 12 lines
meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb +1 -0
+
 EXTRA_OECONF = "--disable-embedded-perl \
                 --with-perl-modules=no \
                 --disable-manuals \
Signature · 7 lines
1.9.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]