diff options
| -rw-r--r-- | meta/recipes-core/util-linux/util-linux-libuuid_2.39.1.bb (renamed from meta/recipes-core/util-linux/util-linux-libuuid_2.38.1.bb) | 0 | ||||
| -rw-r--r-- | meta/recipes-core/util-linux/util-linux.inc | 10 | ||||
| -rw-r--r-- | meta/recipes-core/util-linux/util-linux/0001-check-for-sys-pidfd.h.patch | 53 | ||||
| -rw-r--r-- | meta/recipes-core/util-linux/util-linux/0001-configure.ac-Improve-check-for-magic.patch | 40 | ||||
| -rw-r--r-- | meta/recipes-core/util-linux/util-linux/run-ptest | 10 | ||||
| -rw-r--r-- | meta/recipes-core/util-linux/util-linux_2.39.1.bb (renamed from meta/recipes-core/util-linux/util-linux_2.38.1.bb) | 0 |
6 files changed, 13 insertions, 100 deletions
diff --git a/meta/recipes-core/util-linux/util-linux-libuuid_2.38.1.bb b/meta/recipes-core/util-linux/util-linux-libuuid_2.39.1.bb index 5d759aed94..5d759aed94 100644 --- a/meta/recipes-core/util-linux/util-linux-libuuid_2.38.1.bb +++ b/meta/recipes-core/util-linux/util-linux-libuuid_2.39.1.bb | |||
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index 3868b1c41d..99ce2a24b0 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc | |||
| @@ -6,13 +6,13 @@ disk partitioning, kernel message management, filesystem creation, and system lo | |||
| 6 | 6 | ||
| 7 | SECTION = "base" | 7 | SECTION = "base" |
| 8 | 8 | ||
| 9 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & BSD-3-Clause & BSD-4-Clause" | 9 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause" |
| 10 | LICENSE:${PN}-libblkid = "LGPL-2.1-or-later" | 10 | LICENSE:${PN}-libblkid = "LGPL-2.1-or-later" |
| 11 | LICENSE:${PN}-libfdisk = "LGPL-2.1-or-later" | 11 | LICENSE:${PN}-libfdisk = "LGPL-2.1-or-later" |
| 12 | LICENSE:${PN}-libmount = "LGPL-2.1-or-later" | 12 | LICENSE:${PN}-libmount = "LGPL-2.1-or-later" |
| 13 | LICENSE:${PN}-libsmartcols = "LGPL-2.1-or-later" | 13 | LICENSE:${PN}-libsmartcols = "LGPL-2.1-or-later" |
| 14 | 14 | ||
| 15 | LIC_FILES_CHKSUM = "file://README.licensing;md5=0fd5c050c6187d2bf0a4492b7f4e33da \ | 15 | LIC_FILES_CHKSUM = "file://README.licensing;md5=12ae7768a65ec8f2e44d930df9cb43fa \ |
| 16 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 16 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 17 | file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 17 | file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 18 | file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380cdd255951079008b364516c \ | 18 | file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380cdd255951079008b364516c \ |
| @@ -23,7 +23,7 @@ LIC_FILES_CHKSUM = "file://README.licensing;md5=0fd5c050c6187d2bf0a4492b7f4e33da | |||
| 23 | file://libblkid/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \ | 23 | file://libblkid/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \ |
| 24 | file://libfdisk/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \ | 24 | file://libfdisk/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \ |
| 25 | file://libsmartcols/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \ | 25 | file://libsmartcols/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \ |
| 26 | " | 26 | " |
| 27 | 27 | ||
| 28 | FILESEXTRAPATHS:prepend := "${THISDIR}/util-linux:" | 28 | FILESEXTRAPATHS:prepend := "${THISDIR}/util-linux:" |
| 29 | MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}" | 29 | MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}" |
| @@ -35,8 +35,6 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin | |||
| 35 | file://run-ptest \ | 35 | file://run-ptest \ |
| 36 | file://display_testname_for_subtest.patch \ | 36 | file://display_testname_for_subtest.patch \ |
| 37 | file://avoid_parallel_tests.patch \ | 37 | file://avoid_parallel_tests.patch \ |
| 38 | file://0001-check-for-sys-pidfd.h.patch \ | ||
| 39 | file://0001-configure.ac-Improve-check-for-magic.patch \ | ||
| 40 | " | 38 | " |
| 41 | 39 | ||
| 42 | SRC_URI[sha256sum] = "60492a19b44e6cf9a3ddff68325b333b8b52b6c59ce3ebd6a0ecaa4c5117e84f" | 40 | SRC_URI[sha256sum] = "890ae8ff810247bd19e274df76e8371d202cda01ad277681b0ea88eeaa00286b" |
diff --git a/meta/recipes-core/util-linux/util-linux/0001-check-for-sys-pidfd.h.patch b/meta/recipes-core/util-linux/util-linux/0001-check-for-sys-pidfd.h.patch deleted file mode 100644 index 19f57f14bc..0000000000 --- a/meta/recipes-core/util-linux/util-linux/0001-check-for-sys-pidfd.h.patch +++ /dev/null | |||
| @@ -1,53 +0,0 @@ | |||
| 1 | From 548bc568f3c735e53fb5b0a5ab6473a3f1457b91 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 7 Aug 2022 14:39:19 -0700 | ||
| 4 | Subject: [PATCH] check for sys/pidfd.h | ||
| 5 | |||
| 6 | This header in newer glibc defines the signatures of functions | ||
| 7 | pidfd_send_signal() and pidfd_open() and when these functions are | ||
| 8 | defined by libc then we need to include the relevant header to get | ||
| 9 | the definitions. Clang 15+ has started to error out when function | ||
| 10 | signatures are missing. | ||
| 11 | |||
| 12 | Fixes errors like | ||
| 13 | misc-utils/kill.c:402:6: error: call to undeclared function 'pidfd_send_signal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] | ||
| 14 | if (pidfd_send_signal(pfd, ctl->numsig, &info, 0) < 0) | ||
| 15 | |||
| 16 | Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/1769] | ||
| 17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 18 | --- | ||
| 19 | configure.ac | 1 + | ||
| 20 | include/pidfd-utils.h | 4 +++- | ||
| 21 | 2 files changed, 4 insertions(+), 1 deletion(-) | ||
| 22 | |||
| 23 | diff --git a/configure.ac b/configure.ac | ||
| 24 | index a511e93de..fd7d9245f 100644 | ||
| 25 | --- a/configure.ac | ||
| 26 | +++ b/configure.ac | ||
| 27 | @@ -342,6 +342,7 @@ AC_CHECK_HEADERS([ \ | ||
| 28 | sys/mkdev.h \ | ||
| 29 | sys/mount.h \ | ||
| 30 | sys/param.h \ | ||
| 31 | + sys/pidfd.h \ | ||
| 32 | sys/prctl.h \ | ||
| 33 | sys/resource.h \ | ||
| 34 | sys/sendfile.h \ | ||
| 35 | diff --git a/include/pidfd-utils.h b/include/pidfd-utils.h | ||
| 36 | index eddede976..d9e33cbc5 100644 | ||
| 37 | --- a/include/pidfd-utils.h | ||
| 38 | +++ b/include/pidfd-utils.h | ||
| 39 | @@ -4,8 +4,10 @@ | ||
| 40 | #ifdef HAVE_SYS_SYSCALL_H | ||
| 41 | # include <sys/syscall.h> | ||
| 42 | # if defined(SYS_pidfd_send_signal) && defined(SYS_pidfd_open) | ||
| 43 | +# ifdef HAVE_SYS_PIDFD_H | ||
| 44 | +# include <sys/pidfd.h> | ||
| 45 | +# endif | ||
| 46 | # include <sys/types.h> | ||
| 47 | - | ||
| 48 | # ifndef HAVE_PIDFD_SEND_SIGNAL | ||
| 49 | static inline int pidfd_send_signal(int pidfd, int sig, siginfo_t *info, | ||
| 50 | unsigned int flags) | ||
| 51 | -- | ||
| 52 | 2.37.1 | ||
| 53 | |||
diff --git a/meta/recipes-core/util-linux/util-linux/0001-configure.ac-Improve-check-for-magic.patch b/meta/recipes-core/util-linux/util-linux/0001-configure.ac-Improve-check-for-magic.patch deleted file mode 100644 index 00611fe578..0000000000 --- a/meta/recipes-core/util-linux/util-linux/0001-configure.ac-Improve-check-for-magic.patch +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | From 263381ddd46eea2293c70bc811273b66bc52087b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mateusz Marciniec <mateuszmar2@gmail.com> | ||
| 3 | Date: Fri, 19 Aug 2022 14:47:49 +0200 | ||
| 4 | Subject: [PATCH] configure.ac: Improve check for magic | ||
| 5 | |||
| 6 | Check whether magic.h header exists before defining HAVE_MAGIC. | ||
| 7 | |||
| 8 | Despite library availability there still can be missing header. | ||
| 9 | Current test doesn't cover that possibility which will lead compilation | ||
| 10 | to fail in case of separate sysroot. | ||
| 11 | |||
| 12 | Upstream-Status: Backport | ||
| 13 | [https://github.com/util-linux/util-linux/commit/263381ddd46eea2293c70bc811273b66bc52087b] | ||
| 14 | |||
| 15 | Signed-off-by: Mateusz Marciniec <mateuszmar2@gmail.com> | ||
| 16 | Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com> | ||
| 17 | --- | ||
| 18 | configure.ac | 6 ++++-- | ||
| 19 | 1 file changed, 4 insertions(+), 2 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/configure.ac b/configure.ac | ||
| 22 | index daa8f0dca..968a0daf0 100644 | ||
| 23 | --- a/configure.ac | ||
| 24 | +++ b/configure.ac | ||
| 25 | @@ -1570,8 +1570,10 @@ AC_ARG_WITH([libmagic], | ||
| 26 | ) | ||
| 27 | AS_IF([test "x$with_libmagic" = xno], [have_magic=no], [ | ||
| 28 | AC_CHECK_LIB([magic], [magic_open], [ | ||
| 29 | - AC_DEFINE([HAVE_MAGIC], [1], [Define to 1 if you have the libmagic present.]) | ||
| 30 | - MAGIC_LIBS="-lmagic" | ||
| 31 | + AC_CHECK_HEADER(magic.h, [ | ||
| 32 | + AC_DEFINE([HAVE_MAGIC], [1], [Define to 1 if you have the libmagic present.]) | ||
| 33 | + MAGIC_LIBS="-lmagic" | ||
| 34 | + ]) | ||
| 35 | ]) | ||
| 36 | ]) | ||
| 37 | AC_SUBST([MAGIC_LIBS]) | ||
| 38 | -- | ||
| 39 | 2.37.1 | ||
| 40 | |||
diff --git a/meta/recipes-core/util-linux/util-linux/run-ptest b/meta/recipes-core/util-linux/util-linux/run-ptest index 097107cd09..7b6b1d1dc2 100644 --- a/meta/recipes-core/util-linux/util-linux/run-ptest +++ b/meta/recipes-core/util-linux/util-linux/run-ptest | |||
| @@ -16,7 +16,15 @@ export PATH=$bindir/bin:$PATH | |||
| 16 | # losetup tests will be skipped and/or fail otherwise | 16 | # losetup tests will be skipped and/or fail otherwise |
| 17 | modprobe loop | 17 | modprobe loop |
| 18 | 18 | ||
| 19 | ./tests/run.sh --use-system-commands --parsable --show-diff | sed -u '{ | 19 | # required for mount/fallback test to pass |
| 20 | # systemd does this by default, but ptest images do not use it | ||
| 21 | # see https://man7.org/linux/man-pages/man7/mount_namespaces.7.html | ||
| 22 | # for a long description of mount namespaces in Linux | ||
| 23 | mount --make-shared / | ||
| 24 | |||
| 25 | # lsfd/option-inet has races in the test script: | ||
| 26 | # https://github.com/util-linux/util-linux/issues/2399 | ||
| 27 | ./tests/run.sh --use-system-commands --parsable --show-diff --exclude=lsfd/option-inet | sed -u '{ | ||
| 20 | s/^\(.*\):\(.*\) \.\.\. OK$/PASS: \1:\2/ | 28 | s/^\(.*\):\(.*\) \.\.\. OK$/PASS: \1:\2/ |
| 21 | s/^\(.*\):\(.*\) \.\.\. FAILED \(.*\)$/FAIL: \1:\2 \3/ | 29 | s/^\(.*\):\(.*\) \.\.\. FAILED \(.*\)$/FAIL: \1:\2 \3/ |
| 22 | s/^\(.*\):\(.*\) \.\.\. SKIPPED \(.*\)$/SKIP: \1:\2 \3/ | 30 | s/^\(.*\):\(.*\) \.\.\. SKIPPED \(.*\)$/SKIP: \1:\2 \3/ |
diff --git a/meta/recipes-core/util-linux/util-linux_2.38.1.bb b/meta/recipes-core/util-linux/util-linux_2.39.1.bb index c81405533c..c81405533c 100644 --- a/meta/recipes-core/util-linux/util-linux_2.38.1.bb +++ b/meta/recipes-core/util-linux/util-linux_2.39.1.bb | |||
