| Message ID | 20260928130631.4254-3-mark.jonas@de.bosch.com |
|---|---|
| State | Under Review |
| Headers | show |
| Series | libgpiod: detail package licensing | expand |
On Mon, 28 Sep 2026 15:06:31 +0200, "Mark Jonas via lists.openembedded.org" <mark.jonas=de.bosch.com@lists.openembedded.org> said: > From: Ricardo Simoes <ricardo.simoes@pt.bosch.com> > > 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 <ricardo.simoes@pt.bosch.com> > Signed-off-by: Mark Jonas <mark.jonas@de.bosch.com> > --- Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
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..c9cf4c1e1a 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=3b83ef96387f14655fc854ddc3c6bd57 \ " FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-2.x:"