libgpiod: detail package licensing
v3 cover libgpiod: detail package licensing
From: Mark Jonas <[email protected]>
This series corrects the licensing metadata:
- Patch 1 backports a patch which fixes the libgpiodbus license
- Patch 2 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).
Changes since v2:
- Inversed the order of the commits.
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: update libgpiodbus license
libgpiod: set per-package license assignments
.../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 v3 1/2 libgpiod: update libgpiodbus license
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 | 1 + 2 files changed, 27 insertions(+) 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 +1 -0
@@ -13,6 +13,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
Re: [oe] [meta-oe][PATCH v3 1/2] libgpiod: update libgpiodbus license
Quoted 8 lines · Mark Jonas via lists.openembedded.org
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.
Not: this patch now no longer updates the package license.
Anyway:
Re: [oe] [meta-oe][PATCH v3 1/2] libgpiod: update libgpiodbus license
I am seeing
NOTE: libgpiod: md5 checksum matched for file://LICENSES/GPL-2.0-or-later.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263
NOTE: libgpiod: md5 checksum matched for file://LICENSES/LGPL-2.1-or-later.txt;md5=4b54a1fd55a448865a0b32d41598759d
NOTE: libgpiod: md5 checksum matched for file://LICENSES/CC-BY-SA-4.0.txt;md5=fba3b94d88bfb9b81369b869a1e9a20f
ERROR: QA Issue: libgpiod: The LIC_FILES_CHKSUM does not match for file://LICENSES/CC0-1.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57
libgpiod: The new md5 checksum is 65d3616852dbf7b1a6d4b53b00626032
libgpiod: Here is the selected license text:
Quoted 29 lines · Bartosz Golaszewski via lists.openembedded.org
Quoted 8 lines · Mark Jonas via lists.openembedded.org
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.
Not: this patch now no longer updates the package license.
Anyway:
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#130441):
https://lists.openembedded.org/g/openembedded-devel/message/130441
Mute This Topic: https://lists.openembedded.org/mt/121470950/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Jonas Mark (BT-EL/ESW1)
Acked-by Bartosz GolaszewskiAW: [oe] [meta-oe][PATCH v3 1/2] libgpiod: update libgpiodbus license
Hi Khem,
You are right, we messed up and I am sorry. I’ll send a V4 later after some improved testing on our side.
We’ll also fix the glitch in the commit message Bart noticed.
Cheers,
Mark
Von: Khem Raj <[email protected]>
Gesendet: Montag, 28. September 2026 22:24
An: [email protected]
Cc: Jonas Mark (BT-EL/ESW1) <[email protected]>; [email protected]; [email protected]; Simoes Ricardo (BT-EL/ESW2) <[email protected]>; [email protected]; Mark Jonas via lists.openembedded.org <[email protected]>
Betreff: Re: [oe] [meta-oe][PATCH v3 1/2] libgpiod: update libgpiodbus license
I am seeing
NOTE: libgpiod: md5 checksum matched for file://LICENSES/GPL-2.0-or-later.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263
NOTE: libgpiod: md5 checksum matched for file://LICENSES/LGPL-2.1-or-later.txt;md5=4b54a1fd55a448865a0b32d41598759d
NOTE: libgpiod: md5 checksum matched for file://LICENSES/CC-BY-SA-4.0.txt;md5=fba3b94d88bfb9b81369b869a1e9a20f
ERROR: QA Issue: libgpiod: The LIC_FILES_CHKSUM does not match for file://LICENSES/CC0-1.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57
libgpiod: The new md5 checksum is 65d3616852dbf7b1a6d4b53b00626032
libgpiod: Here is the selected license text:
On Mon, Sep 28, 2026 at 8:03 AM Bartosz Golaszewski via lists.openembedded.org<http://lists.openembedded.org/> <[email protected]<mailto:[email protected]>> wrote:
Quoted 8 lines · On Mon, 28 Sep 2026 15:06:30 +0200, "Mark Jonas via…
From: Ricardo Simoes <[email protected]<mailto:[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.
Not: this patch now no longer updates the package license.
Anyway:
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#130441): https://lists.openembedded.org/g/openembedded-devel/message/130441
Mute This Topic: https://lists.openembedded.org/mt/121470950/1997914
Group Owner: [email protected]<mailto:openembedded-devel%[email protected]>
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]<mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH v3 2/2 libgpiod: set per-package license assignments
In reply to [email protected]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 = "LGPL-2.1-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
Re: [oe] [meta-oe][PATCH v3 2/2] libgpiod: set per-package license assignments
Quoted 14 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.
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.
Quoted 6 lines
Additionally, the CC0-1.0 license has been added to the recipe to cover the 90-gpio.rules file
Signed-off-by Ricardo Simoes <[email protected]>Signed-off-by Mark Jonas <[email protected]>---