diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-03-17 17:08:46 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-18 10:27:31 +0000 |
| commit | f465a5fd31fa64c0e3a440b4ff25830b0b7bef35 (patch) | |
| tree | 8b3efa2f014e8a349e17da770946a629a04298f9 | |
| parent | 45ecfbb58327041da5b96922ffdcc7bec69fd201 (diff) | |
| download | poky-f465a5fd31fa64c0e3a440b4ff25830b0b7bef35.tar.gz | |
libcap: fix licensing fields
The recipe LICENSE field should reflect the license of all of the sources,
so include the PAM module licenses too.
Don't use conditionals in LIC_FILES_CHKSUM so that the configuration
does not cause differing checksums to be used.
Explicitly set the license on libcap and libcap-dev to reflect the
contents:
- libcap is BSD|GPLv2, and also BSD|LGPLv2+ if PAM is enabled.
- libcap-dev is just the library, so BSD|GPLv2.
(From OE-Core rev: 12ac8b55ee7407aca485869f0031cf7375761ca9)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-support/libcap/libcap_2.74.bb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/meta/recipes-support/libcap/libcap_2.74.bb b/meta/recipes-support/libcap/libcap_2.74.bb index a1da8311b2..ca6eccd9d8 100644 --- a/meta/recipes-support/libcap/libcap_2.74.bb +++ b/meta/recipes-support/libcap/libcap_2.74.bb | |||
| @@ -3,11 +3,11 @@ DESCRIPTION = "A library providing the API to access POSIX capabilities. \ | |||
| 3 | These allow giving various kinds of specific privileges to individual \ | 3 | These allow giving various kinds of specific privileges to individual \ |
| 4 | users, without giving them full root permissions." | 4 | users, without giving them full root permissions." |
| 5 | HOMEPAGE = "http://sites.google.com/site/fullycapable/" | 5 | HOMEPAGE = "http://sites.google.com/site/fullycapable/" |
| 6 | # no specific GPL version required | 6 | |
| 7 | LICENSE = "BSD-3-Clause | GPL-2.0-only" | 7 | # The library is BSD | GPLv2, the PAM module is BSD | LGPLv2+ |
| 8 | LIC_FILES_CHKSUM_PAM = "file://pam_cap/License;md5=905326f41d3d1f8df21943f9a4ed6b50" | 8 | LICENSE = "(BSD-3-Clause | GPL-2.0-only) & (BSD-3-Clause | LGPL-2.0-or-later)" |
| 9 | LIC_FILES_CHKSUM = "file://License;md5=2965a646645b72ecee859b43c592dcaa \ | 9 | LIC_FILES_CHKSUM = "file://License;md5=2965a646645b72ecee859b43c592dcaa \ |
| 10 | ${@bb.utils.contains('PACKAGECONFIG', 'pam', '${LIC_FILES_CHKSUM_PAM}', '', d)} \ | 10 | file://pam_cap/License;md5=905326f41d3d1f8df21943f9a4ed6b50 \ |
| 11 | " | 11 | " |
| 12 | 12 | ||
| 13 | DEPENDS = "hostperl-runtime-native gperf-native" | 13 | DEPENDS = "hostperl-runtime-native gperf-native" |
| @@ -63,4 +63,8 @@ do_install:append() { | |||
| 63 | # pam files | 63 | # pam files |
| 64 | FILES:${PN} += "${base_libdir}/security/*.so" | 64 | FILES:${PN} += "${base_libdir}/security/*.so" |
| 65 | 65 | ||
| 66 | # The license of the main package depends on whether PAM is enabled or not | ||
| 67 | LICENSE:${PN} = "(BSD-3-Clause | GPL-2.0-only)${@bb.utils.contains('PACKAGECONFIG', 'pam', ' & (BSD-3-Clause | LGPL-2.0-or-later)', '', d)}" | ||
| 68 | LICENSE:${PN}-dev = "(BSD-3-Clause | GPL-2.0-only)" | ||
| 69 | |||
| 66 | BBCLASSEXTEND = "native nativesdk" | 70 | BBCLASSEXTEND = "native nativesdk" |
