Skip to contentSkip to conversation

libgpiod: detail package licensing

PATCH Superseded [email protected] 3 participants 7 messages Sep 25

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

cover libgpiod: detail package licensing

From: Mark Jonas <[email protected]>

This series details the licensing metadata:

- Patch 1 splits the recipe-wide LICENSE into per-package assignments, so each package reports its own license (e.g. the library as LGPL-2.1-or-later, the CLI tools as GPL-2.0-or-later).

- Patch 2 adds the missing CC0-1.0 license, which applies to the 90-gpio.rules file shipped in the PN-manager-cfg package, and wires up the corresponding LIC_FILES_CHKSUM entry.

Ricardo Simoes (2):
libgpiod: set per-package license assignments
libgpiod: Add missing CC0-1.0

 meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 libgpiod: set per-package license assignments

From: Ricardo Simoes <[email protected]>

libgpiod 2.x has more complex licensing than its 1.x counterpart, with multiple licenses applying to different parts of the project. Because the recipe has no per-package LICENSE statement, a user installing just the library (LGPL-2.1-or-later) might be led to believe it is also subject to GPL-2.0-or-later and the other aggregate licenses, which do not apply to that package.

Thus, to make it clear which licenses apply to which parts of the project, split the recipe-wide LICENSE into per-package values so that each generated package reports its actual license instead of the aggregate expression.

---
 meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb | 11 +++++++++++
 1 file changed, 11 insertions(+)
meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb +11 -0
index b3cb33ac89..977405c2fc 100644
@@ -3,6 +3,17 @@ require libgpiod.inc
 inherit meson systemd update-rc.d useradd gobject-introspection
 
 LICENSE = "CC-BY-SA-4.0 AND GPL-2.0-or-later AND LGPL-2.1-or-later"
+LICENSE:${PN} = "LGPL-2.1-or-later"
+LICENSE:${PN}-cli = "GPL-2.0-or-later"
+LICENSE:${PN}-gpiosim = "LGPL-2.1-or-later"
+LICENSE:${PN}-glib = "LGPL-2.1-or-later"
+LICENSE:${PN}-manager = "GPL-2.0-or-later"
+LICENSE:${PN}-manager-cfg = "CC-BY-SA-4.0"
+LICENSE:${PN}-tools = "GPL-2.0-or-later"
+LICENSE:libgpiodbus = "GPL-2.0-or-later"
+LICENSE:libgpiodcxx = "LGPL-2.1-or-later"
+LICENSE:libgpiotools = "LGPL-2.1-or-later"
+
 LIC_FILES_CHKSUM = " \
     file://LICENSES/GPL-2.0-or-later.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
     file://LICENSES/LGPL-2.1-or-later.txt;md5=4b54a1fd55a448865a0b32d41598759d \
Signature · 1 line
2.34.1
Reviewed-by on v1 1/2
#2 lore raw

Re: [oe] [meta-oe][PATCH 1/2] libgpiod: set per-package license assignments

Quoted 9 lines · Mark Jonas via lists.openembedded.org

From: Ricardo Simoes <[email protected]>

libgpiod 2.x has more complex licensing than its 1.x counterpart, with multiple licenses applying to different parts of the project. Because the recipe has no per-package LICENSE statement, a user installing just the library (LGPL-2.1-or-later) might be led to believe it is also subject to GPL-2.0-or-later and the other aggregate licenses, which do not apply to that package.

Quoted 8 lines

Thus, to make it clear which licenses apply to which parts of the project, split the recipe-wide LICENSE into per-package values so that each generated package reports its actual license instead of the aggregate expression.

---

Thanks for doing this!

Quoted 9 lines
 meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb | 11 +++++++++++
 1 file changed, 11 insertions(+)
meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb +0 -0
index b3cb33ac89..977405c2fc 100644
@@ -3,6 +3,17 @@ require libgpiod.inc
 inherit meson systemd update-rc.d useradd gobject-introspection

meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb require libgpiod.inc · line 13

Quoted 10 lines
meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb +8 -0
 
 LICENSE = "CC-BY-SA-4.0 AND GPL-2.0-or-later AND LGPL-2.1-or-later"
+LICENSE:${PN} = "LGPL-2.1-or-later"
+LICENSE:${PN}-cli = "GPL-2.0-or-later"
+LICENSE:${PN}-gpiosim = "LGPL-2.1-or-later"
+LICENSE:${PN}-glib = "LGPL-2.1-or-later"
+LICENSE:${PN}-manager = "GPL-2.0-or-later"
+LICENSE:${PN}-manager-cfg = "CC-BY-SA-4.0"
+LICENSE:${PN}-tools = "GPL-2.0-or-later"
+LICENSE:libgpiodbus = "GPL-2.0-or-later"

