Skip to contentSkip to conversation

tracker-miners: enable ffmpeg dependency only if its whitelisted

PATCH In review akash hadke 2 participants 2 messages Jun 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tracker-miners: enable ffmpeg dependency only if its whitelisted

From: Mikko Rapeli <[email protected]>

ffmpeg isn't enabled by default. Fixes yocto-layer-check error:

ERROR: Nothing PROVIDES 'ffmpeg' (but /home/builder/src/base/meta-openembedded/meta-gnome/recipes-gnome/tracker/tracker-miners_2.3.3.bb DEPENDS on or otherwise requires it) ffmpeg was skipped: because it has a restricted license 'commercial'. Which is not whitelisted in LICENSE_FLAGS_WHITELIST
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'tracker-miners', 'ffmpeg']

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

---
 meta-gnome/recipes-gnome/tracker/tracker-miners_2.3.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-gnome/recipes-gnome/tracker/tracker-miners_2.3.3.bb +1 -1
index e2ced39..ccd22a0 100644
@@ -24,7 +24,7 @@ REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
 UNKNOWN_CONFIGURE_WHITELIST_append = " introspection"
 
 PACKAGECONFIG ??= " \
-    ffmpeg \
+    ${@bb.utils.contains_any('LICENSE_FLAGS_WHITELIST', 'commercial', 'ffmpeg', '', d)} \
     flac \
     gexiv2 \
     gstreamer \
Signature · 1 line
2.7.4
#1 lore raw

Backport the commit from master instead:
https://git.openembedded.org/meta-openembedded/commit/?id=c7b77535e0b08e8c89f41fa0508d3b275c95ab80

in this case it's the same, but using the same commit message and author will better indicate that it's straight cherry-pick from newer branch.

Quoted 44 lines · akash hadke

From: Mikko Rapeli <[email protected]>

ffmpeg isn't enabled by default. Fixes yocto-layer-check error:

ERROR: Nothing PROVIDES 'ffmpeg' (but /home/builder/src/base/meta-openembedded/meta-gnome/recipes-gnome/tracker/ tracker-miners_2.3.3.bb DEPENDS on or otherwise requires it) ffmpeg was skipped: because it has a restricted license 'commercial'. Which is not whitelisted in LICENSE_FLAGS_WHITELIST
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'tracker-miners', 'ffmpeg']

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

---
 meta-gnome/recipes-gnome/tracker/tracker-miners_2.3.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-gnome/recipes-gnome/tracker/tracker-miners_2.3.3.bb +1 -1
index e2ced39..ccd22a0 100644
@@ -24,7 +24,7 @@ REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
 UNKNOWN_CONFIGURE_WHITELIST_append = " introspection"
 
 PACKAGECONFIG ??= " \
-    ffmpeg \
+    ${@bb.utils.contains_any('LICENSE_FLAGS_WHITELIST', 'commercial',
 'ffmpeg', '', d)} \
     flac \
     gexiv2 \
     gstreamer \

--
2.7.4