diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2024-07-11 00:56:35 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-13 23:28:30 +0100 |
commit | 67db5f4f555df818c49446c99cec685b9637d375 (patch) | |
tree | 580ef9f52c6b53f520de29518dd4fc35bce539e5 /meta/recipes-core/util-linux | |
parent | 052ddf26b119560da6ef373add30805ed144d9ef (diff) | |
download | poky-67db5f4f555df818c49446c99cec685b9637d375.tar.gz |
util-linux/util-linux-libuuid: upgrade from 2.39.3 to 2.40.1
License-Update:
===============
GPL-2.0 is changed to GPL-2.0-only in README.licensing.
The following two patches are removed as they've been there in new release:
0001-login-utils-include-libgen.h-for-basename-API.patch
mit-license.patch
Other existing patches are refreshed to avoid patch-fuzz error.
A new PACKAGECONFIG, lastlog2, is added, which serves as a switch to build Y2038
safe lastlog pam module. This is a new functionality added in 2.40.
This 2.40.1 version has the problem of unnecessary remake, causing
intermmittent errors at parallel make. The do_compile:prepend is a
workaround for this. Upstream issue and PR are:
https://github.com/util-linux/util-linux/issues/3061
https://github.com/util-linux/util-linux/pull/3064
do_install is changed to do_install:append, the legacy codes are
removed. They've been there since the born of oe-core. I tested
with ccache, there's no error.
A new dependency, diffutils, is added to ptest. Because the mkswap-offset
test case needs 'cmp' from diffutils.
The tests/ts/misc/enosys test case is deleted for musl. This is because
the test case is comparing error description output and that's libc
specific. Results below can demonstrate the case.
'''
root@qemux86-64:/usr/lib/util-linux/ptest# cat /usr/lib/util-linux/ptest/tests/expected/misc/enosys-ioctl
test_enosys: ioctl r=0 errno=Success
test_enosys: ioctl r=-1 errno=Function not implemented
test_enosys: ioctl r=-1 errno=Inappropriate ioctl for device
test_enosys: ioctl r=-1 errno=Inappropriate ioctl for device
test_enosys: ioctl r=-1 errno=Function not implemented
root@qemux86-64:/usr/lib/util-linux/ptest# cat /usr/lib/util-linux/ptest/tests/output/misc/enosys-ioctl
test_enosys: ioctl r=0 errno=No error information
test_enosys: ioctl r=-1 errno=Function not implemented
test_enosys: ioctl r=-1 errno=Not a tty
test_enosys: ioctl r=-1 errno=Not a tty
test_enosys: ioctl r=-1 errno=Function not implemented
'''
(From OE-Core rev: 2c5f70e7e73362502a7d8d0773fbd04520b26eef)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/util-linux')
-rw-r--r-- | meta/recipes-core/util-linux/util-linux-libuuid_2.40.1.bb (renamed from meta/recipes-core/util-linux/util-linux-libuuid_2.39.3.bb) | 0 | ||||
-rw-r--r-- | meta/recipes-core/util-linux/util-linux.inc | 8 | ||||
-rw-r--r-- | meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch | 60 | ||||
-rw-r--r-- | meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch | 5 | ||||
-rw-r--r-- | meta/recipes-core/util-linux/util-linux/configure-sbindir.patch | 7 | ||||
-rw-r--r-- | meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch | 7 | ||||
-rw-r--r-- | meta/recipes-core/util-linux/util-linux/mit-license.patch | 45 | ||||
-rw-r--r-- | meta/recipes-core/util-linux/util-linux/ptest.patch | 11 | ||||
-rw-r--r-- | meta/recipes-core/util-linux/util-linux_2.40.1.bb (renamed from meta/recipes-core/util-linux/util-linux_2.39.3.bb) | 24 |
9 files changed, 31 insertions, 136 deletions
diff --git a/meta/recipes-core/util-linux/util-linux-libuuid_2.39.3.bb b/meta/recipes-core/util-linux/util-linux-libuuid_2.40.1.bb index ec04c1d384..ec04c1d384 100644 --- a/meta/recipes-core/util-linux/util-linux-libuuid_2.39.3.bb +++ b/meta/recipes-core/util-linux/util-linux-libuuid_2.40.1.bb | |||
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index d506783f9a..0f5f838e84 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc | |||
@@ -6,7 +6,7 @@ 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-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause & MIT" | 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 & MIT" |
10 | LICENSE:${PN}-fcntl-lock = "MIT" | 10 | LICENSE:${PN}-fcntl-lock = "MIT" |
11 | LICENSE:${PN}-fdisk = "GPL-1.0-or-later" | 11 | LICENSE:${PN}-fdisk = "GPL-1.0-or-later" |
12 | LICENSE:${PN}-libblkid = "LGPL-2.1-or-later" | 12 | LICENSE:${PN}-libblkid = "LGPL-2.1-or-later" |
@@ -14,7 +14,7 @@ LICENSE:${PN}-libfdisk = "LGPL-2.1-or-later" | |||
14 | LICENSE:${PN}-libmount = "LGPL-2.1-or-later" | 14 | LICENSE:${PN}-libmount = "LGPL-2.1-or-later" |
15 | LICENSE:${PN}-libsmartcols = "LGPL-2.1-or-later" | 15 | LICENSE:${PN}-libsmartcols = "LGPL-2.1-or-later" |
16 | 16 | ||
17 | LIC_FILES_CHKSUM = "file://README.licensing;md5=cc80239f106687ab39ef0271ff5cf4ba \ | 17 | LIC_FILES_CHKSUM = "file://README.licensing;md5=ddd58b6c94da86ff4f03e91208eb9cfc \ |
18 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 18 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
19 | file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 19 | file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
20 | file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380cdd255951079008b364516c \ | 20 | file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380cdd255951079008b364516c \ |
@@ -30,7 +30,6 @@ LIC_FILES_CHKSUM = "file://README.licensing;md5=cc80239f106687ab39ef0271ff5cf4ba | |||
30 | FILESEXTRAPATHS:prepend := "${THISDIR}/util-linux:" | 30 | FILESEXTRAPATHS:prepend := "${THISDIR}/util-linux:" |
31 | MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}" | 31 | MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}" |
32 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-linux-${PV}.tar.xz \ | 32 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-linux-${PV}.tar.xz \ |
33 | file://mit-license.patch \ | ||
34 | file://configure-sbindir.patch \ | 33 | file://configure-sbindir.patch \ |
35 | file://runuser.pamd \ | 34 | file://runuser.pamd \ |
36 | file://runuser-l.pamd \ | 35 | file://runuser-l.pamd \ |
@@ -38,8 +37,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin | |||
38 | file://run-ptest \ | 37 | file://run-ptest \ |
39 | file://display_testname_for_subtest.patch \ | 38 | file://display_testname_for_subtest.patch \ |
40 | file://avoid_parallel_tests.patch \ | 39 | file://avoid_parallel_tests.patch \ |
41 | file://0001-login-utils-include-libgen.h-for-basename-API.patch \ | ||
42 | file://fcntl-lock.c \ | 40 | file://fcntl-lock.c \ |
43 | " | 41 | " |
44 | 42 | ||
45 | SRC_URI[sha256sum] = "7b6605e48d1a49f43cc4b4cfc59f313d0dd5402fa40b96810bd572e167dfed0f" | 43 | SRC_URI[sha256sum] = "59e676aa53ccb44b6c39f0ffe01a8fa274891c91bef1474752fad92461def24f" |
diff --git a/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch b/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch deleted file mode 100644 index 6258710e1e..0000000000 --- a/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | From d44e3ad1f6f8b5c1b3098bb7d537943a4c21d22f Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 3 Dec 2023 19:59:46 -0800 | ||
4 | Subject: [PATCH] login-utils: include libgen.h for basename API | ||
5 | |||
6 | musl has removed the non-prototype declaration of basename from string.h [1] which now results in build errors with clang-17+ compiler | ||
7 | |||
8 | include libgen.h for using the posix declaration of the funciton. | ||
9 | |||
10 | Fixes | ||
11 | |||
12 | ../util-linux-2.39.2/login-utils/su-common.c:847:20: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] | ||
13 | 847 | shell_basename = basename(shell); | ||
14 | | ^ | ||
15 | |||
16 | [1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 | ||
17 | |||
18 | Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/2615] | ||
19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
20 | |||
21 | --- | ||
22 | login-utils/su-common.c | 10 +++++++--- | ||
23 | 1 file changed, 7 insertions(+), 3 deletions(-) | ||
24 | |||
25 | diff --git a/login-utils/su-common.c b/login-utils/su-common.c | ||
26 | index b674920..3297c78 100644 | ||
27 | --- a/login-utils/su-common.c | ||
28 | +++ b/login-utils/su-common.c | ||
29 | @@ -26,6 +26,7 @@ | ||
30 | #include <sys/types.h> | ||
31 | #include <pwd.h> | ||
32 | #include <grp.h> | ||
33 | +#include <libgen.h> | ||
34 | #include <security/pam_appl.h> | ||
35 | #ifdef HAVE_SECURITY_PAM_MISC_H | ||
36 | # include <security/pam_misc.h> | ||
37 | @@ -840,17 +841,20 @@ static void run_shell( | ||
38 | su->simulate_login ? " login" : "", | ||
39 | su->fast_startup ? " fast-start" : "")); | ||
40 | |||
41 | + char* tmp = xstrdup(shell); | ||
42 | if (su->simulate_login) { | ||
43 | char *arg0; | ||
44 | char *shell_basename; | ||
45 | |||
46 | - shell_basename = basename(shell); | ||
47 | + shell_basename = basename(tmp); | ||
48 | arg0 = xmalloc(strlen(shell_basename) + 2); | ||
49 | arg0[0] = '-'; | ||
50 | strcpy(arg0 + 1, shell_basename); | ||
51 | args[0] = arg0; | ||
52 | - } else | ||
53 | - args[0] = basename(shell); | ||
54 | + } else { | ||
55 | + args[0] = basename(tmp); | ||
56 | + } | ||
57 | + free(tmp); | ||
58 | |||
59 | if (su->fast_startup) | ||
60 | args[argno++] = "-f"; | ||
diff --git a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch index 85ad7a5575..8ea00dbb95 100644 --- a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch +++ b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 0b05e4695a0616badef71dfa459a00ef6ff1b521 Mon Sep 17 00:00:00 2001 | 1 | From da58b4150f6932de36c962ea657713bcf4ea44be Mon Sep 17 00:00:00 2001 |
2 | From: Tudor Florea <tudor.florea@enea.com> | 2 | From: Tudor Florea <tudor.florea@enea.com> |
3 | Date: Mon, 14 Jun 2021 14:00:31 +0200 | 3 | Date: Mon, 14 Jun 2021 14:00:31 +0200 |
4 | Subject: [PATCH] util-linux: Add ptest | 4 | Subject: [PATCH] util-linux: Add ptest |
@@ -9,13 +9,12 @@ Revert run.sh script accordingly to serialize running tests | |||
9 | 9 | ||
10 | Signed-off-by: Tudor Florea <tudor.florea@enea.com> | 10 | Signed-off-by: Tudor Florea <tudor.florea@enea.com> |
11 | Upstream-Status: Inappropriate | 11 | Upstream-Status: Inappropriate |
12 | |||
13 | --- | 12 | --- |
14 | configure.ac | 2 +- | 13 | configure.ac | 2 +- |
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
16 | 15 | ||
17 | diff --git a/configure.ac b/configure.ac | 16 | diff --git a/configure.ac b/configure.ac |
18 | index 890212f..870e817 100644 | 17 | index 651ef2b..2a8012e 100644 |
19 | --- a/configure.ac | 18 | --- a/configure.ac |
20 | +++ b/configure.ac | 19 | +++ b/configure.ac |
21 | @@ -11,7 +11,7 @@ AC_CONFIG_MACRO_DIR([m4]) | 20 | @@ -11,7 +11,7 @@ AC_CONFIG_MACRO_DIR([m4]) |
diff --git a/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch b/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch index 75adeca188..74abdc2038 100644 --- a/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch +++ b/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From c79222a9a5e3425c55e150edc0b7ac59c573aa2f Mon Sep 17 00:00:00 2001 | 1 | From 0387d71516c978899cfd556ca512f530a212b4a9 Mon Sep 17 00:00:00 2001 |
2 | From: Phil Blundell <pb@pbcl.net> | 2 | From: Phil Blundell <pb@pbcl.net> |
3 | Date: Mon, 24 Sep 2012 07:24:51 +0100 | 3 | Date: Mon, 24 Sep 2012 07:24:51 +0100 |
4 | Subject: [PATCH] util-linux: Ensure that ${sbindir} is respected | 4 | Subject: [PATCH] util-linux: Ensure that ${sbindir} is respected |
@@ -9,16 +9,15 @@ fix the test, the [ ] syntax was getting eaten by autoconf | |||
9 | Signed-off-by: Phil Blundell <pb@pbcl.net> | 9 | Signed-off-by: Phil Blundell <pb@pbcl.net> |
10 | Signed-off-by: Saul Wold <sgw@linux.intel.com | 10 | Signed-off-by: Saul Wold <sgw@linux.intel.com |
11 | Upstream-Status: Inappropriate [configuration] | 11 | Upstream-Status: Inappropriate [configuration] |
12 | |||
13 | --- | 12 | --- |
14 | configure.ac | 5 ++++- | 13 | configure.ac | 5 ++++- |
15 | 1 file changed, 4 insertions(+), 1 deletion(-) | 14 | 1 file changed, 4 insertions(+), 1 deletion(-) |
16 | 15 | ||
17 | diff --git a/configure.ac b/configure.ac | 16 | diff --git a/configure.ac b/configure.ac |
18 | index 36c24b4..890212f 100644 | 17 | index 23594ff..651ef2b 100644 |
19 | --- a/configure.ac | 18 | --- a/configure.ac |
20 | +++ b/configure.ac | 19 | +++ b/configure.ac |
21 | @@ -102,7 +102,10 @@ AC_SUBST([runstatedir]) | 20 | @@ -110,7 +110,10 @@ AC_SUBST([runstatedir]) |
22 | usrbin_execdir='${exec_prefix}/bin' | 21 | usrbin_execdir='${exec_prefix}/bin' |
23 | AC_SUBST([usrbin_execdir]) | 22 | AC_SUBST([usrbin_execdir]) |
24 | 23 | ||
diff --git a/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch b/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch index 815ae9c915..871b0b2d30 100644 --- a/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch +++ b/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch | |||
@@ -1,20 +1,19 @@ | |||
1 | From fc5de1de898fd1a372a2fd2fa493dc57323a029d Mon Sep 17 00:00:00 2001 | 1 | From 45450d0339cd7ee27f53c0f2fac1cc74ed9bbfb8 Mon Sep 17 00:00:00 2001 |
2 | From: Tudor Florea <tudor.florea@enea.com> | 2 | From: Tudor Florea <tudor.florea@enea.com> |
3 | Date: Thu, 3 Dec 2015 04:08:00 +0100 | 3 | Date: Thu, 3 Dec 2015 04:08:00 +0100 |
4 | Subject: [PATCH] Display testname for subtest | 4 | Subject: [PATCH] Display testname for subtest |
5 | 5 | ||
6 | Signed-off-by: Tudor Florea <tudor.florea@enea.com> | 6 | Signed-off-by: Tudor Florea <tudor.florea@enea.com> |
7 | Upstream-Status: Pending | 7 | Upstream-Status: Pending |
8 | |||
9 | --- | 8 | --- |
10 | tests/functions.sh | 2 +- | 9 | tests/functions.sh | 2 +- |
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
12 | 11 | ||
13 | diff --git a/tests/functions.sh b/tests/functions.sh | 12 | diff --git a/tests/functions.sh b/tests/functions.sh |
14 | index 5a562a3..098145e 100644 | 13 | index 5fe5ba0..a6c703e 100644 |
15 | --- a/tests/functions.sh | 14 | --- a/tests/functions.sh |
16 | +++ b/tests/functions.sh | 15 | +++ b/tests/functions.sh |
17 | @@ -437,7 +437,7 @@ function ts_init_subtest { | 16 | @@ -450,7 +450,7 @@ function ts_init_subtest { |
18 | 17 | ||
19 | if [ "$TS_PARSABLE" != "yes" ]; then | 18 | if [ "$TS_PARSABLE" != "yes" ]; then |
20 | [ $TS_NSUBTESTS -eq 1 ] && echo | 19 | [ $TS_NSUBTESTS -eq 1 ] && echo |
diff --git a/meta/recipes-core/util-linux/util-linux/mit-license.patch b/meta/recipes-core/util-linux/util-linux/mit-license.patch deleted file mode 100644 index afbec98f18..0000000000 --- a/meta/recipes-core/util-linux/util-linux/mit-license.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | From 5b8fab1584017d9d9be008c23b90128bba41a7b5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
3 | Date: Thu, 28 Mar 2024 12:16:57 +0000 | ||
4 | Subject: [PATCH] README.licensing/flock: Add MIT license mention | ||
5 | |||
6 | Looking at the license text, flock.c is under the MIT license (see | ||
7 | https://spdx.org/licenses/MIT). | ||
8 | |||
9 | Add an SPDX license identifier header and add to the list of licenses the | ||
10 | source so everything is correctly listed/identified. | ||
11 | |||
12 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
13 | |||
14 | Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/2870] | ||
15 | |||
16 | --- | ||
17 | README.licensing | 2 ++ | ||
18 | sys-utils/flock.c | 4 +++- | ||
19 | 2 files changed, 5 insertions(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/README.licensing b/README.licensing | ||
22 | index 4454f8392a..535ad34813 100644 | ||
23 | --- a/README.licensing | ||
24 | +++ b/README.licensing | ||
25 | @@ -12,6 +12,8 @@ There is code under: | ||
26 | |||
27 | * LGPL-2.1-or-later - GNU Lesser General Public License 2.1 or any later version | ||
28 | |||
29 | + * MIT - MIT License | ||
30 | + | ||
31 | * BSD-2-Clause - Simplified BSD License | ||
32 | |||
33 | * BSD-3-Clause - BSD 3-Clause "New" or "Revised" License | ||
34 | diff --git a/sys-utils/flock.c b/sys-utils/flock.c | ||
35 | index fed29d7270..7d878ff810 100644 | ||
36 | --- a/sys-utils/flock.c | ||
37 | +++ b/sys-utils/flock.c | ||
38 | @@ -1,4 +1,6 @@ | ||
39 | -/* Copyright 2003-2005 H. Peter Anvin - All Rights Reserved | ||
40 | +/* SPDX-License-Identifier: MIT | ||
41 | + * | ||
42 | + * Copyright 2003-2005 H. Peter Anvin - All Rights Reserved | ||
43 | * | ||
44 | * Permission is hereby granted, free of charge, to any person | ||
45 | * obtaining a copy of this software and associated documentation | ||
diff --git a/meta/recipes-core/util-linux/util-linux/ptest.patch b/meta/recipes-core/util-linux/util-linux/ptest.patch index 6221de7182..7345926b88 100644 --- a/meta/recipes-core/util-linux/util-linux/ptest.patch +++ b/meta/recipes-core/util-linux/util-linux/ptest.patch | |||
@@ -1,24 +1,23 @@ | |||
1 | From d0a69ce80c579cbb7627a2f20e8b92e006a8d8ad Mon Sep 17 00:00:00 2001 | 1 | From f9be73c3e2b0a4f0923950dcb058be85d3ee8ed7 Mon Sep 17 00:00:00 2001 |
2 | From: Tudor Florea <tudor.florea@enea.com> | 2 | From: Tudor Florea <tudor.florea@enea.com> |
3 | Date: Thu, 3 Dec 2015 04:08:00 +0100 | 3 | Date: Thu, 3 Dec 2015 04:08:00 +0100 |
4 | Subject: [PATCH] Define TESTS variable | 4 | Subject: [PATCH] Define TESTS variable |
5 | 5 | ||
6 | Signed-off-by: Tudor Florea <tudor.florea@enea.com> | 6 | Signed-off-by: Tudor Florea <tudor.florea@enea.com> |
7 | Upstream-Status: Pending | 7 | Upstream-Status: Pending |
8 | |||
9 | --- | 8 | --- |
10 | Makefile.am | 1 + | 9 | Makefile.am | 1 + |
11 | 1 file changed, 1 insertion(+) | 10 | 1 file changed, 1 insertion(+) |
12 | 11 | ||
13 | diff --git a/Makefile.am b/Makefile.am | 12 | diff --git a/Makefile.am b/Makefile.am |
14 | index effbb02..7d2bd1e 100644 | 13 | index 50ab8d0..7e2340d 100644 |
15 | --- a/Makefile.am | 14 | --- a/Makefile.am |
16 | +++ b/Makefile.am | 15 | +++ b/Makefile.am |
17 | @@ -57,6 +57,7 @@ systemdsystemunit_DATA = | 16 | @@ -64,6 +64,7 @@ tmpfiles_DATA = |
18 | dist_bashcompletion_DATA = | 17 | dist_bashcompletion_DATA = |
19 | check_PROGRAMS = | 18 | check_PROGRAMS = |
20 | dist_check_SCRIPTS = | 19 | dist_check_SCRIPTS = |
21 | +TESTS = $(check_PROGRAMS) | 20 | +TESTS = $(check_PROGRAMS) |
22 | 21 | ||
23 | PATHFILES = | 22 | BUILT_SOURCES = |
24 | ADOCFILES_COMMON = | 23 | |
diff --git a/meta/recipes-core/util-linux/util-linux_2.39.3.bb b/meta/recipes-core/util-linux/util-linux_2.40.1.bb index 2cd7750afc..b70d97a934 100644 --- a/meta/recipes-core/util-linux/util-linux_2.39.3.bb +++ b/meta/recipes-core/util-linux/util-linux_2.40.1.bb | |||
@@ -90,7 +90,7 @@ EXTRA_OECONF:append = " --disable-hwclock-gplv3" | |||
90 | # build host versions during development | 90 | # build host versions during development |
91 | # | 91 | # |
92 | PACKAGECONFIG ?= "pcre2" | 92 | PACKAGECONFIG ?= "pcre2" |
93 | PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam', '', d)}" | 93 | PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam lastlog2', '', d)}" |
94 | # inherit manpages requires this to be present, however util-linux does not have | 94 | # inherit manpages requires this to be present, however util-linux does not have |
95 | # configuration options, and installs manpages always | 95 | # configuration options, and installs manpages always |
96 | PACKAGECONFIG[manpages] = "" | 96 | PACKAGECONFIG[manpages] = "" |
@@ -106,6 +106,7 @@ PACKAGECONFIG[pcre2] = ",,libpcre2" | |||
106 | PACKAGECONFIG[cryptsetup] = "--with-cryptsetup,--without-cryptsetup,cryptsetup" | 106 | PACKAGECONFIG[cryptsetup] = "--with-cryptsetup,--without-cryptsetup,cryptsetup" |
107 | PACKAGECONFIG[chfn-chsh] = "--enable-chfn-chsh,--disable-chfn-chsh," | 107 | PACKAGECONFIG[chfn-chsh] = "--enable-chfn-chsh,--disable-chfn-chsh," |
108 | PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux" | 108 | PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux" |
109 | PACKAGECONFIG[lastlog2] = "--enable-liblastlog2,--disable-liblastlog2,sqlite3" | ||
109 | 110 | ||
110 | EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'" | 111 | EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'" |
111 | 112 | ||
@@ -117,6 +118,7 @@ FILES:${PN}-mount = "${sysconfdir}/default/mountall" | |||
117 | FILES:${PN}-runuser = "${sysconfdir}/pam.d/runuser*" | 118 | FILES:${PN}-runuser = "${sysconfdir}/pam.d/runuser*" |
118 | FILES:${PN}-su = "${sysconfdir}/pam.d/su-l" | 119 | FILES:${PN}-su = "${sysconfdir}/pam.d/su-l" |
119 | CONFFILES:${PN}-su = "${sysconfdir}/pam.d/su-l" | 120 | CONFFILES:${PN}-su = "${sysconfdir}/pam.d/su-l" |
121 | FILES:${PN}-lastlog2 += "${base_libdir}/security/pam_lastlog2.so" | ||
120 | FILES:${PN}-pylibmount = "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.so \ | 122 | FILES:${PN}-pylibmount = "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.so \ |
121 | ${PYTHON_SITEPACKAGES_DIR}/libmount/__init__.* \ | 123 | ${PYTHON_SITEPACKAGES_DIR}/libmount/__init__.* \ |
122 | ${PYTHON_SITEPACKAGES_DIR}/libmount/__pycache__/*" | 124 | ${PYTHON_SITEPACKAGES_DIR}/libmount/__pycache__/*" |
@@ -136,7 +138,7 @@ RDEPENDS:${PN}-dev += " util-linux-libuuid-dev" | |||
136 | RPROVIDES:${PN}-dev = "${PN}-libblkid-dev ${PN}-libmount-dev" | 138 | RPROVIDES:${PN}-dev = "${PN}-libblkid-dev ${PN}-libmount-dev" |
137 | 139 | ||
138 | RDEPENDS:${PN}-bash-completion += "${PN}-lsblk" | 140 | RDEPENDS:${PN}-bash-completion += "${PN}-lsblk" |
139 | RDEPENDS:${PN}-ptest += "bash bc btrfs-tools coreutils e2fsprogs findutils grep iproute2 kmod procps sed socat which xz" | 141 | RDEPENDS:${PN}-ptest += "bash bc btrfs-tools coreutils e2fsprogs findutils grep iproute2 kmod procps sed socat which xz diffutils" |
140 | RRECOMMENDS:${PN}-ptest += "kernel-module-scsi-debug kernel-module-sd-mod kernel-module-loop kernel-module-algif-hash" | 142 | RRECOMMENDS:${PN}-ptest += "kernel-module-scsi-debug kernel-module-sd-mod kernel-module-loop kernel-module-algif-hash" |
141 | RDEPENDS:${PN}-swaponoff = "${PN}-swapon ${PN}-swapoff" | 143 | RDEPENDS:${PN}-swaponoff = "${PN}-swapon ${PN}-swapoff" |
142 | ALLOW_EMPTY:${PN}-swaponoff = "1" | 144 | ALLOW_EMPTY:${PN}-swaponoff = "1" |
@@ -147,18 +149,21 @@ SYSTEMD_AUTO_ENABLE:${PN}-uuidd = "disable" | |||
147 | SYSTEMD_SERVICE:${PN}-fstrim = "fstrim.timer fstrim.service" | 149 | SYSTEMD_SERVICE:${PN}-fstrim = "fstrim.timer fstrim.service" |
148 | SYSTEMD_AUTO_ENABLE:${PN}-fstrim = "disable" | 150 | SYSTEMD_AUTO_ENABLE:${PN}-fstrim = "disable" |
149 | 151 | ||
152 | do_compile:prepend () { | ||
153 | # this is a workaround for the unnecessary remake problem. Issue and PR are as below: | ||
154 | # https://github.com/util-linux/util-linux/issues/3061 | ||
155 | # https://github.com/util-linux/util-linux/pull/3064 | ||
156 | # When newly release tarball contains the above fix, the following workaround could be dropped. | ||
157 | [ -e ${S}/libsmartcols/src/filter-scanner.c ] && touch ${S}/libsmartcols/src/filter-scanner.c | ||
158 | [ -e ${S}/libsmartcols/src/filter-parser.c ] && touch ${S}/libsmartcols/src/filter-parser.c | ||
159 | } | ||
160 | |||
150 | do_compile:append () { | 161 | do_compile:append () { |
151 | cp ${UNPACKDIR}/fcntl-lock.c ${S}/fcntl-lock.c | 162 | cp ${UNPACKDIR}/fcntl-lock.c ${S}/fcntl-lock.c |
152 | ${CC} ${CFLAGS} ${LDFLAGS} ${S}/fcntl-lock.c -o ${B}/fcntl-lock | 163 | ${CC} ${CFLAGS} ${LDFLAGS} ${S}/fcntl-lock.c -o ${B}/fcntl-lock |
153 | } | 164 | } |
154 | 165 | ||
155 | do_install () { | 166 | do_install:append () { |
156 | # with ccache the timestamps on compiled files may | ||
157 | # end up earlier than on their inputs, this allows | ||
158 | # for the resultant compilation in the install step. | ||
159 | oe_runmake 'CC=${CC}' 'LD=${LD}' \ | ||
160 | 'LDFLAGS=${LDFLAGS}' 'DESTDIR=${D}' install | ||
161 | |||
162 | mkdir -p ${D}${base_bindir} | 167 | mkdir -p ${D}${base_bindir} |
163 | 168 | ||
164 | sbinprogs="agetty ctrlaltdel cfdisk vipw vigr" | 169 | sbinprogs="agetty ctrlaltdel cfdisk vipw vigr" |
@@ -342,6 +347,7 @@ do_install_ptest() { | |||
342 | do_install_ptest:append:libc-musl() { | 347 | do_install_ptest:append:libc-musl() { |
343 | for t in tests/ts/col/multibyte \ | 348 | for t in tests/ts/col/multibyte \ |
344 | tests/ts/lib/timeutils \ | 349 | tests/ts/lib/timeutils \ |
350 | tests/ts/misc/enosys \ | ||
345 | tests/ts/dmesg/limit; do | 351 | tests/ts/dmesg/limit; do |
346 | rm -rf ${D}${PTEST_PATH}/$t | 352 | rm -rf ${D}${PTEST_PATH}/$t |
347 | done | 353 | done |