diff options
author | Peter Kjellerstedt <pkj@axis.com> | 2025-06-05 23:31:21 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-12 11:03:43 +0100 |
commit | cab55df1ceab6b948a76cc073c44ebf5fc80191f (patch) | |
tree | abab3a2a445bfcc6261c822d194a0ff4b3b2a436 | |
parent | 0e4ef3bed7716d659ebdf2b3ad13bd7fdf29ac02 (diff) | |
download | poky-cab55df1ceab6b948a76cc073c44ebf5fc80191f.tar.gz |
util-linux: Improve the package licenses
The default license for util-linux is GPL-2.0-or-later.
Most of the applications and the libraries are also linked with
libcommon.la, which uses these licenses:
LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & MIT
Set the above licenses for all dynamic packages, unless explicitly
specified.
In particular, this avoids setting BSD-4-Clause-UC and EUPL-1.2 on
packages where they do not belong.
License-Update: See above
(From OE-Core rev: 4c3d56ab2caeedb79e493544e864fd8c2f5880cf)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/util-linux/util-linux_2.41.bb | 46 |
1 files changed, 40 insertions, 6 deletions
diff --git a/meta/recipes-core/util-linux/util-linux_2.41.bb b/meta/recipes-core/util-linux/util-linux_2.41.bb index 18b8ac03b9..41fb3e5951 100644 --- a/meta/recipes-core/util-linux/util-linux_2.41.bb +++ b/meta/recipes-core/util-linux/util-linux_2.41.bb | |||
@@ -1,13 +1,44 @@ | |||
1 | require util-linux.inc | 1 | require util-linux.inc |
2 | 2 | ||
3 | # Most of the applications and the libraries are linked with libcommon.la, | ||
4 | # which uses these licenses | ||
5 | LIBCOMMON_LICENSES = "LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & MIT" | ||
6 | |||
7 | # The default license is GPL-2.0-or-later | ||
8 | DEFAULT_LICENSES = "GPL-2.0-or-later & ${LIBCOMMON_LICENSES}" | ||
9 | |||
3 | LICENSE = "GPL-1.0-or-later & GPL-2.0-only & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause-UC & MIT & EUPL-1.2" | 10 | LICENSE = "GPL-1.0-or-later & GPL-2.0-only & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause-UC & MIT & EUPL-1.2" |
11 | LICENSE:${PN}-bash-completion = "GPL-2.0-or-later" | ||
12 | LICENSE:${PN}-dev = "${LIBCOMMON_LICENSES}" | ||
13 | # All dynamic packages use ${DEFAULT_LICENSES} with the following exceptions | ||
14 | LICENSE:${PN}-cal = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" | ||
15 | LICENSE:${PN}-col = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" | ||
16 | LICENSE:${PN}-colcrt = "BSD-4-Clause-UC" | ||
17 | LICENSE:${PN}-colrm = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" | ||
18 | LICENSE:${PN}-column = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" | ||
19 | LICENSE:${PN}-coresched = "EUPL-1.2 & ${LIBCOMMON_LICENSES}" | ||
4 | LICENSE:${PN}-fcntl-lock = "MIT" | 20 | LICENSE:${PN}-fcntl-lock = "MIT" |
5 | LICENSE:${PN}-fdisk = "GPL-1.0-or-later" | 21 | LICENSE:${PN}-fdisk = "GPL-1.0-or-later & ${DEFAULT_LICENSES}" |
6 | LICENSE:${PN}-libblkid = "LGPL-2.1-or-later" | 22 | LICENSE:${PN}-fsfreeze = "GPL-1.0-or-later" |
7 | LICENSE:${PN}-libfdisk = "LGPL-2.1-or-later" | 23 | LICENSE:${PN}-hexdump = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" |
8 | LICENSE:${PN}-libmount = "LGPL-2.1-or-later" | 24 | LICENSE:${PN}-kill = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" |
9 | LICENSE:${PN}-libsmartcols = "LGPL-2.1-or-later" | 25 | LICENSE:${PN}-libblkid = "${LIBCOMMON_LICENSES}" |
10 | LICENSE:${PN}-coresched = "EUPL-1.2" | 26 | LICENSE:${PN}-libfdisk = "${LIBCOMMON_LICENSES}" |
27 | LICENSE:${PN}-libmount = "${LIBCOMMON_LICENSES}" | ||
28 | LICENSE:${PN}-libsmartcols = "${LIBCOMMON_LICENSES}" | ||
29 | LICENSE:${PN}-logger = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" | ||
30 | LICENSE:${PN}-look = "BSD-4-Clause-UC" | ||
31 | LICENSE:${PN}-lscpu = "GPL-2.0-only & ${DEFAULT_LICENSES}" | ||
32 | LICENSE:${PN}-mesg = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" | ||
33 | LICENSE:${PN}-nsenter = "GPL-2.0-only & ${DEFAULT_LICENSES}" | ||
34 | LICENSE:${PN}-renice = "BSD-4-Clause-UC" | ||
35 | LICENSE:${PN}-rev = "BSD-4-Clause-UC" | ||
36 | LICENSE:${PN}-script = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" | ||
37 | LICENSE:${PN}-ul = "BSD-4-Clause-UC" | ||
38 | LICENSE:${PN}-vipw = "BSD-4-Clause-UC & ${DEFAULT_LICENSES}" | ||
39 | LICENSE:${PN}-wall = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" | ||
40 | LICENSE:${PN}-whereis = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" | ||
41 | LICENSE:${PN}-write = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" | ||
11 | 42 | ||
12 | LIC_FILES_CHKSUM = "file://README.licensing;md5=55e895a80bdd4ffc65e167a76d2e7569 \ | 43 | LIC_FILES_CHKSUM = "file://README.licensing;md5=55e895a80bdd4ffc65e167a76d2e7569 \ |
13 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 44 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
@@ -33,6 +64,9 @@ python util_linux_binpackages () { | |||
33 | pn = d.getVar('PN') | 64 | pn = d.getVar('PN') |
34 | d.appendVar('RRECOMMENDS:%s' % pn, ' %s' % pkg) | 65 | d.appendVar('RRECOMMENDS:%s' % pn, ' %s' % pkg) |
35 | 66 | ||
67 | if not d.getVar('LICENSE:' + pkg): | ||
68 | d.setVar('LICENSE:' + pkg, '${DEFAULT_LICENSES}') | ||
69 | |||
36 | if d.getVar('ALTERNATIVE:' + pkg): | 70 | if d.getVar('ALTERNATIVE:' + pkg): |
37 | return | 71 | return |
38 | if d.getVarFlag('ALTERNATIVE_LINK_NAME', modulename): | 72 | if d.getVarFlag('ALTERNATIVE_LINK_NAME', modulename): |