diff mbox series

[meta-oe,v2,2/2] libgpiod: update libgpiodbus license

Message ID 20260928114704.2719-3-mark.jonas@de.bosch.com
State New
Headers show
Series libgpiod: detail package licensing | expand

Commit Message

Jonas Mark (BT-EL/ESW1) Sept. 28, 2026, 11:47 a.m. UTC
From: Ricardo Simoes <ricardo.simoes@pt.bosch.com>

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.

Signed-off-by: Ricardo Simoes <ricardo.simoes@pt.bosch.com>
Signed-off-by: Mark Jonas <mark.jonas@de.bosch.com>
---
 .../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
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/libgpiod/libgpiod-2.x/fix_gpiodbus_license.patch b/meta-oe/recipes-support/libgpiod/libgpiod-2.x/fix_gpiodbus_license.patch
new file mode 100644
index 0000000000..aa1eb0d8ab
--- /dev/null
+++ b/meta-oe/recipes-support/libgpiod/libgpiod-2.x/fix_gpiodbus_license.patch
@@ -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/20260925-libgpiodbus-license-v1-1-d7ddafca8872@oss.qualcomm.com
+Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
+
+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 <bartosz.golaszewski@linaro.org> */
+
+ #ifndef __GPIODBUS_H__
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb b/meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb
index f804934682..c9cf4c1e1a 100644
--- a/meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb
+++ b/meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb
@@ -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"