libgpiod: detail package licensing
v2 cover libgpiod: detail package licensing
From: Mark Jonas <[email protected]>
This series corrects 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 backports a patch which fixes the libgpiodbus license
Changes since v1:
- Squashed addition of missing CC0-1.0 license into setting of per-package license assignements.
- Backported the license change of libgpiodbus from GPL-2.0-or-later to LGPL-2.1-or-later.
Ricardo Simoes (2):
libgpiod: set per-package license assignments
libgpiod: update libgpiodbus license
.../libgpiod-2.x/fix_gpiodbus_license.patch | 26 +++++++++++++++++++ .../libgpiod/libgpiod_2.3.1.bb | 15 ++++++++++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod-2.x/fix_gpiodbus_license.patch
Signature · 1 line
2.34.1
PATCH v2 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.
Additionally, the CC0-1.0 license has been added to the recipe to cover the 90-gpio.rules file
--- meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb +13 -1
@@ -2,11 +2,23 @@ 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 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" +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 \ 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
PATCH v2 2/2 libgpiod: update libgpiodbus license
In reply to [email protected]From: Ricardo Simoes <[email protected]>
The license for libgpiodbus in upstream has been updated to LGPL-2.1-or-later.
Thus, update the package license and backport the upstream change until it lands in a release.
--- .../libgpiod-2.x/fix_gpiodbus_license.patch | 26 +++++++++++++++++++ .../libgpiod/libgpiod_2.3.1.bb | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod-2.x/fix_gpiodbus_license.patch
meta-oe/recipes-support/libgpiod/libgpiod-2.x/fix_gpiodbus_license.patch new file +26 -0
@@ -0,0 +1,26 @@ +dbus: fix the license of gpiodbus.h + +The libgpiodbus library - which is entirely automatically generated with +gdbus-codegen - was meant to be available under LGPLv2.1 like all the +other shared libraries in this project. Change the SPDX tag in that +file to LGPL-2.1-or-later. + +Fixes: a5ab76da1e0a ("dbus: add the D-Bus daemon, command-line client and tests") +Link: https://patch.msgid.link/[email protected] +Signed-off-by: Bartosz Golaszewski <[email protected]> + +Upstream-Status: Backport [https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/commit/?id=668a0efe918f9a763406239615175f759a6835f9] +--- + dbus/lib/gpiodbus.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dbus/lib/gpiodbus.h b/dbus/lib/gpiodbus.h +index 025c9c8586818051719078ba9d240f6d8b39e016..7557a576a5e9c6703ef78054ddc62a8b270de422 100644 +--- a/dbus/lib/gpiodbus.h ++++ b/dbus/lib/gpiodbus.h +@@ -1,4 +1,4 @@ +-/* SPDX-License-Identifier: GPL-2.0-or-later */ ++/* SPDX-License-Identifier: LGPL-2.1-or-later */ + /* SPDX-FileCopyrightText: 2023 Bartosz Golaszewski <[email protected]> */ + + #ifndef __GPIODBUS_H__
meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb +2 -1
@@ -10,7 +10,7 @@ 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 AND CC0-1.0" LICENSE:${PN}-tools = "GPL-2.0-or-later" -LICENSE:libgpiodbus = "GPL-2.0-or-later" +LICENSE:libgpiodbus = "LGPL-2.1-or-later" LICENSE:libgpiodcxx = "LGPL-2.1-or-later" LICENSE:libgpiotools = "LGPL-2.1-or-later"
@@ -25,6 +25,7 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-2.x:" SRC_URI += " \ file://gpio-manager.init \ + file://fix_gpiodbus_license.patch \ " SRC_URI[sha256sum] = "e3a358a90a9204ff16f92b6f4028ed91460b1926f10589eb54b3566484650a30"
Signature · 1 line
2.34.1
Quoted 9 lines · Mark Jonas via lists.openembedded.org
From: Mark Jonas <[email protected]>
This series corrects 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 backports a patch which fixes the libgpiodbus license
Please do it the other way around: first backport the patch changing the libgpiodbus license and then update the licensing info in the recipe.
Bart