<br><br><div class="gmail_quote">On Fri, Dec 9, 2011 at 5:51 AM, Koen Kooi <span dir="ltr">&lt;<a href="mailto:koen@dominion.thruhere.net">koen@dominion.thruhere.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Op 9 dec. 2011, om 14:46 heeft Ulf Samuelsson het volgende geschreven:<br>
<div><div class="h5"><br>
&gt; On 2011-12-09 12:45, Richard Purdie wrote:<br>
&gt;&gt; On Fri, 2011-12-09 at 03:21 +0100, Ulf Samuelsson wrote:<br>
&gt;&gt;&gt; On 2011-12-07 22:53, Khem Raj wrote:<br>
&gt;&gt;&gt;&gt; On (07/12/11 11:34), Beth Flanagan wrote:<br>
&gt;&gt;&gt;&gt;&gt; From: Christopher Larson&lt;<a href="mailto:kergoth@gmail.com">kergoth@gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Deploys sources for recipes for compliance with copyleft-style licenses<br>
&gt;&gt;&gt;&gt;&gt; Defaults to using symlinks, as it&#39;s a quick operation, and one can easily<br>
&gt;&gt;&gt;&gt;&gt; follow the links when making use of the files (e.g. tar with the -h arg).<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; By default, includes all GPL and LGPL, and excludes CLOSED and Proprietary.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Signed-off-by: Christopher Larson&lt;<a href="mailto:kergoth@gmail.com">kergoth@gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt; ---<br>
&gt;&gt;&gt;&gt;&gt;   meta/classes/copyleft_compliance.bbclass |   94 ++++++++++++++++++++++++++++++<br>
&gt;&gt;&gt;&gt;&gt;   1 files changed, 94 insertions(+), 0 deletions(-)<br>
&gt;&gt;&gt;&gt;&gt;   create mode 100644 meta/classes/copyleft_compliance.bbclass<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; diff --git a/meta/classes/copyleft_compliance.bbclass b/meta/classes/copyleft_compliance.bbclass<br>
&gt;&gt;&gt;&gt;&gt; new file mode 100644<br>
&gt;&gt;&gt;&gt;&gt; index 0000000..5d9ab11<br>
&gt;&gt;&gt;&gt;&gt; --- /dev/null<br>
&gt;&gt;&gt;&gt;&gt; +++ b/meta/classes/copyleft_compliance.bbclass<br>
&gt;&gt;&gt;&gt;&gt; @@ -0,0 +1,94 @@<br>
&gt;&gt;&gt;&gt;&gt; +# Deploy sources for recipes for compliance with copyleft-style licenses<br>
&gt;&gt;&gt;&gt;&gt; +# Defaults to using symlinks, as it&#39;s a quick operation, and one can easily<br>
&gt;&gt;&gt;&gt;&gt; +# follow the links when making use of the files (e.g. tar with the -h arg).<br>
&gt;&gt;&gt;&gt;&gt; +#<br>
&gt;&gt;&gt;&gt;&gt; +# By default, includes all GPL and LGPL, and excludes CLOSED and Proprietary.<br>
&gt;&gt;&gt;&gt;&gt; +#<br>
&gt;&gt;&gt;&gt;&gt; +# vi:sts=4:sw=4:et<br>
&gt;&gt;&gt;&gt;&gt; +<br>
&gt;&gt;&gt;&gt;&gt; +COPYLEFT_SOURCES_DIR ?= &#39;${DEPLOY_DIR}/copyleft_sources&#39;<br>
&gt;&gt;&gt;&gt;&gt; +<br>
&gt;&gt;&gt;&gt;&gt; +COPYLEFT_LICENSE_INCLUDE ?= &#39;GPL* LGPL*&#39;<br>
&gt;&gt;&gt;&gt;&gt; +COPYLEFT_LICENSE_INCLUDE[type] = &#39;list&#39;<br>
&gt;&gt;&gt;&gt;&gt; +COPYLEFT_LICENSE_INCLUDE[doc] = &#39;Space separated list of globs which include licenses&#39;<br>
&gt;&gt;&gt; If the Ampersand is not accepted in the LICENSE string, then the recipes<br>
&gt;&gt;&gt; below are broken.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;  From my latest build, at least recipes with &quot;&amp;&amp;&quot; fail...<br>
&gt;&gt;&gt; This means that nothing really completes that I have tested.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; MAJOR BREAKAGE!!!!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I think it would be better FIRST to fix the recipes, and then introduce<br>
&gt;&gt;&gt; checking.<br>
&gt;&gt; I think the single ampersand is accepted, the double might no longer be.<br>
&gt; Yes, the single ampersand works, but the double ampersand will break the build<br>
&gt; as well as the slash &#39;/&#39;.<br>
&gt;<br>
&gt;<br>
&gt;&gt; Certainly oe-core does continue to work. I hadn&#39;t realised there were<br>
&gt;&gt; incompatibilities introduced by this patch :(<br>
&gt;&gt;<br>
&gt;&gt; Not sure what we should do about this at this point, probably fix the<br>
&gt;&gt; layers :/.<br>
&gt;&gt;<br>
&gt; True, question is who and when ?<br>
<br>
</div></div>The people complaining about it and right now.<br></blockquote><div><br><br>I know there was a conversation a while back about standardizing this field and documenting it. If anything fell out of it, IDK, If there is any documentation for what is valid form, I&#39;ve not seen it. If it exists, could someone point me to it? If it doesn&#39;t could we get a standards discussion going here about how to move forward with this so we have something documented? I&#39;ve seen a bunch of different standards here and I really want to get something nailed down as trying to write code for a field that isn&#39;t well defined is a pain. <br>
<br>A few things I&#39;ve been thinking about here.<br><br>- LICENSE should be ast parsable. <br>- license within LICENSE should have no spaces.<br>- At last count there are 100+ OSI opensource licenses. I&#39;ve been pulling from <a href="http://spdx.org">spdx.org</a> and trying to use their naming convention while also supporting mappings to non-spdx naming conventions. However there are some LICENSE entries that are just wrong (GPL without a version) and need to be fixed. <br>
- the operands I&#39;ve been supporting are &amp; or |, with a modifier of +. I&#39;ve also been supporting parens grouping of license. example: &quot;(Foo-1.0 &amp; Bar-1.0 ) | (Foo-2.0 &amp; Bar-2.0)&quot;. <br>- There is an actual issue with LICENSE in that LICENSE is recipe based. We should probably discuss the ability to support LICENSE_pkg, because the recipe may contain multiple packages some of which don&#39;t share a license in LICENSE.<br>
- LICENSE priority should probably be dealt in a config but not in the recipe. To me, it would make more sense as the main use case would probably center around &quot;If I can avoid getting XXX 
license in this image, please do&quot;.<br>
<br>I&#39;ll look at this to see if there is a way to handle some of the issues this code introduces better, as I&#39;m sure other 3rd party layers exist that will have the same issue with this.<br><br>-b<br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
-----BEGIN PGP SIGNATURE-----<br>
<br>
iEYEARECAAYFAk7iEksACgkQMkyGM64RGpEPYQCeMpX884EmuwpUaIdFrvJ4Pp09<br>
aPoAn08cOAO5X2JMPXSoOEcFBPzDt+0V<br>
=LDRp<br>
-----END PGP SIGNATURE-----<br>
<br>_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core" target="_blank">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Elizabeth Flanagan<br>Yocto Project<br>Build and Release<br>