diff mbox series

[meta-selinux] libselinux/libselinux-python/setools: fix LICENSE warnings

Message ID 20261029053640.2130457-1-chenqi_hycx@cetc.com.cn
State New
Headers show
Series [meta-selinux] libselinux/libselinux-python/setools: fix LICENSE warnings | expand

Commit Message

Chen Qi Oct. 29, 2026, 5:36 a.m. UTC
From: Chen Qi <chenqi_hycx@cetc.com.cn>

Convert legacy LICENSE expressions to SPDX expressions to avoid
the following warnings:

  WARNING: libselinux: LICENSE is using an old syntax and should be upgraded to: "LicenseRef-PD"
  WARNING: libselinux-python: LICENSE is using an old syntax and should be upgraded to: "LicenseRef-PD"
  WARNING: setools: LICENSE is using an old syntax and should be upgraded to: "GPL-2.0-only AND LGPL-2.1-only"

Signed-off-by: Chen Qi <chenqi_hycx@cetc.com.cn>
---
 recipes-security/selinux/libselinux-python_3.10.bb | 2 +-
 recipes-security/selinux/libselinux_3.10.bb        | 2 +-
 recipes-security/setools/setools_4.6.0.bb          | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/recipes-security/selinux/libselinux-python_3.10.bb b/recipes-security/selinux/libselinux-python_3.10.bb
index e0fcb4b..01b7b93 100644
--- a/recipes-security/selinux/libselinux-python_3.10.bb
+++ b/recipes-security/selinux/libselinux-python_3.10.bb
@@ -3,7 +3,7 @@  DESCRIPTION = "libselinux provides an API for SELinux applications to get and se
 process and file security contexts and to obtain security policy \
 decisions.  Required for any applications that use the SELinux API."
 SECTION = "base"
-LICENSE = "PD"
+LICENSE = "LicenseRef-PD"
 LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0"
 
 require selinux_common.inc
diff --git a/recipes-security/selinux/libselinux_3.10.bb b/recipes-security/selinux/libselinux_3.10.bb
index 24956ae..98fc5c8 100644
--- a/recipes-security/selinux/libselinux_3.10.bb
+++ b/recipes-security/selinux/libselinux_3.10.bb
@@ -3,7 +3,7 @@  DESCRIPTION = "libselinux provides an API for SELinux applications to get and se
 process and file security contexts and to obtain security policy \
 decisions.  Required for any applications that use the SELinux API."
 SECTION = "base"
-LICENSE = "PD"
+LICENSE = "LicenseRef-PD"
 LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0"
 
 require selinux_common.inc
diff --git a/recipes-security/setools/setools_4.6.0.bb b/recipes-security/setools/setools_4.6.0.bb
index 1c8bc79..f458e90 100644
--- a/recipes-security/setools/setools_4.6.0.bb
+++ b/recipes-security/setools/setools_4.6.0.bb
@@ -3,7 +3,7 @@  DESCRIPTION = "\
 SETools is a collection of graphical tools, command-line tools, and \
 libraries designed to facilitate SELinux policy analysis."
 SECTION = "base"
-LICENSE = "GPL-2.0-only & LGPL-2.1-only"
+LICENSE = "GPL-2.0-only AND LGPL-2.1-only"
 
 SRC_URI = "git://github.com/SELinuxProject/${BPN}.git;branch=4.6;protocol=https \
            file://setools4-fixes-for-cross-compiling.patch \