Hi Khem,

Le ven. 26 mars 2021 à 02:07, Khem Raj <raj.k...@gmail.com> a écrit :
>
> When LICENSE_FLAGS_WHITELIST does not have commercial in it then the
> the dependencies like ffmpeg will become invisible and render these
> packages unbuildable, therefore world build will report parse issues
>
> its better to exclude them from world build in such cases
>
> Signed-off-by: Khem Raj <raj.k...@gmail.com>
> Cc: Yann Dirson <y...@blade-group.com>
> ---
>  meta/recipes-multimedia/gstreamer/gst-examples_1.18.4.bb       | 2 ++
>  meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.18.4.bb | 3 +++
>  2 files changed, 5 insertions(+)
>
> diff --git a/meta/recipes-multimedia/gstreamer/gst-examples_1.18.4.bb 
> b/meta/recipes-multimedia/gstreamer/gst-examples_1.18.4.bb
> index 4670ab34db..196258e00f 100644
> --- a/meta/recipes-multimedia/gstreamer/gst-examples_1.18.4.bb
> +++ b/meta/recipes-multimedia/gstreamer/gst-examples_1.18.4.bb
> @@ -33,3 +33,5 @@ RRECOMMENDS_${PN} = "gstreamer1.0-plugins-base-meta \
>                        ${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", 
> "commercial", "gstreamer1.0-libav", "", d)} \
>                       ${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", 
> "commercial", "gstreamer1.0-plugins-ugly-meta", "", d)}"
>  RPROVIDES_${PN} += "gst-player gst-player-bin"
> +
> +EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", 
> "commercial", "0", "1", d)}"
> diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.18.4.bb 
> b/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.18.4.bb
> index 6a84f92f31..7c39e7da37 100644
> --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.18.4.bb
> +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.18.4.bb
> @@ -6,6 +6,7 @@ SECTION = "multimedia"
>
>  # ffmpeg has comercial license flags so add it as we need ffmpeg as a 
> dependency
>  LICENSE_FLAGS = "commercial"
> +

The LICENSE_FLAGS can then be dropped here, right ?

>  LICENSE = "LGPLv2+"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \
>                      
> file://ext/libav/gstav.h;beginline=1;endline=18;md5=a752c35267d8276fd9ca3db6994fca9c
>  \
> @@ -22,3 +23,5 @@ inherit meson pkgconfig upstream-version-is-even
>
>  FILES_${PN} += "${libdir}/gstreamer-1.0/*.so"
>  FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a"
> +
> +EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", 
> "commercial", "0", "1", d)}"
> --
> 2.31.0
>


-- 
Yann Dirson <y...@blade-group.com>
Blade / Shadow -- http://shadow.tech
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#149980): 
https://lists.openembedded.org/g/openembedded-core/message/149980
Mute This Topic: https://lists.openembedded.org/mt/81618084/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to