From 01ec9c3353f0980f229fcd9cf72eebbd43d4384c Mon Sep 17 00:00:00 2001 From: Ricardo Simoes Date: Tue, 29 Sep 2026 15:13:46 +0200 Subject: [PATCH] libgpiod: set per-package license assignments 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 Signed-off-by: Ricardo Simoes Signed-off-by: Mark Jonas Reviewed-by: Bartosz Golaszewski Signed-off-by: Khem Raj --- meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 fc8431c99c..49327591b7 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb +++ b/meta-oe/recipes-support/libgpiod/libgpiod_2.3.1.bb @@ -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=65d3616852dbf7b1a6d4b53b00626032 \ " FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-2.x:"