From: Jackie Huang Date: Mon, 22 Aug 2016 09:06:08 +0000 (+0800) Subject: wget: control ipv6 support based on DISTRO_FEATURES X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~24423 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab699155f2fa6f19b4020e7d1c2097e867d9e977;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git wget: control ipv6 support based on DISTRO_FEATURES Add PACKAGECONFIG for ipv6 and control it based on DISTRO_FEATURES instead of unconditionally enabled. Signed-off-by: Jackie Huang Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/wget/wget.inc b/meta/recipes-extended/wget/wget.inc index dc381a62800..c4abfe490e0 100644 --- a/meta/recipes-extended/wget/wget.inc +++ b/meta/recipes-extended/wget/wget.inc @@ -9,7 +9,7 @@ INC_PR = "r16" inherit autotools gettext texinfo update-alternatives pkgconfig -EXTRA_OECONF = "--enable-ipv6 --with-ssl=gnutls --disable-rpath --disable-iri \ +EXTRA_OECONF = "--with-ssl=gnutls --disable-rpath --disable-iri \ --without-libgnutls-prefix ac_cv_header_uuid_uuid_h=no" ALTERNATIVE_${PN} = "wget" @@ -20,8 +20,9 @@ RRECOMMENDS_${PN} += "ca-certificates" BBCLASSEXTEND += "nativesdk" -PACKAGECONFIG ??= "" +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}" PACKAGECONFIG[libuuid] = "--with-libuuid, --without-libuuid,util-linux" +PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," # Let aclocal use the relative path for the m4 file rather than # absolute, otherwise there might be an "Argument list too long" error