tcmu-runner: Use an SPDX identifier for the LGPL license
PATCH 1/3 tcmu-runner: Use an SPDX identifier for the LGPL license
LGPLv2.1 is a legacy name that is only accepted through SPDXLICENSEMAP, which maps it to LGPL-2.1-only. The sources are licensed under "the GNU Lesser General Public License, version 2.1 or any later version", so use LGPL-2.1-or-later.
AI-Generated: Uses Claude Code
--- meta-filesystems/recipes-utils/tcmu-runner/tcmu-runner_1.6.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-filesystems/recipes-utils/tcmu-runner/tcmu-runner_1.6.2.bb +1 -1
@@ -1,5 +1,5 @@ SUMMARY = "A daemon that handles the userspace side of the LIO TCM-User backstore" -LICENSE = "Apache-2.0 OR LGPLv2.1" +LICENSE = "Apache-2.0 OR LGPL-2.1-or-later" LIC_FILES_CHKSUM = " \ file://LICENSE.LGPLv2.1;md5=a7ef827a98fa240d37910ac4e8ce3f53 \ file://LICENSE.Apache2;md5=6c4db32a2fa8717faffa1d4f10136f47 \
PATCH 2/3 hunspell-dictionaries: Fix LICENSE for SPDX
The per-dictionary licenses were set as LICENSE:dictionaries/<lang> overrides, which never apply since they are not package names, so the recipe, which installs every dictionary into a single package, was reported as MIT only. Several of those values were also deprecated SPDX ids (GPL-2.0, LGPL-2.1, ...) or license refs without a license text (LicenseRef-BSD, LicenseRef-Other).
Record each dictionary's license in HUNSPELL_DICT_LICENSE, taken from the "license" field of its upstream package.json with deprecated ids mapped to their -only equivalents, and set LICENSE to the conjunction of all of them. Exceptions:
- en-*: "BSD" is not an SPDX id; these use the SCOWL license text, added as LicenseRef-SCOWL.
- ru: a BSD-style license with an extra clause, added as LicenseRef-hunspell-ru.
- vi: package.json says GPL-2.0, but the license file says GPLv3.
- is: the license file also covers the CC-BY-4.0 hyphenation rules.
AI-Generated: Uses Claude Code
--- .../hunspell/hunspell-dictionaries.bb | 132 +++++++++--------- 1 file changed, 68 insertions(+), 64 deletions(-)
meta-oe/recipes-support/hunspell/hunspell-dictionaries.bb +68 -64
@@ -2,70 +2,74 @@ SUMMARY = "Hunspell dictionaries used by Maliit" #Provided by Titus Wormer (wooorm) https://github.com/wooorm/dictionaries -LICENSE = "MIT" -LICENSE:dictionaries/bg = "LGPL-2.1" -LICENSE:dictionaries/br = "GPL-3.0" -LICENSE:dictionaries/ca-valencia = "GPL-2.0 AND LGPL-2.1-only" -LICENSE:dictionaries/ca = "GPL-2.0 AND LGPL-2.1-only" -LICENSE:dictionaries/cs = "GPL-2.0-only" -LICENSE:dictionaries/da = "GPL-2.0-only" -LICENSE:dictionaries/de-AT = "GPL-3.0-only" -LICENSE:dictionaries/de-CH = "GPL-3.0-only" -LICENSE:dictionaries/de = "GPL-3.0-only" -LICENSE:dictionaries/el-polyton = "GPL-2.0-only" -LICENSE:dictionaries/el = "GPL-2.0-only" -LICENSE:dictionaries/en-AU = "LGPL-2.0-only" -LICENSE:dictionaries/en-CA = "MIT AND LicenseRef-BSD" -LICENSE:dictionaries/en-GB = "LGPL-2.0-only" -LICENSE:dictionaries/en-US = "MIT AND LicenseRef-BSD" -LICENSE:dictionaries/en-ZA = "LGPL-2.1" -LICENSE:dictionaries/eo = "GPL-2.0-only" -LICENSE:dictionaries/es = "GPL-3.0-only" -LICENSE:dictionaries/et = "LGPL-2.1-only" -LICENSE:dictionaries/eu = "GPL-2.0-only" -LICENSE:dictionaries/fo = "GPL-2.0-only" -LICENSE:dictionaries/fr = "MPL-2.0" -LICENSE:dictionaries/fur = "GPL-2.0-only" -LICENSE:dictionaries/fy = "GPL-3.0-only" -LICENSE:dictionaries/ga = "GPL-2.0-only" -LICENSE:dictionaries/gd = "GPL-3.0-only" -LICENSE:dictionaries/gl = "GPL-3.0-only" -LICENSE:dictionaries/he = "AGPL-3.0-only" -LICENSE:dictionaries/hr = "GPL-3.0-only" -LICENSE:dictionaries/hu = "GPL-2.0-only" -LICENSE:dictionaries/hy-arevela = "GPL-2.0-only" -LICENSE:dictionaries/hy-arevmda = "GPL-2.0-only" -LICENSE:dictionaries/ia = "GPL-3.0-only" -LICENSE:dictionaries/ie = "Apache-2.0" -LICENSE:dictionaries/is = "CC-BY-SA-3.0 AND CC-BY-4.0" -LICENSE:dictionaries/it = "GPL-3.0-only" -LICENSE:dictionaries/ko = "GPL-2.0-only AND LGPL-2.1-only AND MPL-1.1" -LICENSE:dictionaries/la = "GPL-3.0-only" -LICENSE:dictionaries/lb = "EUPL-1.1" -LICENSE:dictionaries/lt = "LicenseRef-Other" -LICENSE:dictionaries/ltg = "LGPL-2.1-only" -LICENSE:dictionaries/lv = "LGPL-2.1-only" -LICENSE:dictionaries/mk = "GPL-3.0-only" -LICENSE:dictionaries/mn = "GPL-2.0-only" -LICENSE:dictionaries/nb = "GPL-2.0-only" -LICENSE:dictionaries/nds = "GPL-2.0-only" -LICENSE:dictionaries/ne = "LGPL-2.1-only" -LICENSE:dictionaries/nl = "LicenseRef-BSD" -LICENSE:dictionaries/nn = "GPL-2.0-only" -LICENSE:dictionaries/pl = "GPL-3.0-only" -LICENSE:dictionaries/pt-BR = "LGPL-2.1" -LICENSE:dictionaries/pt = "GPL-2.0-only" -LICENSE:dictionaries/ro = "GPL-2.0-only" -LICENSE:dictionaries/ru = "LicenseRef-BSD" -LICENSE:dictionaries/rw = "GPL-3.0-only" -LICENSE:dictionaries/sk = "GPL-2.0-only" -LICENSE:dictionaries/sl = "GPL-2.0-only" -LICENSE:dictionaries/sr-Latn = "LGPL-3.0" -LICENSE:dictionaries/sr = "LGPL-3.0" -LICENSE:dictionaries/sv = "LGPL-3.0" -LICENSE:dictionaries/tr = "MIT" -LICENSE:dictionaries/uk = "GPL-2.0" -LICENSE:dictionaries/vi = "GPL-3.0" +# The single package ships all dictionaries, so it carries all their licenses +LICENSE = "${@' AND '.join(sorted(set(['(%s)' % l if ' ' in l else l for l in (d.getVarFlags('HUNSPELL_DICT_LICENSE') or dict()).values()])))}" +HUNSPELL_DICT_LICENSE[bg] = "GPL-2.0-only OR LGPL-2.1-only OR MPL-1.1" +HUNSPELL_DICT_LICENSE[br] = "GPL-2.0-only OR LGPL-2.1-only OR MPL-1.1" +HUNSPELL_DICT_LICENSE[ca] = "GPL-2.0-only OR LGPL-2.1-only" +HUNSPELL_DICT_LICENSE[ca-valencia] = "GPL-2.0-only OR LGPL-2.1-only" +HUNSPELL_DICT_LICENSE[cs] = "GPL-2.0-only" +HUNSPELL_DICT_LICENSE[da] = "GPL-2.0-only OR LGPL-2.1-only OR MPL-1.1" +HUNSPELL_DICT_LICENSE[de] = "GPL-2.0-only OR GPL-3.0-only" +HUNSPELL_DICT_LICENSE[de-AT] = "GPL-2.0-only OR GPL-3.0-only" +HUNSPELL_DICT_LICENSE[de-CH] = "GPL-2.0-only OR GPL-3.0-only" +HUNSPELL_DICT_LICENSE[el] = "GPL-2.0-only OR LGPL-2.1-only OR MPL-1.1" +HUNSPELL_DICT_LICENSE[el-polyton] = "GPL-3.0-only" +HUNSPELL_DICT_LICENSE[en-AU] = "MIT AND LicenseRef-SCOWL" +HUNSPELL_DICT_LICENSE[en-CA] = "MIT AND LicenseRef-SCOWL" +HUNSPELL_DICT_LICENSE[en-GB] = "MIT AND LicenseRef-SCOWL" +HUNSPELL_DICT_LICENSE[en-US] = "MIT AND LicenseRef-SCOWL" +HUNSPELL_DICT_LICENSE[en-ZA] = "LGPL-2.1-only" +HUNSPELL_DICT_LICENSE[eo] = "GPL-2.0-only" +HUNSPELL_DICT_LICENSE[es] = "GPL-3.0-only OR LGPL-3.0-only OR MPL-1.1" +HUNSPELL_DICT_LICENSE[et] = "LGPL-2.1-only" +HUNSPELL_DICT_LICENSE[eu] = "GPL-2.0-only" +HUNSPELL_DICT_LICENSE[fo] = "GPL-2.0-only OR LGPL-2.1-only OR MPL-1.1" +HUNSPELL_DICT_LICENSE[fr] = "MPL-2.0" +HUNSPELL_DICT_LICENSE[fur] = "GPL-2.0-only" +HUNSPELL_DICT_LICENSE[fy] = "GPL-3.0-only" +HUNSPELL_DICT_LICENSE[ga] = "GPL-2.0-only" +HUNSPELL_DICT_LICENSE[gd] = "GPL-3.0-only" +HUNSPELL_DICT_LICENSE[gl] = "GPL-3.0-only" +HUNSPELL_DICT_LICENSE[he] = "AGPL-3.0-only" +HUNSPELL_DICT_LICENSE[hr] = "LGPL-2.1-only OR SISSL" +HUNSPELL_DICT_LICENSE[hu] = "GPL-2.0-only OR LGPL-2.1-only OR MPL-1.1" +HUNSPELL_DICT_LICENSE[hy-arevela] = "GPL-2.0-only OR LGPL-2.1-only OR MPL-1.1" +HUNSPELL_DICT_LICENSE[hy-arevmda] = "GPL-2.0-only OR LGPL-2.1-only OR MPL-1.1" +HUNSPELL_DICT_LICENSE[ia] = "GPL-3.0-only" +HUNSPELL_DICT_LICENSE[ie] = "Apache-2.0" +HUNSPELL_DICT_LICENSE[is] = "CC-BY-SA-3.0 AND CC-BY-4.0" +HUNSPELL_DICT_LICENSE[it] = "GPL-3.0-only" +HUNSPELL_DICT_LICENSE[ko] = "GPL-2.0-only OR LGPL-2.1-only OR MPL-1.1" +HUNSPELL_DICT_LICENSE[la] = "GPL-2.0-only" +HUNSPELL_DICT_LICENSE[lb] = "EUPL-1.1" +HUNSPELL_DICT_LICENSE[lt] = "BSD-3-Clause" +HUNSPELL_DICT_LICENSE[ltg] = "LGPL-2.1-only" +HUNSPELL_DICT_LICENSE[lv] = "LGPL-2.1-only" +HUNSPELL_DICT_LICENSE[mk] = "GPL-3.0-only" +HUNSPELL_DICT_LICENSE[mn] = "GPL-2.0-only" +HUNSPELL_DICT_LICENSE[nb] = "GPL-2.0-only" +HUNSPELL_DICT_LICENSE[nds] = "GPL-3.0-only" +HUNSPELL_DICT_LICENSE[ne] = "LGPL-2.1-only" +HUNSPELL_DICT_LICENSE[nl] = "BSD-3-Clause OR CC-BY-3.0" +HUNSPELL_DICT_LICENSE[nn] = "GPL-2.0-only" +HUNSPELL_DICT_LICENSE[pl] = "GPL-3.0-only OR LGPL-3.0-only OR MPL-2.0" +HUNSPELL_DICT_LICENSE[pt] = "GPL-2.0-only OR LGPL-2.1-only OR MPL-1.1" +HUNSPELL_DICT_LICENSE[pt-BR] = "LGPL-2.1-only" +HUNSPELL_DICT_LICENSE[ro] = "GPL-2.0-only OR LGPL-2.1-only OR MPL-1.1" +HUNSPELL_DICT_LICENSE[ru] = "LicenseRef-hunspell-ru" +HUNSPELL_DICT_LICENSE[rw] = "GPL-3.0-only" +HUNSPELL_DICT_LICENSE[sk] = "GPL-2.0-only" +HUNSPELL_DICT_LICENSE[sl] = "GPL-3.0-only OR LGPL-2.1-only" +HUNSPELL_DICT_LICENSE[sr] = "LGPL-3.0-only" +HUNSPELL_DICT_LICENSE[sr-Latn] = "LGPL-3.0-only" +HUNSPELL_DICT_LICENSE[sv] = "LGPL-3.0-only" +HUNSPELL_DICT_LICENSE[tr] = "MIT" +HUNSPELL_DICT_LICENSE[uk] = "GPL-3.0-only" +HUNSPELL_DICT_LICENSE[vi] = "GPL-3.0-only" +NO_GENERIC_LICENSE[SCOWL] = "dictionaries/en-US/license" +NO_GENERIC_LICENSE[hunspell-ru] = "dictionaries/ru/license" + LIC_FILES_CHKSUM = " \ file://dictionaries/bg/license;md5=ab14e2ded1a43b84be9aba2be64b9814 \ file://dictionaries/br/license;md5=2e046c64edc0a4e47fb3ea614e6c82c4 \
PATCH 3/3 gperftools: Drop obsolete musl patches
In reply to Khem Rajppc-musl.patch no longer applies after the 2.19.3 upgrade, failing do_patch on musl. Upstream fixed PT_NIP handling for non-glibc in 122d6e7885 and 17ff2e676b, and elf_mem_image.cc no longer uses __WORDSIZE, so drop it and the elf_mem_image patch.
Replace the Makefile.am patch that stopped building the test programs with the --disable-tests configure option added upstream.
AI-Generated: Uses Claude Code
--- ...-elf_mem_image.cc-fix-build-for-musl.patch | 35 ---------- ...sable-building-noinst-tests-for-musl.patch | 32 --------- .../gperftools/gperftools/ppc-musl.patch | 65 ------------------- .../gperftools/gperftools_2.19.3.bb | 8 +-- 4 files changed, 2 insertions(+), 138 deletions(-) delete mode 100644 meta-oe/recipes-support/gperftools/gperftools/0002-src-base-elf_mem_image.cc-fix-build-for-musl.patch delete mode 100644 meta-oe/recipes-support/gperftools/gperftools/0003-Makefile.am-disable-building-noinst-tests-for-musl.patch delete mode 100644 meta-oe/recipes-support/gperftools/gperftools/ppc-musl.patch
meta-oe/recipes-support/gperftools/gperftools/0002-src-base-elf_mem_image.cc-fix-build-for-musl.patch deleted +0 -35
@@ -1,35 +0,0 @@ -From 02ff9fcc74ba64aeb22fcc553f30657bd2b62930 Mon Sep 17 00:00:00 2001 -From: Chen Qi <[email protected]> -Date: Wed, 26 Feb 2025 23:46:56 -0800 -Subject: [PATCH 2/3] src/base/elf_mem_image.cc: fix build for musl - -Include header file for musl to avoid error below: - - error: '__WORDSIZE' was not declared in this scope - -Upstream-Status: Pending - -Signed-off-by: Chen Qi <[email protected]> ---- - src/base/elf_mem_image.cc | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/src/base/elf_mem_image.cc b/src/base/elf_mem_image.cc -index d2ca1a5..89dc0e4 100644 ---- a/src/base/elf_mem_image.cc -+++ b/src/base/elf_mem_image.cc -@@ -38,6 +38,11 @@ - - #ifdef HAVE_ELF_MEM_IMAGE // defined in elf_mem_image.h - -+// for musl __WORDSIZE definition -+#if !defined(__GLIBC__) -+#include <sys/reg.h> -+#endif -+ - #include <stddef.h> // for size_t, ptrdiff_t - #include "base/logging.h" - --- -2.25.1 -
meta-oe/recipes-support/gperftools/gperftools/0003-Makefile.am-disable-building-noinst-tests-for-musl.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From 3bb5707c6a6a0d2061c79c556cbe4a87efea02ab Mon Sep 17 00:00:00 2001 -From: Chen Qi <[email protected]> -Date: Thu, 27 Feb 2025 00:44:34 -0800 -Subject: [PATCH 3/3] Makefile.am: disable building noinst tests for musl - -Build fails for musl + qemuppc64 about ld failing to find -symbols in libucontext. Until a real solution is found, -we need this workaround. - -Upstream-Status: Inappropriate [OE Specific] - -Signed-off-by: Chen Qi <[email protected]> ---- - Makefile.am | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/Makefile.am b/Makefile.am -index 9fa24c0..7dd1b60 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -938,7 +938,7 @@ endif WITH_HEAP_PROFILER_OR_CHECKER - # This should always include $(TESTS), but may also include other - # binaries that you compile but don't want automatically installed. - # We'll add to this later, on a library-by-library basis --noinst_PROGRAMS += $(TESTS) -+#noinst_PROGRAMS += $(TESTS) - - # http://linux.die.net/man/1/pkg-config, http://pkg-config.freedesktop.org/wiki - pkgconfigdir = $(libdir)/pkgconfig --- -2.25.1 -
meta-oe/recipes-support/gperftools/gperftools/ppc-musl.patch deleted +0 -65
65 lines not on this page · raw message
meta-oe/recipes-support/gperftools/gperftools_2.19.3.bb +2 -6
@@ -13,12 +13,6 @@ DEPENDS:append:libc-musl = " libucontext" SRCREV = "f21715726a385adba7ce3a9db2df6e18b5b6bc5c" SRC_URI = "git://github.com/gperftools/gperftools;branch=master;protocol=https;tag=gperftools-${PV}" -SRC_URI:append:libc-musl = " \ - file://ppc-musl.patch \ - file://0002-src-base-elf_mem_image.cc-fix-build-for-musl.patch \ - file://0003-Makefile.am-disable-building-noinst-tests-for-musl.patch \ - " - inherit autotools
@@ -36,6 +30,8 @@ COMPATIBLE_HOST:riscv32 = "null" ARM_INSTRUCTION_SET:armv5 = "arm" ARM_INSTRUCTION_SET:toolchain-clang:arm = "arm" +# Test programs fail to link against libucontext on musl + ppc64 +EXTRA_OECONF:append:libc-musl = " --disable-tests" EXTRA_OECONF:append:libc-musl:powerpc64le = " --disable-cpu-profiler" EXTRA_OECONF:append:libc-musl:powerpc = " --disable-cpu-profiler" PACKAGECONFIG ?= "libunwind static"