Skip to contentSkip to conversation

packagegroup-fsl: Make v4l-utils conditional on X11

PATCH In review Eric Nelson 2 participants 3 messages Oct 27, 2013 – Oct 28, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 packagegroup-fsl: Make v4l-utils conditional on X11

v4l-utils will pull in X11 if included, and this patch allows it to be skipped.

---
 recipes-fsl/packagegroup/packagegroup-fsl.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-fsl/packagegroup/packagegroup-fsl.bb +1 -1
index da931d6..80ce5a4 100644
@@ -62,7 +62,7 @@ RDEPENDS_${PN}-tools-testapps = " \
     python-subprocess \
     python-datetime \
     python-json \
-    v4l-utils \
+    ${@base_contains('DISTRO_FEATURES', 'x11', 'v4l-utils', '', d)} \
     ethtool \
     mtd-utils \
     mtd-utils-ubifs \
Signature · 1 line
1.8.1.2
#1 lore raw
Quoted 2 lines · Eric Nelson

v4l-utils will pull in X11 if included, and this patch allows it to be skipped.

While this is okay as a temporary fix, it would be better if we patched v4l-utils to not depend on X11 instead. The difficulty with that approach is that I don't think the v4l-utils configure script has an option to disable X11.

Quoted 26 lines
---
 recipes-fsl/packagegroup/packagegroup-fsl.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-fsl/packagegroup/packagegroup-fsl.bb +1 -2
index da931d6..80ce5a4 100644
@@ -62,7 +62,7 @@ RDEPENDS_${PN}-tools-testapps = " \
     python-subprocess \
     python-datetime \
     python-json \
-    v4l-utils \
+    ${@base_contains('DISTRO_FEATURES', 'x11', 'v4l-utils', '', d)} \
     ethtool \
     mtd-utils \
     mtd-utils-ubifs \
--

1.8.1.2

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

#2 lore raw

Hi Philip,

Quoted 10 lines · Philip Craig
Quoted 2 lines · Eric Nelson

v4l-utils will pull in X11 if included, and this patch allows it to be skipped.

While this is okay as a temporary fix, it would be better if we patched v4l-utils to not depend on X11 instead. The difficulty with that approach is that I don't think the v4l-utils configure script has an option to disable X11.

Yep. So says commit fa4d5d1f in meta-openembedded.

Having never used alsa-utils, I'm kinda trusting Martin that it's non-trivial.

Quoted 21 lines
Quoted 21 lines
---
  recipes-fsl/packagegroup/packagegroup-fsl.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
recipes-fsl/packagegroup/packagegroup-fsl.bb +1 -2
index da931d6..80ce5a4 100644
@@ -62,7 +62,7 @@ RDEPENDS_${PN}-tools-testapps = " \
      python-subprocess \
      python-datetime \
      python-json \
-    v4l-utils \
+    ${@base_contains('DISTRO_FEATURES', 'x11', 'v4l-utils', '', d)} \
      ethtool \
      mtd-utils \
      mtd-utils-ubifs \
--

1.8.1.2