diff options
Diffstat (limited to 'meta/recipes-core/util-linux')
4 files changed, 120 insertions, 26 deletions
diff --git a/meta/recipes-core/util-linux/util-linux-libuuid_2.41.bb b/meta/recipes-core/util-linux/util-linux-libuuid_2.41.bb index ec04c1d384..5ad2997c27 100644 --- a/meta/recipes-core/util-linux/util-linux-libuuid_2.41.bb +++ b/meta/recipes-core/util-linux/util-linux-libuuid_2.41.bb | |||
@@ -3,15 +3,17 @@ | |||
3 | 3 | ||
4 | require util-linux.inc | 4 | require util-linux.inc |
5 | 5 | ||
6 | LICENSE = "BSD-3-Clause" | ||
7 | LIC_FILES_CHKSUM = "file://libuuid/COPYING;md5=6d2cafc999feb2c2de84d4d24b23290c \ | ||
8 | file://Documentation/licenses/COPYING.BSD-3-Clause;md5=58dcd8452651fc8b07d1f65ce07ca8af" | ||
9 | |||
6 | inherit autotools gettext pkgconfig | 10 | inherit autotools gettext pkgconfig |
7 | 11 | ||
8 | S = "${WORKDIR}/util-linux-${PV}" | 12 | S = "${UNPACKDIR}/util-linux-${PV}" |
9 | 13 | ||
10 | EXTRA_AUTORECONF += "--exclude=gtkdocize" | 14 | EXTRA_AUTORECONF += "--exclude=gtkdocize" |
11 | EXTRA_OECONF += "--disable-all-programs --enable-libuuid" | 15 | EXTRA_OECONF += "--disable-all-programs --enable-libuuid" |
12 | 16 | ||
13 | LICENSE = "BSD-3-Clause" | ||
14 | |||
15 | do_install:append() { | 17 | do_install:append() { |
16 | rm -rf ${D}${datadir} ${D}${bindir} ${D}${base_bindir} ${D}${sbindir} ${D}${base_sbindir} ${D}${exec_prefix}/sbin | 18 | rm -rf ${D}${datadir} ${D}${bindir} ${D}${base_bindir} ${D}${sbindir} ${D}${base_sbindir} ${D}${exec_prefix}/sbin |
17 | } | 19 | } |
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index b0f2a9d497..111f29cb92 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc | |||
@@ -6,29 +6,6 @@ disk partitioning, kernel message management, filesystem creation, and system lo | |||
6 | 6 | ||
7 | SECTION = "base" | 7 | SECTION = "base" |
8 | 8 | ||
9 | 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:${PN}-fcntl-lock = "MIT" | ||
11 | LICENSE:${PN}-fdisk = "GPL-1.0-or-later" | ||
12 | LICENSE:${PN}-libblkid = "LGPL-2.1-or-later" | ||
13 | LICENSE:${PN}-libfdisk = "LGPL-2.1-or-later" | ||
14 | LICENSE:${PN}-libmount = "LGPL-2.1-or-later" | ||
15 | LICENSE:${PN}-libsmartcols = "LGPL-2.1-or-later" | ||
16 | LICENSE:${PN}-coresched = "EUPL-1.2" | ||
17 | |||
18 | LIC_FILES_CHKSUM = "file://README.licensing;md5=55e895a80bdd4ffc65e167a76d2e7569 \ | ||
19 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
20 | file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
21 | file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380cdd255951079008b364516c \ | ||
22 | file://Documentation/licenses/COPYING.BSD-3-Clause;md5=58dcd8452651fc8b07d1f65ce07ca8af \ | ||
23 | file://Documentation/licenses/COPYING.BSD-4-Clause-UC;md5=263860f8968d8bafa5392cab74285262 \ | ||
24 | file://Documentation/licenses/COPYING.EUPL-1.2;md5=c075d2767167a2355b23392018a1cbbd \ | ||
25 | file://libuuid/COPYING;md5=6d2cafc999feb2c2de84d4d24b23290c \ | ||
26 | file://libmount/COPYING;md5=7c7e39fb7d70ffe5d693a643e29987c2 \ | ||
27 | file://libblkid/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \ | ||
28 | file://libfdisk/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \ | ||
29 | file://libsmartcols/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \ | ||
30 | " | ||
31 | |||
32 | FILESEXTRAPATHS:prepend := "${THISDIR}/util-linux:" | 9 | FILESEXTRAPATHS:prepend := "${THISDIR}/util-linux:" |
33 | MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}" | 10 | MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}" |
34 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-linux-${PV}.tar.xz \ | 11 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-linux-${PV}.tar.xz \ |
@@ -42,6 +19,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin | |||
42 | file://fcntl-lock.c \ | 19 | file://fcntl-lock.c \ |
43 | file://0001-tests-ts-kill-decode-avoid-using-shell-built-in-kill.patch \ | 20 | file://0001-tests-ts-kill-decode-avoid-using-shell-built-in-kill.patch \ |
44 | file://0001-lsfd-mkfds-foreign-sockets-skip-when-lacking-sock_di.patch \ | 21 | file://0001-lsfd-mkfds-foreign-sockets-skip-when-lacking-sock_di.patch \ |
22 | file://0001-ts-kill-decode-use-RTMIN-from-kill-L-instead-of-hard.patch \ | ||
45 | " | 23 | " |
46 | 24 | ||
47 | SRC_URI[sha256sum] = "81ee93b3cfdfeb7d7c4090cedeba1d7bbce9141fd0b501b686b3fe475ddca4c6" | 25 | SRC_URI[sha256sum] = "81ee93b3cfdfeb7d7c4090cedeba1d7bbce9141fd0b501b686b3fe475ddca4c6" |
diff --git a/meta/recipes-core/util-linux/util-linux/0001-ts-kill-decode-use-RTMIN-from-kill-L-instead-of-hard.patch b/meta/recipes-core/util-linux/util-linux/0001-ts-kill-decode-use-RTMIN-from-kill-L-instead-of-hard.patch new file mode 100644 index 0000000000..f4e2f9e745 --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux/0001-ts-kill-decode-use-RTMIN-from-kill-L-instead-of-hard.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | From c5d5e8873029d170fcab38a6fbd5d5a355574b9f Mon Sep 17 00:00:00 2001 | ||
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Wed, 4 Jun 2025 16:27:19 +0800 | ||
4 | Subject: [PATCH] ts/kill/decode: use RTMIN from 'kill -L' instead of | ||
5 | hardcoding 34 | ||
6 | |||
7 | glibc uses 34 as the value of SIGRTMIN: | ||
8 | https://sourceware.org/git/?p=glibc.git;a=blob;f=signal/allocrtsig.c;h=8ed8e37dd6c41f94be6eef042ce9db1af1153228;hb=HEAD#l27 """ | ||
9 | static int current_rtmin = __SIGRTMIN + RESERVED_SIGRT; """ | ||
10 | |||
11 | musl uses 35 as the value of SIGRTMIN: | ||
12 | https://git.musl-libc.org/cgit/musl/tree/src/signal/sigrtmin.c | ||
13 | |||
14 | With the hardcoded 34, test case fails with the following difference: | ||
15 | |||
16 | -Ignored: HUP QUIT TRAP PIPE ALRM | ||
17 | +Ignored: HUP QUIT TRAP PIPE ALRM 34 | ||
18 | |||
19 | Extract the value of RTMIN from 'kill -L' to avoid such hardcoding. | ||
20 | |||
21 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
22 | |||
23 | Upstream-Status: Backport [https://github.com/util-linux/util-linux/commit/c5d5e8873029d170fcab38a6fbd5d5a355574b9f] | ||
24 | |||
25 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
26 | --- | ||
27 | tests/ts/kill/decode | 9 +++++++-- | ||
28 | 1 file changed, 7 insertions(+), 2 deletions(-) | ||
29 | |||
30 | diff --git a/tests/ts/kill/decode b/tests/ts/kill/decode | ||
31 | index 57149899e..524b4e5e2 100755 | ||
32 | --- a/tests/ts/kill/decode | ||
33 | +++ b/tests/ts/kill/decode | ||
34 | @@ -53,14 +53,19 @@ ACK= | ||
35 | # Sending one more USR1 is for making the signal pending state. | ||
36 | "$TS_CMD_KILL" -USR1 "$PID" | ||
37 | "$TS_CMD_KILL" -d "$PID" | { | ||
38 | - if [[ $("$TS_CMD_KILL" --list=34) == RT0 ]]; then | ||
39 | + SIGRTMIN=$("$TS_CMD_KILL" -L | grep -o '[0-9]\+ RTMIN' | cut -d " " -f 1) | ||
40 | + if [[ $("$TS_CMD_KILL" --list=$SIGRTMIN) == RT0 ]]; then | ||
41 | # See man signal(7). | ||
42 | # The Linux kernel supports a range of 33 different real-time signals, | ||
43 | # numbered 32 to 64. However, the glibc POSIX threads implementation in‐ | ||
44 | # ternally uses two (for NPTL) or three (for LinuxThreads) real-time sig‐ | ||
45 | # nals (see pthreads(7)), and adjusts the value of SIGRTMIN suitably (to | ||
46 | # 34 or 35). | ||
47 | - sed -e s/' 32 33'// -e s/' 34'// | ||
48 | + sed_cmd="sed" | ||
49 | + for ((i=32; i<=SIGRTMIN; i++)); do | ||
50 | + sed_cmd+=" -e s/' $i'//" | ||
51 | + done | ||
52 | + eval $sed_cmd | ||
53 | else | ||
54 | cat | ||
55 | fi | ||
56 | -- | ||
57 | 2.34.1 | ||
58 | |||
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 00036e8a68..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,5 +1,58 @@ | |||
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 | |||
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}" | ||
20 | LICENSE:${PN}-fcntl-lock = "MIT" | ||
21 | LICENSE:${PN}-fdisk = "GPL-1.0-or-later & ${DEFAULT_LICENSES}" | ||
22 | LICENSE:${PN}-fsfreeze = "GPL-1.0-or-later" | ||
23 | LICENSE:${PN}-hexdump = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" | ||
24 | LICENSE:${PN}-kill = "BSD-4-Clause-UC & ${LIBCOMMON_LICENSES}" | ||
25 | LICENSE:${PN}-libblkid = "${LIBCOMMON_LICENSES}" | ||
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}" | ||
42 | |||
43 | LIC_FILES_CHKSUM = "file://README.licensing;md5=55e895a80bdd4ffc65e167a76d2e7569 \ | ||
44 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
45 | file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
46 | file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380cdd255951079008b364516c \ | ||
47 | file://Documentation/licenses/COPYING.BSD-3-Clause;md5=58dcd8452651fc8b07d1f65ce07ca8af \ | ||
48 | file://Documentation/licenses/COPYING.BSD-4-Clause-UC;md5=263860f8968d8bafa5392cab74285262 \ | ||
49 | file://Documentation/licenses/COPYING.EUPL-1.2;md5=c075d2767167a2355b23392018a1cbbd \ | ||
50 | file://libmount/COPYING;md5=7c7e39fb7d70ffe5d693a643e29987c2 \ | ||
51 | file://libblkid/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \ | ||
52 | file://libfdisk/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \ | ||
53 | file://libsmartcols/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \ | ||
54 | " | ||
55 | |||
3 | inherit autotools gettext manpages pkgconfig systemd update-alternatives python3-dir bash-completion ptest gtk-doc | 56 | inherit autotools gettext manpages pkgconfig systemd update-alternatives python3-dir bash-completion ptest gtk-doc |
4 | DEPENDS = "libcap-ng ncurses virtual/crypt zlib util-linux-libuuid" | 57 | DEPENDS = "libcap-ng ncurses virtual/crypt zlib util-linux-libuuid" |
5 | 58 | ||
@@ -11,6 +64,9 @@ python util_linux_binpackages () { | |||
11 | pn = d.getVar('PN') | 64 | pn = d.getVar('PN') |
12 | d.appendVar('RRECOMMENDS:%s' % pn, ' %s' % pkg) | 65 | d.appendVar('RRECOMMENDS:%s' % pn, ' %s' % pkg) |
13 | 66 | ||
67 | if not d.getVar('LICENSE:' + pkg): | ||
68 | d.setVar('LICENSE:' + pkg, '${DEFAULT_LICENSES}') | ||
69 | |||
14 | if d.getVar('ALTERNATIVE:' + pkg): | 70 | if d.getVar('ALTERNATIVE:' + pkg): |
15 | return | 71 | return |
16 | if d.getVarFlag('ALTERNATIVE_LINK_NAME', modulename): | 72 | if d.getVarFlag('ALTERNATIVE_LINK_NAME', modulename): |