Skip to contentSkip to conversation

patch: use PACKAGECONFIG to ensure correct dependency for xattr

PATCH In review Saul Wold 2 participants 2 messages May 22, 2013

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH v2 1/1 patch: use PACKAGECONFIG to ensure correct dependency for xattr

This will enable or disable xattr with the correct dependency on attr as needed.

---
 meta/recipes-devtools/patch/patch_2.7.1.bb |    3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/patch/patch_2.7.1.bb +3 -0
index 38df034..16e3cc4 100644
@@ -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," 
Signature · 1 line
1.7.10.4
Acked-by on v2 1/1
#1 lore raw
Quoted 4 lines · Saul Wold

This will enable or disable xattr with the correct dependency on attr as needed.

Looks right. :)

Quoted 16 lines
---
  meta/recipes-devtools/patch/patch_2.7.1.bb |    3 +++
  1 file changed, 3 insertions(+)
meta/recipes-devtools/patch/patch_2.7.1.bb +3 -0
index 38df034..16e3cc4 100644
@@ -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,"