Ugh, this is a mistake on my part. The libgpiodbus library should be licensed under LGPL-v2.1 like all the other shared libraries in the project. I'll send a patch.

In any case:

Bart

#3 lore raw

PATCH 2/2 libgpiod: add missing CC0-1.0

In reply to [email protected]

From: Ricardo Simoes <[email protected]>

The package PN-manager-cfg is shipped with the file 90-gpio.rules, which is licensed under CC0-1.0.

Thus, include the CC0-1.0 license to the recipe.

---
 meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb +3 -2
index 977405c2fc..f804934682 100644
@@ -2,13 +2,13 @@ require libgpiod.inc
 
 inherit meson systemd update-rc.d useradd gobject-introspection
 
-LICENSE = "CC-BY-SA-4.0 AND GPL-2.0-or-later AND LGPL-2.1-or-later"
+LICENSE = "CC-BY-SA-4.0 AND CC0-1.0 AND GPL-2.0-or-later AND LGPL-2.1-or-later"
 LICENSE:${PN} = "LGPL-2.1-or-later"
 LICENSE:${PN}-cli = "GPL-2.0-or-later"
 LICENSE:${PN}-gpiosim = "LGPL-2.1-or-later"
 LICENSE:${PN}-glib = "LGPL-2.1-or-later"
 LICENSE:${PN}-manager = "GPL-2.0-or-later"
-LICENSE:${PN}-manager-cfg = "CC-BY-SA-4.0"
+LICENSE:${PN}-manager-cfg = "CC-BY-SA-4.0 AND CC0-1.0"
 LICENSE:${PN}-tools = "GPL-2.0-or-later"
 LICENSE:libgpiodbus = "GPL-2.0-or-later"
 LICENSE:libgpiodcxx = "LGPL-2.1-or-later"
@@ -18,6 +18,7 @@ LIC_FILES_CHKSUM = " \
     file://LICENSES/GPL-2.0-or-later.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
     file://LICENSES/LGPL-2.1-or-later.txt;md5=4b54a1fd55a448865a0b32d41598759d \
     file://LICENSES/CC-BY-SA-4.0.txt;md5=fba3b94d88bfb9b81369b869a1e9a20f \
+    file://LICENSES/CC0-1.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \
 "
 
 FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-2.x:"
Signature · 1 line
2.34.1
#4 lore raw

Re: [oe] [meta-oe][PATCH 2/2] libgpiod: add missing CC0-1.0

Quoted 10 lines · Mark Jonas via lists.openembedded.org

From: Ricardo Simoes <[email protected]>

The package PN-manager-cfg is shipped with the file 90-gpio.rules, which is licensed under CC0-1.0.

Thus, include the CC0-1.0 license to the recipe.

---

Shouldn't this be squashed with patch 1/2?

Bart

#5 lore raw

AW: [oe] [meta-oe][PATCH 2/2] libgpiod: add missing CC0-1.0

Hi Bart,

Quoted 10 lines

Betreff: Re: [oe] [meta-oe][PATCH 2/2] libgpiod: add missing CC0-1.0

Quoted 5 lines · Mark Jonas via lists.openembedded.org

From: Ricardo Simoes <[email protected]>

The package PN-manager-cfg is shipped with the file 90-gpio.rules, which is licensed under CC0-1.0.

Quoted 7 lines
Quoted 5 lines

Thus, include the CC0-1.0 license to the recipe.

---

Shouldn't this be squashed with patch 1/2?

We thought we should make it obvious that we are adding a license. We did not want to sneak in the CC0-1.0 license.

Shall we squash?

Cheers,
Mark

#6 lore raw

Re: [oe] [meta-oe][PATCH 2/2] libgpiod: add missing CC0-1.0

Quoted 18 lines · Mark Jonas via lists.openembedded.org

Hi Bart,

Quoted 16 lines

Betreff: Re: [oe] [meta-oe][PATCH 2/2] libgpiod: add missing CC0-1.0

Quoted 10 lines · Mark Jonas via lists.openembedded.org

From: Ricardo Simoes <[email protected]>

The package PN-manager-cfg is shipped with the file 90-gpio.rules, which is licensed under CC0-1.0.

Thus, include the CC0-1.0 license to the recipe.

---

Quoted 7 lines
Quoted 1 line

Shouldn't this be squashed with patch 1/2?

We thought we should make it obvious that we are adding a license. We did not want to sneak in the CC0-1.0 license.

Shall we squash?

Yes. I think that is good.

Quoted 15 lines

Cheers,
Mark

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