diff mbox series

[meta-python,wrynose,18/36] python3-mpv: propagate ffmpeg's commercial LICENSE_FLAGS

Message ID 20260804194003.3158916-18-ankur.tyagi85@gmail.com
State New
Headers show
Series [meta-oe,wrynose,1/36] valkey: upgrade 9.0.4 -> 9.0.5 | expand

Commit Message

Ankur Tyagi Aug. 4, 2026, 7:39 p.m. UTC
From: Khem Raj <khem.raj@oss.qualcomm.com>

python3-mpv RDEPENDS on mpv, which requires ffmpeg (LICENSE_FLAGS =
"commercial"). With "commercial" not in LICENSE_FLAGS_ACCEPTED, parsing
the universe target - which ignores EXCLUDE_FROM_WORLD - reports:

  WARNING: Nothing RPROVIDES 'mpv' (but .../python3-mpv_1.0.8.bb
           RDEPENDS on or otherwise requires it)
  NOTE: Runtime target 'python3-mpv' is unbuildable, removing...

Now that mpv carries LICENSE_FLAGS = "commercial" and is skipped, carry
the same flag here so python3-mpv is likewise skipped cleanly in both
world and universe instead of surfacing as an unbuildable dependency.
The redundant EXCLUDE_FROM_WORLD is dropped.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 2ba9dd882358ae60a952eb7de22d562c20056a79)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 meta-python/recipes-devtools/python/python3-mpv_1.0.8.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-mpv_1.0.8.bb b/meta-python/recipes-devtools/python/python3-mpv_1.0.8.bb
index 2d345cfc55..19b84334f1 100644
--- a/meta-python/recipes-devtools/python/python3-mpv_1.0.8.bb
+++ b/meta-python/recipes-devtools/python/python3-mpv_1.0.8.bb
@@ -14,4 +14,8 @@  RDEPENDS:${PN} += "\
     mpv \
     python3-ctypes \
 "
-EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "0", "1", d)}"
+# RDEPENDS on mpv, which propagates ffmpeg's LICENSE_FLAGS = "commercial";
+# carry the same flag so this recipe is cleanly skipped (in both world and
+# universe) unless "commercial" is in LICENSE_FLAGS_ACCEPTED, rather than
+# surfacing as an unbuildable "Nothing RPROVIDES 'mpv'" dependency.
+LICENSE_FLAGS = "commercial"