Skip to contentSkip to conversation

glibc: correct license

PATCH In review Peter Marko 3 participants 5 messages May 6, 2024 – May 16, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 glibc: correct license

From: Peter Marko <[email protected]>

The license per [1] is LGPL-2.1-or-later and
[2] converted last LGPL-2.1-only references.

License-Update: corrected from LGPL-2.1-only to LGPL-2.1-or-later based on [1] and [2]

[1] https://www.gnu.org/software/libc/
[2] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=273a835fe7c685cc54266bb8b502787bad5e9bae

---
 meta/recipes-core/glibc/glibc-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/glibc/glibc-common.inc +1 -1
index b9516e77f0..91a3f5bcd5 100644
@@ -2,7 +2,7 @@ SUMMARY = "GLIBC (GNU C Library)"
 DESCRIPTION = "The GNU C Library is used as the system C library in most systems with the Linux kernel."
 HOMEPAGE = "http://www.gnu.org/software/libc/libc.html"
 SECTION = "libs"
-LICENSE = "GPL-2.0-only & LGPL-2.1-only"
+LICENSE = "GPL-2.0-only & LGPL-2.1-or-later"
 
 LIC_FILES_CHKSUM ?= "file://LICENSES;md5=f77e878d320e99e94ae9a4aea7f491d1 \
       file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
Signature · 1 line
2.30.2
#1 lore raw

Hi Peter,

what about BSD-4-Clause-UC, BSD-3-Clause, ISC licenses included in glibc.

I've suggested to add them long time ago in:
https://lists.openembedded.org/g/openembedded-core/topic/91285771#msg166005
which resulted in:
https://sourceware.org/bugzilla/show_bug.cgi?id=28007
https://sourceware.org/pipermail/libc-alpha/2022-May/139167.html
but the discussion upstream stopped shortly after and the oe-core change was never merged because of that. Maybe it's time to re-check and ping upstream again after 2 years.

Cheers,

Quoted 41 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

The license per [1] is LGPL-2.1-or-later and
[2] converted last LGPL-2.1-only references.

License-Update: corrected from LGPL-2.1-only to LGPL-2.1-or-later based on [1] and [2]

[1] https://www.gnu.org/software/libc/
[2] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=273a835fe7c685cc54266bb8b502787bad5e9bae

---
 meta/recipes-core/glibc/glibc-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/glibc/glibc-common.inc +1 -2
index b9516e77f0..91a3f5bcd5 100644
@@ -2,7 +2,7 @@ SUMMARY = "GLIBC (GNU C Library)"
 DESCRIPTION = "The GNU C Library is used as the system C library in most systems with the Linux kernel."
 HOMEPAGE = "http://www.gnu.org/software/libc/libc.html"
 SECTION = "libs"
-LICENSE = "GPL-2.0-only & LGPL-2.1-only"
+LICENSE = "GPL-2.0-only & LGPL-2.1-or-later"
 
 LIC_FILES_CHKSUM ?= "file://LICENSES;md5=f77e878d320e99e94ae9a4aea7f491d1 \
       file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
--

2.30.2

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

#2 lore raw

Hi Martin,

license handling is a very complicated topic, especially for historical projects like glibc with ton of files with diverse origin. License scanning programs will find 15+ different licenses here and some of them may not be even available in yocto license list. I submitted this particular commit because I was responsible for an update with commit which was asking for it.

The discussion you linked about adding SPDX identifiers is something which would really help.
It would enable license discovery without need of big data software and allow to accurately set the LICENSE field also by SW developers.

Peter

-----Original Message-----
From: Martin Jansa <[email protected]>
Sent: Thursday, May 16, 2024 7:30
To: Marko, Peter (ADV D EU SK BFS1) <[email protected]>
Cc: [email protected]
Subject: Re: [OE-core][PATCH v2] glibc: correct license

Quoted 15 lines

Hi Peter,

what about BSD-4-Clause-UC, BSD-3-Clause, ISC licenses included in glibc.

