There is currently an issue when a LICENSE for a package is defined
differently than how the package is defined in PACKAGES.

See bug tracker: http://bugzilla.yoctoproject.org/show_bug.cgi?id=13865

This results in LICENSE being taken instead of LICENSE_${PN}-gobject
because the latter is expanded to LICENSE_lib32-cairo-gobject while the
entry in PACKAGES is still cairo-object at the moment of setting
LICENSE_EXCLUSION in base.bbclass.

This means that instead of the expected MPL-1.1 | LGPLv2.1 license for
lib32-cairo-object, it is (MPL-1.1 | LGPLv2.1) & GPLv3+ which does not
work when you have INCOMPATIBLE_LICENSE set to GPLv3.

Same applies to cairo-perf-utils and cairo-script-interpreter.

Let's use ${PN} instead of hardcoded cairo in PACKAGES so that we
mitigate the multilib issue on this recipe level.

Signed-off-by: Quentin Schulz <[email protected]>
---
 meta/recipes-graphics/cairo/cairo_1.16.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/cairo/cairo_1.16.0.bb 
b/meta/recipes-graphics/cairo/cairo_1.16.0.bb
index b772c2ece2..e18159e96c 100644
--- a/meta/recipes-graphics/cairo/cairo_1.16.0.bb
+++ b/meta/recipes-graphics/cairo/cairo_1.16.0.bb
@@ -72,7 +72,7 @@ do_install_append () {
        rmdir -p --ignore-fail-on-non-empty ${D}${libdir}/cairo
 }
 
-PACKAGES =+ "cairo-gobject cairo-script-interpreter cairo-perf-utils"
+PACKAGES =+ "${PN}-gobject ${PN}-script-interpreter ${PN}-perf-utils"
 
 SUMMARY_cairo-gobject = "The Cairo library GObject wrapper library"
 DESCRIPTION_cairo-gobject = "A GObject wrapper library for the Cairo API."
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#137149): 
https://lists.openembedded.org/g/openembedded-core/message/137149
Mute This Topic: https://lists.openembedded.org/mt/72893891/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to