Skip to contentSkip to conversation

tracker-miners: Check for commercial license to enable ffmpeg

PATCH New Khem Raj 1 participant 4 messages Mar 26, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/4 tracker-miners: Check for commercial license to enable ffmpeg

Cc Andreas Müller <[email protected]>
---
 meta-gnome/recipes-gnome/tracker/tracker-miners_2.3.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-gnome/recipes-gnome/tracker/tracker-miners_2.3.5.bb +1 -1
index 097bcdb6f1..07fa10a0e2 100644
@@ -23,7 +23,7 @@ REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
 UNKNOWN_CONFIGURE_WHITELIST_append = " introspection"
 
 PACKAGECONFIG ??= " \
-    ffmpeg \
+    ${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "ffmpeg", "", d)} \
     flac \
     gexiv2 \
     gstreamer \
Signature · 1 line
2.31.0
author
#1 lore raw

PATCH 2/4 mpd: Check for commercial in LICENSE_FLAGS_WHITELIST

aac and ffmpeg could be enabled only if they have been whitelisted by user

---
 .../recipes-multimedia/musicpd/mpd_0.22.6.bb          | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
meta-multimedia/recipes-multimedia/musicpd/mpd_0.22.6.bb +8 -3
index e91bb5d978..b1fa96e1be 100644
@@ -2,8 +2,6 @@ SUMMARY = "Music Player Daemon"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
-LICENSE_FLAGS = "${@bb.utils.contains_any('PACKAGECONFIG', ['ffmpeg', 'aac'], 'commercial', '', d)}"
-
 HOMEPAGE ="http://www.musicpd.org"
 
 inherit meson useradd systemd pkgconfig
@@ -28,7 +26,14 @@ S = "${WORKDIR}/git"
 
 EXTRA_OEMESON += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-Dsystemd=enabled -Dsystemd_system_unit_dir=${systemd_system_unitdir} -Dsystemd_user_unit_dir=${systemd_system_unitdir}', '-Dsystemd=disabled', d)}"
 
-PACKAGECONFIG ??= "aac alsa ao bzip2 daemon ffmpeg fifo flac fluidsynth iso9660 jack libsamplerate httpd mms mpg123 modplug sndfile upnp openal opus oss recorder vorbis wavpack zlib"
+PACKAGECONFIG ??= "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "aac", "", d)} \
+                   alsa ao bzip2 daemon \
+                   ${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "ffmpeg aac", "", d)} \
+                   fifo flac fluidsynth iso9660 \
+                   jack libsamplerate httpd \
+                   mms mpg123 modplug sndfile \
+                   upnp openal opus oss recorder \
+                   vorbis wavpack zlib"
 
 PACKAGECONFIG[aac] = "-Dfaad=enabled,-Dfaad=disabled,faad2"
 PACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib"
Signature · 1 line
2.31.0
author
#2 lore raw

PATCH 3/4 mpv: Exclude from world if commercial is not in inclusion list

In reply to Khem Raj
---
 meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb +1 -0
index 6a3fd97157..171eef7b73 100644
@@ -111,3 +111,4 @@ FILES_${PN} += " \
     ${datadir}/zsh \
     ${datadir}/bash-completion \
     "
+EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "0", "1", d)}"
Signature · 1 line
2.31.0
author
#3 lore raw

PATCH 4/4 sox: Exclude from world if commercial is not in inclusion list

In reply to Khem Raj

It needs ffmpeg

Cc Andreas Müller <[email protected]>
---
 meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb +3 -0
index 21fddd1e19..4c3f37913a 100644
@@ -38,3 +38,6 @@ SRC_URI[md5sum] = "d04fba2d9245e661f245de0577f48a33"
 SRC_URI[sha256sum] = "b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c"
 
 inherit autotools pkgconfig
+
+EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "0", "1", d)}"
+
Signature · 1 line
2.31.0