<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#943634;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="SV" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#943634;mso-fareast-language:EN-US">It is not possible to whitelist packages, WHITELIST_&lt;license&gt; only takes recipe names. This seems like a shortcoming, and doesn’t match INCOMPATIBLE_LICENSE, which works
 with packages… I am not sure how to address that shortcoming though, as it wouldn’t be right to allow mixing of recipes and packages in WHITELIST_&lt;license&gt;, which means a new variable would need to be introduced for whitelisting individual packages, and I
 do not know if it is worth the trouble.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#943634;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#943634;mso-fareast-language:EN-US">Setting INCOMPATIBLE_LICENSE per image is only available with master, so that is not yet an option (we’re currently at Warrior and won’t reach Dunfell till sometime this
 fall).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#943634;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#943634;mso-fareast-language:EN-US">That said, I do not have any strong feelings about this patch. The issue was raised by some of our developers, and we have a corresponding patch locally, so I thought I’d
 just pass it along. If there is no interest in in, then just drop it.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#943634;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#943634;mso-fareast-language:EN-US">//Peter<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#943634;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Alexander Kanavin &lt;alex.kanavin@gmail.com&gt;
<br>
<b>Sent:</b> den 22 december 2019 14:21<br>
<b>To:</b> Peter Kjellerstedt &lt;peter.kjellerstedt@axis.com&gt;<br>
<b>Cc:</b> openembedded-core@lists.openembedded.org<br>
<b>Subject:</b> Re: [OE-core] [master][zeus][PATCH] cairo: Adapt license for cairo-dbg and cairo-src based on contents<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">-dbg and -src packages are unlikely to be shipped to customers. How about either whitelisting them globally, or setting INCOMPABIBLE_LICENSE per image?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">What the patch does with LICENSE-dbg/src feels hack-ish to be honest; also there are other recipes with a similar layout which would also need similar fixups.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Alex<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">On Sun, 22 Dec 2019 at 14:01, Peter Kjellerstedt &lt;<a href="mailto:peter.kjellerstedt@axis.com">peter.kjellerstedt@axis.com</a>&gt; wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">*ping*<br>
<br>
//Peter<br>
<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:openembedded-core-bounces@lists.openembedded.org" target="_blank">
openembedded-core-bounces@lists.openembedded.org</a> &lt;openembedded-core-<br>
&gt; <a href="mailto:bounces@lists.openembedded.org" target="_blank">bounces@lists.openembedded.org</a>&gt; On Behalf Of Peter Kjellerstedt<br>
&gt; Sent: den 5 december 2019 23:26<br>
&gt; To: <a href="mailto:openembedded-core@lists.openembedded.org" target="_blank">openembedded-core@lists.openembedded.org</a><br>
&gt; Subject: [OE-core] [master][zeus][PATCH] cairo: Adapt license for cairo-<br>
&gt; dbg and cairo-src based on contents<br>
&gt; <br>
&gt; Introduce a PACKAGECONFIG &quot;trace&quot; to disable cairo-trace (the only<br>
&gt; part of the code licensed as GPL-3.0, and which is normally packaged<br>
&gt; separately in cairo-perf-utils). By disabling this, we can adapt the<br>
&gt; licenses for cairo-dbg and cairo-src so that they do not include<br>
&gt; &quot;GPLv3&#43;&quot; when trace is disabled and thus they can be used also when,<br>
&gt; e.g., GPL-3.0 is blacklisted in INCOMPATIBLE_LICENSE.<br>
&gt; <br>
&gt; The &quot;trace&quot; PACKAGECONFIG is enabled by default for backwards<br>
&gt; compatibility.<br>
&gt; <br>
&gt; Signed-off-by: Peter Kjellerstedt &lt;<a href="mailto:peter.kjellerstedt@axis.com" target="_blank">peter.kjellerstedt@axis.com</a>&gt;<br>
&gt; ---<br>
&gt;&nbsp; meta/recipes-graphics/cairo/<a href="http://cairo_1.16.0.bb" target="_blank">cairo_1.16.0.bb</a> | 8 &#43;&#43;&#43;&#43;&#43;&#43;&#43;-<br>
&gt;&nbsp; 1 file changed, 7 insertions(&#43;), 1 deletion(-)<br>
&gt; <br>
&gt; diff --git a/meta/recipes-graphics/cairo/<a href="http://cairo_1.16.0.bb" target="_blank">cairo_1.16.0.bb</a> b/meta/recipes-<br>
&gt; graphics/cairo/<a href="http://cairo_1.16.0.bb" target="_blank">cairo_1.16.0.bb</a><br>
&gt; index e3de3f6164..36a7b3c180 100644<br>
&gt; --- a/meta/recipes-graphics/cairo/<a href="http://cairo_1.16.0.bb" target="_blank">cairo_1.16.0.bb</a><br>
&gt; &#43;&#43;&#43; b/meta/recipes-graphics/cairo/<a href="http://cairo_1.16.0.bb" target="_blank">cairo_1.16.0.bb</a><br>
&gt; @@ -17,6 &#43;17,10 @@ LICENSE_${PN}-doc = &quot;MPL-1.1 | LGPLv2.1&quot;<br>
&gt;&nbsp; LICENSE_${PN}-gobject = &quot;MPL-1.1 | LGPLv2.1&quot;<br>
&gt;&nbsp; LICENSE_${PN}-script-interpreter = &quot;MPL-1.1 | LGPLv2.1&quot;<br>
&gt;&nbsp; LICENSE_${PN}-perf-utils = &quot;GPLv3&#43;&quot;<br>
&gt; &#43;# Adapt the licenses for cairo-dbg and cairo-src depending on whether<br>
&gt; &#43;# cairo-trace is being built.<br>
&gt; &#43;LICENSE_${PN}-dbg = &quot;(MPL-1.1 |<br>
&gt; LGPLv2.1)<a href="mailto:$%7b@bb.utils.contains('PACKAGECONFIG">${@bb.utils.contains('PACKAGECONFIG</a>', 'trace', ' &amp; GPLv3&#43;', '',<br>
&gt; d)}&quot;<br>
&gt; &#43;LICENSE_${PN}-src = &quot;(MPL-1.1 |<br>
&gt; LGPLv2.1)<a href="mailto:$%7b@bb.utils.contains('PACKAGECONFIG">${@bb.utils.contains('PACKAGECONFIG</a>', 'trace', ' &amp; GPLv3&#43;', '',<br>
&gt; d)}&quot;<br>
&gt; <br>
&gt;&nbsp; LIC_FILES_CHKSUM = &quot;<a href="file://COPYING;md5=e73e999e0c72b5ac9012424fa157ad77">file://COPYING;md5=e73e999e0c72b5ac9012424fa157ad77</a>&quot;<br>
&gt; <br>
&gt; @@ -40,7 &#43;44,8 @@ X11DEPENDS = &quot;virtual/libx11 libsm libxrender libxext&quot;<br>
&gt; <br>
&gt;&nbsp; PACKAGECONFIG ??= &quot;<a href="mailto:$%7b@bb.utils.filter('DISTRO_FEATURES',%20'directfb',%20d)%7d%0b%3e%20\%0b%3e&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;$%7b@bb.utils.contains('DISTRO_FEATURES',%20'x11',%20'x11%0b%3e%20xcb',%20'',%20d)%7d%20\%0b%3e%20-&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;%20&nbsp;$%7b@bb.utils.contains('DISTRO_FEATURES',%20'x11%20opengl',%0b%3e%20'opengl',%20'',%20d)%7d">${@bb.utils.filter('DISTRO_FEATURES',
 'directfb', d)}<br>