I've suggested to add them long time ago in:
https://lists.openembedded.org/g/openembedded-core/topic/91285771#msg166005
which resulted in:
https://sourceware.org/bugzilla/show_bug.cgi?id=28007
https://sourceware.org/pipermail/libc-alpha/2022-May/139167.html
but the discussion upstream stopped shortly after and the oe-core change was never merged because of that. Maybe it's time to re-check and ping upstream again after 2 years.

Cheers,

On Mon, May 6, 2024 at 9:46 AM Peter Marko via lists.openembedded.org <[email protected]> wrote:
...

#3 lore raw
In reply to Martin Jansa
Quoted 5 lines · Martin Jansa via lists.openembedded.org

Hi Peter,

what about BSD-4-Clause-UC, BSD-3-Clause, ISC licenses included in glibc.

Quoted 8 lines

I've suggested to add them long time ago in:
https://lists.openembedded.org/g/openembedded-core/topic/91285771#msg166005
which resulted in:
https://sourceware.org/bugzilla/show_bug.cgi?id=28007
https://sourceware.org/pipermail/libc-alpha/2022-May/139167.html
but the discussion upstream stopped shortly after and the oe-core change was never merged because of that. Maybe it's time to re-check and ping upstream again after 2 years.

Perhaps yes.

On a tangent here, but I also think we should use
https://github.com/nexB/scancode-toolkit
to extract the license information from source code itself to update the LICENSE field
in the recipes.

Quoted 49 lines

Cheers,

Quoted 30 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

The license per [1] is LGPL-2.1-or-later and
[2] converted last LGPL-2.1-only references.

License-Update: corrected from LGPL-2.1-only to LGPL-2.1-or-later based on [1] and [2]

[1] https://www.gnu.org/software/libc/
[2] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=273a835fe7c685cc54266bb8b502787bad5e9bae

---
 meta/recipes-core/glibc/glibc-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/glibc/glibc-common.inc +1 -2
index b9516e77f0..91a3f5bcd5 100644
@@ -2,7 +2,7 @@ SUMMARY = "GLIBC (GNU C Library)"
 DESCRIPTION = "The GNU C Library is used as the system C library in most systems with the Linux kernel."
 HOMEPAGE = "http://www.gnu.org/software/libc/libc.html"
 SECTION = "libs"
-LICENSE = "GPL-2.0-only & LGPL-2.1-only"
+LICENSE = "GPL-2.0-only & LGPL-2.1-or-later"
 
 LIC_FILES_CHKSUM ?= "file://LICENSES;md5=f77e878d320e99e94ae9a4aea7f491d1 \
       file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
--
Quoted 5 lines

2.30.2

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

#4 lore raw
Quoted 18 lines · Khem Raj
Quoted 5 lines · Martin Jansa via lists.openembedded.org

Hi Peter,

what about BSD-4-Clause-UC, BSD-3-Clause, ISC licenses included in glibc.

Quoted 8 lines

I've suggested to add them long time ago in:
https://lists.openembedded.org/g/openembedded-core/topic/91285771#msg166005
which resulted in:
https://sourceware.org/bugzilla/show_bug.cgi?id=28007
https://sourceware.org/pipermail/libc-alpha/2022-May/139167.html
but the discussion upstream stopped shortly after and the oe-core change was never merged because of that. Maybe it's time to re-check and ping upstream again after 2 years.

Quoted 7 lines

Perhaps yes.

On a tangent here, but I also think we should use
https://github.com/nexB/scancode-toolkit
to extract the license information from source code itself to update the LICENSE field
in the recipes.

Yeah, we've added it 10+ years ago, because Blackduck or something was complaining about missing license identifiers in:
https://github.com/openwebos/meta-webos/commit/8eb313e4303defbe495cf7f91974799046975fca
then I've dropped this 2 years ago in:
https://github.com/webosose/meta-webosose/commit/95d7c2798d6f0a7a227db9631775eff7a2928596
after failed attempt to upstream this to oe-core and upstream glibc reaction.

The LICENSE information in the recipe isn't complete and as Peter wanted to fix "or later" part I though he might be interested in other licenses as well.

There weren't many changes in:
https://sourceware.org/git/?p=glibc.git;a=history;f=LICENSES;h=530893b1dc9ea00755603c68fb36bd4fc38a7be8;hb=HEAD
but the last commit looks interesting.

Cheers,