]> code.ossystems Code Review - openembedded-core.git/commitdiff
rsync: control ipv6 support based on DISTRO_FEATURES
authorJackie Huang <jackie.huang@windriver.com>
Mon, 22 Aug 2016 09:06:07 +0000 (17:06 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Sep 2016 22:45:45 +0000 (23:45 +0100)
Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rsync/rsync.inc
meta/recipes-devtools/rsync/rsync_2.6.9.bb
meta/recipes-devtools/rsync/rsync_3.1.2.bb

index 8739c9c620e7ce944e81b7ea615018416ffeb174..37897aba801d81860e5a47ce59836b243d482b59 100644 (file)
@@ -16,3 +16,5 @@ do_install_append() {
 }
 
 EXTRA_OEMAKE='STRIP=""'
+
+PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
index 5a19e21a0310daba8f5ed5e3f7909451b36b3b8d..efdf255a07dcc96e743a151d096ab3c601519ce1 100644 (file)
@@ -11,3 +11,5 @@ LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=6d5a9d4c4d3af25cd68fd83e8a8cb09c"
 
 PR = "r4"
+
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
index 798fecc2716d7c5aca9bebd696d535fa2bee0b18..c6cb3310fc03323a68c7a09126220aca04527501 100644 (file)
@@ -9,7 +9,9 @@ SRC_URI[sha256sum] = "ecfa62a7fa3c4c18b9eccd8c16eaddee4bd308a76ea50b5c02a5840f09
 LICENSE = "GPLv3+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 
-PACKAGECONFIG ??= "acl attr"
+PACKAGECONFIG ??= "acl attr \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)} \
+"
 PACKAGECONFIG[acl] = "--enable-acl-support,--disable-acl-support,acl,"
 PACKAGECONFIG[attr] = "--enable-xattr-support,--disable-xattr-support,attr,"