&gt; \<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11<br>
&gt; xcb', '', d)} \<br>
&gt; -&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl',<br>
&gt; 'opengl', '', d)}</a>&quot;<br>
&gt; &#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:$%7b@bb.utils.contains('DISTRO_FEATURES">${@bb.utils.contains('DISTRO_FEATURES</a>', 'x11 opengl',<br>
&gt; 'opengl', '', d)} \<br>
&gt; &#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;trace&quot;<br>
&gt; <br>
&gt;&nbsp; PACKAGECONFIG[x11] = &quot;--with-x=yes -enable-xlib,--with-x=no --disable-<br>
&gt; xlib,${X11DEPENDS}&quot;<br>
&gt;&nbsp; PACKAGECONFIG[xcb] = &quot;--enable-xcb,--disable-xcb,libxcb&quot;<br>
&gt; @@ -49,6 &#43;54,7 @@ PACKAGECONFIG[valgrind] = &quot;--enable-valgrind=yes,--<br>
&gt; disable-valgrind,valgrind&quot;<br>
&gt;&nbsp; PACKAGECONFIG[egl] = &quot;--enable-egl=yes,--disable-egl,virtual/egl&quot;<br>
&gt;&nbsp; PACKAGECONFIG[glesv2] = &quot;--enable-glesv2,--disable-<br>
&gt; glesv2,virtual/libgles2&quot;<br>
&gt;&nbsp; PACKAGECONFIG[opengl] = &quot;--enable-gl,--disable-gl,virtual/libgl&quot;<br>
&gt; &#43;PACKAGECONFIG[trace] = &quot;--enable-trace,--disable-trace&quot;<br>
&gt; <br>
&gt;&nbsp; EXTRA_OECONF &#43;= &quot; \<br>
&gt;&nbsp; &nbsp; &nbsp; <a href="mailto:$%7b@bb.utils.contains('TARGET_FPU">${@bb.utils.contains('TARGET_FPU</a>', 'soft', '--disable-some-floating-<br>
&gt; point', '', d)} \<br>
&gt; --<br>
&gt; 2.21.0<br>
&gt; <br>
&gt; --<br>
&gt; _______________________________________________<br>
&gt; Openembedded-core mailing list<br>
&gt; <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" target="_blank">
http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>