Received: from bsmtp.bon.at (bsmtp.bon.at [213.33.87.14]) by mx.groups.io with SMTP id smtpd.web10.12678.1587060672305567497 for ; Thu, 16 Apr 2020 11:11:13 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: streamunlimited.com, ip: 213.33.87.14, mailfrom: quentin.schulz@streamunlimited.com) Received: from qschulz (vpn.streamunlimited.com [91.114.0.140]) by bsmtp.bon.at (Postfix) with ESMTPSA id 4936jS4cD4z5tlC; Thu, 16 Apr 2020 20:11:08 +0200 (CEST) Date: Thu, 16 Apr 2020 20:11:07 +0200 From: "Quentin Schulz" To: Paul Barker Cc: openembedded-core@lists.openembedded.org Subject: Re: [OE-core] [PATCH] cairo: work around multilib issue resulting in improper handling of licenses Message-ID: <20200416181107.c45s5wjnu2rioovv@qschulz> References: <20200409110423.11841-1-quentin.schulz@streamunlimited.com> <20200409121700.66bffc1c@ub1910> MIME-Version: 1.0 In-Reply-To: <20200409121700.66bffc1c@ub1910> User-Agent: NeoMutt/20180716 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, On Thu, Apr 09, 2020 at 12:17:00PM +0100, Paul Barker wrote: > On Thu, 9 Apr 2020 13:04:23 +0200 > "Quentin Schulz" wrote: > > > 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 > > --- > > 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." > > Should we also change these entries to `SUMMARY_${PN}-gobject` and > `DESCRIPTION_${PN}-gobject`? There may be others as well, I'm just looking at > the diff not the full recipe. > Please ignore, the issue is being worked on by Richard in the linked bugzilla entry. Quentin