Patchwork [v2] patch: use PACKAGECONFIG to ensure correct dependency for xattr

login
register
mail settings
Submitter Saul Wold
Date May 22, 2013, 2:14 a.m.
Message ID <1369188863-26540-1-git-send-email-sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/50293/
State New
Headers show

Comments

Saul Wold - May 22, 2013, 2:14 a.m.
This will enable or disable xattr with the correct dependency
on attr as needed.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-devtools/patch/patch_2.7.1.bb |    3 +++
 1 file changed, 3 insertions(+)
Mark Hatle - May 22, 2013, 12:54 p.m.
On 5/21/13 9:14 PM, Saul Wold wrote:
> This will enable or disable xattr with the correct dependency
> on attr as needed.
>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>

Looks right.  :)

Acked-by: Mark Hatle <mark.hatle@windriver.com>

> ---
>   meta/recipes-devtools/patch/patch_2.7.1.bb |    3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/meta/recipes-devtools/patch/patch_2.7.1.bb b/meta/recipes-devtools/patch/patch_2.7.1.bb
> index 38df034..16e3cc4 100644
> --- a/meta/recipes-devtools/patch/patch_2.7.1.bb
> +++ b/meta/recipes-devtools/patch/patch_2.7.1.bb
> @@ -9,3 +9,6 @@ SRC_URI[sha256sum] = "c05f28668c3474bc63adcd48abae921d15e71c254fbebdbaeda40456d6
>   LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
>
>   acpaths = "-I ${S}/m4 "
> +
> +PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)}"
> +PACKAGECONFIG[xattr] = "--enable-xattr,--disable-xattr,attr,"
>

Patch

diff --git a/meta/recipes-devtools/patch/patch_2.7.1.bb b/meta/recipes-devtools/patch/patch_2.7.1.bb
index 38df034..16e3cc4 100644
--- a/meta/recipes-devtools/patch/patch_2.7.1.bb
+++ b/meta/recipes-devtools/patch/patch_2.7.1.bb
@@ -9,3 +9,6 @@  SRC_URI[sha256sum] = "c05f28668c3474bc63adcd48abae921d15e71c254fbebdbaeda40456d6
 LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 
 acpaths = "-I ${S}/m4 "
+
+PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)}"
+PACKAGECONFIG[xattr] = "--enable-xattr,--disable-xattr,attr,"