On Wed, 2021-02-17 at 05:00 +0100, Meh Mbeh Ida Delphine wrote:
> With the IGNOREWITHLINUXSYSCALLNOTE variable set to "1" in local.conf, it 
> removes the "WITH Linux syscall note" string attached to the license value 
> for sources before comparism.
> This is to get more recipe LICENSES to match with those of the sources and 
> reduce the number of warnings outputed.
> 
> Signed-off-by: Ida Delphine <[email protected]>
> ---
>  meta/classes/package.bbclass | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
> index c3259146b6..14c8475cfa 100644
> --- a/meta/classes/package.bbclass
> +++ b/meta/classes/package.bbclass
> @@ -1774,6 +1774,10 @@ fi
>                      if l.endswith('-or-later'):
>                          lic_ = l.replace('-or-later', '+')
>                          computedpkglicsperpkg.add(lic_)
> +                    elif l.endswith(' WITH Linux-syscall-note'):
> +                        if d.getVar("IGNOREWITHLINUXSYSCALLNOTE") == "1":
> +                            lic_ = l.replace(' WITH Linux-syscall-note', '')
> +                            computedpkglicsperpkg.add(lic_)

I think this is going to break things and it should be entirely
removing this license entry.

Why? Headers under GPLv2 WITH Linux-syscall-note can be used in a non-
GPLv2 application and that application doesn't then become under GPLv2.

What we probably want is a "safe" list of licenses which don't have
implications and entries matching "* WITH Linux-syscall-note" can be
ignored, as long as they're only in header files. Perhaps we also need
a check to ensure we only see "* WITH Linux-syscall-note" in header
files?

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#148231): 
https://lists.openembedded.org/g/openembedded-core/message/148231
Mute This Topic: https://lists.openembedded.org/mt/80697038/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to