From faf115acdec955cc31d528ada266d9053c13bc71 Mon Sep 17 00:00:00 2001 From: Aniruddha Basak Date: Wed, 29 Sep 2021 11:41:20 +0000 Subject: [PATCH] Update util-linux to 2.37.2 --- .../sys-apps/util-linux/Manifest | 6 +- .../util-linux-2.32-add-missing-lintl.patch | 38 ---- .../files/util-linux-2.32-python3-tests.patch | 105 ---------- ...s-test-when-uuidgen-is-not-available.patch | 41 ---- .../files/util-linux-2.33-sparc-setarch.patch | 80 -------- ...til-linux-2.37.1-agetty_ctrl-c_erase.patch | 50 +++++ ...l-linux-2.37.1-ipcutils_calloc_check.patch | 25 +++ ...-linux-2.37.1-libmount_setgroups_fix.patch | 38 ++++ ...ux-2.37.1-lscpu_NULL_dereference_fix.patch | 50 +++++ ...util-linux-2.37.2-ioctl_ns-test-hang.patch | 37 ++++ .../sys-apps/util-linux/metadata.xml | 7 +- ...-r1.ebuild => util-linux-2.36.2-r1.ebuild} | 88 +++++--- ...-r4.ebuild => util-linux-2.37.1-r1.ebuild} | 194 +++++++++++++----- ...3.1.ebuild => util-linux-2.37.2-r1.ebuild} | 134 ++++++++---- .../util-linux/util-linux-9999.ebuild | 141 ++++++++----- 15 files changed, 592 insertions(+), 442 deletions(-) delete mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.32-add-missing-lintl.patch delete mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.32-python3-tests.patch delete mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.32.1-skip-oids-test-when-uuidgen-is-not-available.patch delete mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.33-sparc-setarch.patch create mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-agetty_ctrl-c_erase.patch create mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-ipcutils_calloc_check.patch create mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-libmount_setgroups_fix.patch create mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-lscpu_NULL_dereference_fix.patch create mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.2-ioctl_ns-test-hang.patch rename sdk_container/src/third_party/portage-stable/sys-apps/util-linux/{util-linux-2.33-r1.ebuild => util-linux-2.36.2-r1.ebuild} (80%) rename sdk_container/src/third_party/portage-stable/sys-apps/util-linux/{util-linux-2.32-r4.ebuild => util-linux-2.37.1-r1.ebuild} (58%) rename sdk_container/src/third_party/portage-stable/sys-apps/util-linux/{util-linux-2.33.1.ebuild => util-linux-2.37.2-r1.ebuild} (70%) diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/Manifest b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/Manifest index f396d8c6da..c330ae5648 100644 --- a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/Manifest +++ b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/Manifest @@ -1,3 +1,3 @@ -DIST util-linux-2.32.tar.xz 4550128 BLAKE2B 0ce22bf93f98ac9827632094b2c3d50280da40394b910e483bf697c8751d532fea7006195baeef0dbc14708edd1204db8e2c87b22bd9f799911c61144a531bb0 SHA512 320c8d364f014aba16483dd26564d7cb47804337567c3e9c2dc495f3865f524e7480d3fec7ef5a05b6e99763b0278da70fffe6d2b88f3f1a832ada5932556482 -DIST util-linux-2.33.1.tar.xz 4650936 BLAKE2B 9ee6bc1a1b800e8537f5552c28cf608f32e89c8ab716434a2de6b4b5e257c53065b9c11cd355f2ef759f69069071ef930790ecd55806deef300ce77f31e38e98 SHA512 94ada47e472b62a612c26fd5a5b7423e09366690a8a96f777191a5d920981eb0f224474bc2f128e827299bf60062770011332757e1551a8cd3764b5c70ae4ba2 -DIST util-linux-2.33.tar.xz 4663072 BLAKE2B df601f6aa6dd1e77c722d5e7350a3b14c6099057487384eb8cd7adee8693711c1d24663f76682c958884559fddf61cc4b6d987bdca70f88e6cb14109e328e8a9 SHA512 5eb419607c5a2634117a604d425d6413763d1e48910acabc7e19d574a4c3fb0ceb34a68671a8e4fe396a4c6d611932082f77cd669d009e218bf64095da0d5689 +DIST util-linux-2.36.2.tar.xz 5348032 BLAKE2B 17e49515f8d0430f3ed26b80bf1d6e811d847141020d0dae1340dc92887549b7b711f3db6e3913120871fc912435def73586a7aef09d8d9cc6ff7ca331b2770f SHA512 6ab141f44ca4cb6b600081f10eae17e15d23abd122a37eb3ac6c845513a6a4396dc9dcff30b3032de80116ddde50e27dfbc86f92708c1051f84f0c919194664b +DIST util-linux-2.37.1.tar.xz 5628360 BLAKE2B 309ea7202f32c0ec750cb01486cf32c3e9dd457d83e5beab8d6b97a5e7f312332ecfcd1ddbb88ae5ec9ee483bb15452b8d58bce1f931f9dfa35be3ce042da3da SHA512 ec300c830869e10a0d7f8c0b99e9bb46e0b88fc51f3c6c6a4d9752a89f035e8d69d81f25fd103ef8d7d253e81440695ef3f5d72dccc94815ec8d5f6f949f7555 +DIST util-linux-2.37.2.tar.xz 5621624 BLAKE2B 40ab80485781dfc58e6d0e98dae115b96f11ee0cc370524e1e13d3c4a4dfed3a5a4a248311f8ca645f6f84bbaf4785412ca8282b840af4e37a01312764885abe SHA512 38f0fe820445e3bfa79550e6581c230f98c7661566ccc4daa51c7208a5f972c61b4e57dfc86bed074fdbc7c40bc79f856be8f6a05a8860c1c0cecc4208e8b81d diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.32-add-missing-lintl.patch b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.32-add-missing-lintl.patch deleted file mode 100644 index 8cca093d7c..0000000000 --- a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.32-add-missing-lintl.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 3188ea9a9292604e537f06f11adddf474fc9e52d Mon Sep 17 00:00:00 2001 -From: Karel Zak -Date: Mon, 9 Apr 2018 12:11:36 +0200 -Subject: [PATCH] build: Add missing -lintl linkage to lib{smartcols,uuid} - -Addresses: https://github.com/karelzak/util-linux/pull/615 -Signed-off-by: Karel Zak ---- - libsmartcols/src/Makemodule.am | 2 +- - libuuid/src/Makemodule.am | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/libsmartcols/src/Makemodule.am b/libsmartcols/src/Makemodule.am -index 664aca30b..665b2aa7f 100644 ---- a/libsmartcols/src/Makemodule.am -+++ b/libsmartcols/src/Makemodule.am -@@ -19,7 +19,7 @@ libsmartcols_la_SOURCES= \ - libsmartcols/src/version.c \ - libsmartcols/src/init.c - --libsmartcols_la_LIBADD = libcommon.la -+libsmartcols_la_LIBADD = $(LDADD) libcommon.la - - libsmartcols_la_CFLAGS = \ - $(AM_CFLAGS) \ -diff --git a/libuuid/src/Makemodule.am b/libuuid/src/Makemodule.am -index 5122622a5..e58fa261c 100644 ---- a/libuuid/src/Makemodule.am -+++ b/libuuid/src/Makemodule.am -@@ -31,7 +31,7 @@ libuuid_la_SOURCES = \ - EXTRA_libuuid_la_DEPENDENCIES = \ - libuuid/src/libuuid.sym - --libuuid_la_LIBADD = $(SOCKET_LIBS) -+libuuid_la_LIBADD = $(LDADD) $(SOCKET_LIBS) - - libuuid_la_CFLAGS = \ - $(AM_CFLAGS) \ diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.32-python3-tests.patch b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.32-python3-tests.patch deleted file mode 100644 index 7b8867ba03..0000000000 --- a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.32-python3-tests.patch +++ /dev/null @@ -1,105 +0,0 @@ -From 8a12ab57755afc36546834f175ef0b9e9376ba59 Mon Sep 17 00:00:00 2001 -From: Frank Schaefer -Date: Tue, 10 Jul 2018 20:21:02 -0500 -Subject: [PATCH] * break up large strings for PySys_WriteStdout() - ---- - libmount/python/fs.c | 56 ++++++++++++++++++++++++++++++++++++++++------------ - 1 file changed, 43 insertions(+), 13 deletions(-) - -diff --git a/libmount/python/fs.c b/libmount/python/fs.c -index d6490d248..634a914ef 100644 ---- a/libmount/python/fs.c -+++ b/libmount/python/fs.c -@@ -63,32 +63,62 @@ static PyObject *Fs_get_devno(FsObject *self) - return PyObjectResultInt(mnt_fs_get_devno(self->fs)); - } - -+static void _dump_debug_string(const char *lead, const char *s, char quote) -+{ -+ /* PySys_WriteStdout() will automatically truncate any '%s' token -+ * longer than a certain length (documented as 1000 bytes, but we -+ * give ourselves some margin here just in case). The only way I -+ * know to get around this is to print such strings in bite-sized -+ * chunks. -+ */ -+ static const unsigned int _PY_MAX_LEN = 900; -+ static const char *_PY_MAX_LEN_FMT = "%.900s"; -+ unsigned int len; -+ -+ if (lead != NULL) -+ PySys_WriteStdout("%s", lead); -+ -+ if (quote != 0) -+ PySys_WriteStdout("%c", quote); -+ -+ for (len = strlen(s); len > _PY_MAX_LEN; len -= _PY_MAX_LEN, s += _PY_MAX_LEN) -+ PySys_WriteStdout(_PY_MAX_LEN_FMT, s); -+ -+ if (len > 0) -+ PySys_WriteStdout(_PY_MAX_LEN_FMT, s); -+ -+ if (quote != 0) -+ PySys_WriteStdout("%c\n", quote); -+ else -+ PySys_WriteStdout("\n"); -+} -+ - #define Fs_print_debug_HELP "print_debug()\n\n" - static PyObject *Fs_print_debug(FsObject *self) - { - PySys_WriteStdout("------ fs: %p\n", self->fs); -- PySys_WriteStdout("source: %s\n", mnt_fs_get_source(self->fs)); -- PySys_WriteStdout("target: %s\n", mnt_fs_get_target(self->fs)); -- PySys_WriteStdout("fstype: %s\n", mnt_fs_get_fstype(self->fs)); -+ _dump_debug_string("source: ", mnt_fs_get_source(self->fs), 0); -+ _dump_debug_string("target: ", mnt_fs_get_target(self->fs), 0); -+ _dump_debug_string("fstype: ", mnt_fs_get_fstype(self->fs), 0); - - if (mnt_fs_get_options(self->fs)) -- PySys_WriteStdout("optstr: %s\n", mnt_fs_get_options(self->fs)); -+ _dump_debug_string("optstr: ", mnt_fs_get_options(self->fs), 0); - if (mnt_fs_get_vfs_options(self->fs)) -- PySys_WriteStdout("VFS-optstr: %s\n", mnt_fs_get_vfs_options(self->fs)); -+ _dump_debug_string("VFS-optstr: ", mnt_fs_get_vfs_options(self->fs), 0); - if (mnt_fs_get_fs_options(self->fs)) -- PySys_WriteStdout("FS-opstr: %s\n", mnt_fs_get_fs_options(self->fs)); -+ _dump_debug_string("FS-opstr: ", mnt_fs_get_fs_options(self->fs), 0); - if (mnt_fs_get_user_options(self->fs)) -- PySys_WriteStdout("user-optstr: %s\n", mnt_fs_get_user_options(self->fs)); -+ _dump_debug_string("user-optstr: ", mnt_fs_get_user_options(self->fs), 0); - if (mnt_fs_get_optional_fields(self->fs)) -- PySys_WriteStdout("optional-fields: '%s'\n", mnt_fs_get_optional_fields(self->fs)); -+ _dump_debug_string("optional-fields: ", mnt_fs_get_optional_fields(self->fs), '\''); - if (mnt_fs_get_attributes(self->fs)) -- PySys_WriteStdout("attributes: %s\n", mnt_fs_get_attributes(self->fs)); -+ _dump_debug_string("attributes: ", mnt_fs_get_attributes(self->fs), 0); - - if (mnt_fs_get_root(self->fs)) -- PySys_WriteStdout("root: %s\n", mnt_fs_get_root(self->fs)); -+ _dump_debug_string("root: ", mnt_fs_get_root(self->fs), 0); - - if (mnt_fs_get_swaptype(self->fs)) -- PySys_WriteStdout("swaptype: %s\n", mnt_fs_get_swaptype(self->fs)); -+ _dump_debug_string("swaptype: ", mnt_fs_get_swaptype(self->fs), 0); - if (mnt_fs_get_size(self->fs)) - PySys_WriteStdout("size: %jd\n", mnt_fs_get_size(self->fs)); - if (mnt_fs_get_usedsize(self->fs)) -@@ -97,7 +127,7 @@ static PyObject *Fs_print_debug(FsObject *self) - PySys_WriteStdout("priority: %d\n", mnt_fs_get_priority(self->fs)); - - if (mnt_fs_get_bindsrc(self->fs)) -- PySys_WriteStdout("bindsrc: %s\n", mnt_fs_get_bindsrc(self->fs)); -+ _dump_debug_string("bindsrc: ", mnt_fs_get_bindsrc(self->fs), 0); - if (mnt_fs_get_freq(self->fs)) - PySys_WriteStdout("freq: %d\n", mnt_fs_get_freq(self->fs)); - if (mnt_fs_get_passno(self->fs)) -@@ -112,7 +142,7 @@ static PyObject *Fs_print_debug(FsObject *self) - if (mnt_fs_get_tid(self->fs)) - PySys_WriteStdout("tid: %d\n", mnt_fs_get_tid(self->fs)); - if (mnt_fs_get_comment(self->fs)) -- PySys_WriteStdout("comment: '%s'\n", mnt_fs_get_comment(self->fs)); -+ _dump_debug_string("comment: ", mnt_fs_get_comment(self->fs), '\''); - return UL_IncRef(self); - } - /* diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.32.1-skip-oids-test-when-uuidgen-is-not-available.patch b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.32.1-skip-oids-test-when-uuidgen-is-not-available.patch deleted file mode 100644 index 743dc89e24..0000000000 --- a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.32.1-skip-oids-test-when-uuidgen-is-not-available.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 8f93c8c71d264e90bdcecf98c9ac372bbcdc53aa Mon Sep 17 00:00:00 2001 -From: Thomas Deutschmann -Date: Sun, 11 Nov 2018 02:17:55 +0100 -Subject: [PATCH] tests: run oids test only when uuidgen tool was built - -oids test did not check if uuidgen was available. - -oids test was also calling uuidgen from PATH which could result -in wrong results if uuidgen from a previous util-linux installation -was used. - -With this commit we will check if uuidgen was built and make sure -that we only call the uuidgen binary we just built. If uuidgen is -not available we will skip this test. ---- - tests/ts/uuid/oids | 10 ++++++---- - 1 file changed, 6 insertions(+), 4 deletions(-) - -diff --git a/tests/ts/uuid/oids b/tests/ts/uuid/oids -index 3b005c5b2..77e010c1d 100755 ---- a/tests/ts/uuid/oids -+++ b/tests/ts/uuid/oids -@@ -20,12 +20,14 @@ ts_init "$*" - - : . > $TS_OUTPUT - --uuidgen --md5 --namespace @dns --name "www.widgets.com" >> $TS_OUTPUT -+ts_check_test_command "$TS_CMD_UUIDGEN" - --uuidgen --md5 --namespace @dns --name "www.example.com" >> $TS_OUTPUT -+$TS_CMD_UUIDGEN --md5 --namespace @dns --name "www.widgets.com" >> $TS_OUTPUT - --uuidgen --sha1 --namespace @dns --name "www.example.com" >> $TS_OUTPUT -+$TS_CMD_UUIDGEN --md5 --namespace @dns --name "www.example.com" >> $TS_OUTPUT - --uuidgen --sha1 --namespace @oid --hex --name "525400fc0f5e" >> $TS_OUTPUT -+$TS_CMD_UUIDGEN --sha1 --namespace @dns --name "www.example.com" >> $TS_OUTPUT -+ -+$TS_CMD_UUIDGEN --sha1 --namespace @oid --hex --name "525400fc0f5e" >> $TS_OUTPUT - - ts_finalize diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.33-sparc-setarch.patch b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.33-sparc-setarch.patch deleted file mode 100644 index cbae6c0f26..0000000000 --- a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.33-sparc-setarch.patch +++ /dev/null @@ -1,80 +0,0 @@ -From 3fa06e049012218d883d0e1251df86bafbc446bf Mon Sep 17 00:00:00 2001 -From: Karel Zak -Date: Thu, 22 Nov 2018 11:03:35 +0100 -Subject: [PATCH] setarch: fix obscure sparc32bash use-case - -Reported-by: Carlos Santos -Signed-off-by: Karel Zak ---- - sys-utils/setarch.c | 28 ++++++++++++++++++---------- - 1 file changed, 18 insertions(+), 10 deletions(-) - -diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c -index a733f7b3c..7c0a63fbb 100644 ---- a/sys-utils/setarch.c -+++ b/sys-utils/setarch.c -@@ -268,6 +268,7 @@ int main(int argc, char *argv[]) - int c; - struct arch_domain *doms, *target; - unsigned long pers_value = 0; -+ char *shell = NULL, *shell_arg = NULL; - - /* Options without equivalent short options */ - enum { -@@ -310,14 +311,14 @@ int main(int argc, char *argv[]) - archwrapper = strcmp(program_invocation_short_name, "setarch") != 0; - if (archwrapper) { - arch = program_invocation_short_name; /* symlinks to setarch */ --#if defined(__sparc64__) || defined(__sparc__) -+ -+ /* Don't use ifdef sparc here, we get "Unrecognized architecture" -+ * error message later if necessary */ - if (strcmp(arch, "sparc32bash") == 0) { -- if (set_arch(arch, 0L, 0)) -- err(EXIT_FAILURE, _("Failed to set personality to %s"), arch); -- execl("/bin/bash", "", NULL); -- errexec("/bin/bash"); -+ shell = "/bin/bash"; -+ shell_arg = ""; -+ goto set_arch; - } --#endif - } else { - if (1 < argc && *argv[1] != '-') { - arch = argv[1]; -@@ -391,6 +392,7 @@ int main(int argc, char *argv[]) - argc -= optind; - argv += optind; - -+set_arch: - /* get execution domain (architecture) */ - if (arch) { - doms = init_arch_domains(); -@@ -422,17 +424,23 @@ int main(int argc, char *argv[]) - if (arch) - verify_arch_domain(target, arch); - -+ if (!argc) { -+ shell = "/bin/sh"; -+ shell_arg = "-sh"; -+ } - if (verbose) { -- printf(_("Execute command `%s'.\n"), argc ? argv[0] : "/bin/sh"); -+ printf(_("Execute command `%s'.\n"), shell ? shell : argv[0]); - /* flush all output streams before exec */ - fflush(NULL); - } - -- if (!argc) { -- execl("/bin/sh", "-sh", NULL); -- errexec("/bin/sh"); -+ /* Execute shell */ -+ if (shell) { -+ execl(shell, shell_arg, NULL); -+ errexec(shell); - } - -+ /* Execute on command line specified command */ - execvp(argv[0], argv); - errexec(argv[0]); - } diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-agetty_ctrl-c_erase.patch b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-agetty_ctrl-c_erase.patch new file mode 100644 index 0000000000..4828fd449f --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-agetty_ctrl-c_erase.patch @@ -0,0 +1,50 @@ +From 6eb1c01e9dd25a73100f06db37190c63fd57d4d9 Mon Sep 17 00:00:00 2001 +From: Karel Zak +Date: Fri, 30 Jul 2021 11:50:46 +0200 +Subject: [PATCH] agetty: use CTRL+C to erase username + +aggety(8) from the beginning ignores ^C (the small exception was +between 2.32 and 2.34 when this char has been misinterpreted). + +This patch forces agetty to interpret ^C like ^U, it means to +erase the user's input and wait for a completely new username. +The small difference is that for ^C it does not set 'kill character'. + +This change does not affect serial lines where ^C is still ignored like +in previous decades. I'd like to avoid any regression as I have +no clue if any serial lines do not send this control char in some +context ... + +Fixes: https://github.com/karelzak/util-linux/issues/1399 +References: https://github.com/karelzak/util-linux/issues/1046 +Signed-off-by: Karel Zak +--- + term-utils/agetty.c | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +diff --git a/term-utils/agetty.c b/term-utils/agetty.c +index 3b3d5101a..d072d64d3 100644 +--- a/term-utils/agetty.c ++++ b/term-utils/agetty.c +@@ -2267,6 +2267,11 @@ static char *get_logname(struct issue *ie, struct options *op, struct termios *t + break; + case CTL('U'): + cp->kill = ascval; /* set kill character */ ++ /* fallthrough */ ++ case CTL('C'): ++ if (key == CTL('C') && !(op->flags & F_VCONSOLE)) ++ /* Ignore CTRL+C on serial line */ ++ break; + while (bp > logname) { + if ((tp->c_lflag & ECHO) == 0) + write_all(1, erase[cp->parity], 3); +@@ -2275,9 +2280,6 @@ static char *get_logname(struct issue *ie, struct options *op, struct termios *t + break; + case CTL('D'): + exit(EXIT_SUCCESS); +- case CTL('C'): +- /* Ignore */ +- break; + default: + if ((size_t)(bp - logname) >= sizeof(logname) - 1) + log_err(_("%s: input overrun"), op->tty); diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-ipcutils_calloc_check.patch b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-ipcutils_calloc_check.patch new file mode 100644 index 0000000000..44490ce1bd --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-ipcutils_calloc_check.patch @@ -0,0 +1,25 @@ +From 86d5de52d43501711586054e7b601fbc57403085 Mon Sep 17 00:00:00 2001 +From: Karel Zak +Date: Tue, 27 Jul 2021 11:58:31 +0200 +Subject: [PATCH] sys-utils/ipcutils: be careful when call calloc() for uint64 + nmembs + +Fix: https://github.com/karelzak/util-linux/issues/1395 +Signed-off-by: Karel Zak +--- + sys-utils/ipcutils.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sys-utils/ipcutils.c b/sys-utils/ipcutils.c +index e784c4dcb9..18868cfd38 100644 +--- a/sys-utils/ipcutils.c ++++ b/sys-utils/ipcutils.c +@@ -218,7 +218,7 @@ static void get_sem_elements(struct sem_data *p) + { + size_t i; + +- if (!p || !p->sem_nsems || p->sem_perm.id < 0) ++ if (!p || !p->sem_nsems || p->sem_nsems > SIZE_MAX || p->sem_perm.id < 0) + return; + + p->elements = xcalloc(p->sem_nsems, sizeof(struct sem_elem)); diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-libmount_setgroups_fix.patch b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-libmount_setgroups_fix.patch new file mode 100644 index 0000000000..ebde207986 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-libmount_setgroups_fix.patch @@ -0,0 +1,38 @@ +From 420e914c4cc4c2ba34fd75790ea194d7f4a47d2c Mon Sep 17 00:00:00 2001 +From: Karel Zak +Date: Thu, 29 Jul 2021 11:50:48 +0200 +Subject: [PATCH] libmount: fix setgroups() use + +* keep process in single supplementary group, which is the real group ID for the process + +* make sure we have rights to call setgroups(), requires group permissions + +Fixes: https://github.com/karelzak/util-linux/issues/1398 +Signed-off-by: Karel Zak +--- + include/c.h | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/include/c.h b/include/c.h +index c1e4c5ffc..a4504e3ba 100644 +--- a/include/c.h ++++ b/include/c.h +@@ -340,14 +340,16 @@ static inline size_t get_hostname_max(void) + + static inline int drop_permissions(void) + { ++ gid_t newgid = getgid(); ++ + errno = 0; + + /* drop supplementary groups */ +- if (setgroups(0, NULL) != 0) ++ if (geteuid() == 0 && setgroups(1, &newgid) != 0) + goto fail; + + /* drop GID */ +- if (setgid(getgid()) < 0) ++ if (setgid(newgid) < 0) + goto fail; + + /* drop UID */ diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-lscpu_NULL_dereference_fix.patch b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-lscpu_NULL_dereference_fix.patch new file mode 100644 index 0000000000..50322e63a8 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.1-lscpu_NULL_dereference_fix.patch @@ -0,0 +1,50 @@ +From 0d7cef3ddbd2aacbea8c11e8524a3de68dfb8ff6 Mon Sep 17 00:00:00 2001 +From: Karel Zak +Date: Fri, 30 Jul 2021 14:35:25 +0200 +Subject: [PATCH] lscpu: fix NULL dereference + +Fixes: https://github.com/karelzak/util-linux/issues/1401 +Signed-off-by: Karel Zak +--- + sys-utils/lscpu-cputype.c | 2 +- + sys-utils/lscpu.c | 6 +++--- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/sys-utils/lscpu-cputype.c b/sys-utils/lscpu-cputype.c +index 795a4acf5..be16199e0 100644 +--- a/sys-utils/lscpu-cputype.c ++++ b/sys-utils/lscpu-cputype.c +@@ -569,7 +569,7 @@ int lscpu_read_cpuinfo(struct lscpu_cxt *cxt) + /* Set the default type to CPUs which are missing (or not parsed) + * in cpuinfo */ + ct = lscpu_cputype_get_default(cxt); +- for (i = 0; i < cxt->npossibles; i++) { ++ for (i = 0; ct && i < cxt->npossibles; i++) { + struct lscpu_cpu *cpu = cxt->cpus[i]; + + if (cpu && !cpu->type) +diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c +index 827e84a6d..e11b2f42f 100644 +--- a/sys-utils/lscpu.c ++++ b/sys-utils/lscpu.c +@@ -991,7 +991,7 @@ static void print_summary(struct lscpu_cxt *cxt) + *(p - 2) = '\0'; + add_summary_s(tb, sec, _("CPU op-mode(s):"), buf); + } +- if (ct->addrsz) ++ if (ct && ct->addrsz) + add_summary_s(tb, sec, _("Address sizes:"), ct->addrsz); + #if !defined(WORDS_BIGENDIAN) + add_summary_s(tb, sec, _("Byte Order:"), "Little Endian"); +@@ -1033,9 +1033,9 @@ static void print_summary(struct lscpu_cxt *cxt) + sec = NULL; + + /* Section: cpu type description */ +- if (ct->vendor) ++ if (ct && ct->vendor) + sec = add_summary_s(tb, NULL, _("Vendor ID:"), ct->vendor); +- if (ct->bios_vendor) ++ if (ct && ct->bios_vendor) + add_summary_s(tb, sec, _("BIOS Vendor ID:"), ct->bios_vendor); + + for (i = 0; i < cxt->ncputypes; i++) diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.2-ioctl_ns-test-hang.patch b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.2-ioctl_ns-test-hang.patch new file mode 100644 index 0000000000..73dc0b40a0 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/files/util-linux-2.37.2-ioctl_ns-test-hang.patch @@ -0,0 +1,37 @@ +https://github.com/karelzak/util-linux/commit/597ccb7bf564f65bb059bfe420224cab0fba46ac.patch + +From 597ccb7bf564f65bb059bfe420224cab0fba46ac Mon Sep 17 00:00:00 2001 +From: Chris Hofstaedtler +Date: Fri, 20 Aug 2021 10:30:50 +0000 +Subject: [PATCH] tests: Skip lsns/ioctl_ns test if unshare fails + +Some parts of the Debian build infrastructure uses unshare to run the +package build, and that appears to cause a "nested" unshare in the +lsns/ioctl_ns test to fail. Unfortunately the tests then hang at this +point. + +Try running unshare before the actual test, and skip the test if unshare +already fails. + +[kzak@redhat.com: - add --fork to the test + - don't write to stdout/err] + +Signed-off-by: Chris Hofstaedtler +Signed-off-by: Karel Zak +--- + tests/ts/lsns/ioctl_ns | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/ts/lsns/ioctl_ns b/tests/ts/lsns/ioctl_ns +index ef6360607..fa626bfda 100755 +--- a/tests/ts/lsns/ioctl_ns ++++ b/tests/ts/lsns/ioctl_ns +@@ -34,6 +34,8 @@ ts_check_prog "mkfifo" + ts_check_prog "touch" + ts_check_prog "uniq" + ++$TS_CMD_UNSHARE --user --pid --mount-proc --fork true &> /dev/null || ts_skip "no namespace support" ++ + ts_cd "$TS_OUTDIR" + + # The parent process receives namespaces ids via FIFO_DATA from bash diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/metadata.xml b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/metadata.xml index d41121d081..6d41d90fe5 100644 --- a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/metadata.xml @@ -1,16 +1,21 @@ - + base-system@gentoo.org Gentoo Base System + Use sys-process/audit to emit audit messages about system changes build setpriv helper (run programs with diff capabilities) build mkfs/fsck helpers for cramfs filesystems + Use sys-fs/cryptsetup to have built-in dm-verity in libmount build fdformat (floppy disk format) + build hardlink program build the kill program + build the logger program build runuser helper + build the su program install mount/umount as setuid so non-root users may mount/umount devices, and wall/write as setgid so non-root users can notify other users diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/util-linux-2.33-r1.ebuild b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/util-linux-2.36.2-r1.ebuild similarity index 80% rename from sdk_container/src/third_party/portage-stable/sys-apps/util-linux/util-linux-2.33-r1.ebuild rename to sdk_container/src/third_party/portage-stable/sys-apps/util-linux/util-linux-2.36.2-r1.ebuild index e410e35609..92191cf91e 100644 --- a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/util-linux-2.33-r1.ebuild +++ b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/util-linux-2.36.2-r1.ebuild @@ -1,12 +1,11 @@ -# Copyright 1999-2019 Gentoo Authors and others -# Copyright 2018 Sony Interactive Entertainment Inc. +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} ) +PYTHON_COMPAT=( python3_{7,8,9} ) -inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \ +inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 usr-ldscript \ pam python-r1 multilib-minimal multiprocessing systemd MY_PV="${PV/_/-}" @@ -17,57 +16,68 @@ if [[ ${PV} == 9999 ]] ; then EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git" else [[ "${PV}" = *_rc* ]] || \ - KEYWORDS="~alpha amd64 ~arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux" + KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" SRC_URI="https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz" fi DESCRIPTION="Various useful Linux utilities" HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ https://github.com/karelzak/util-linux" -LICENSE="GPL-2 LGPL-2.1 BSD-4 MIT public-domain" +LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain" SLOT="0" -IUSE="build caps +cramfs fdformat kill ncurses nls pam python +readline selinux slang static-libs +suid systemd test tty-helpers udev unicode userland_GNU" +IUSE="audit build caps +cramfs cryptsetup fdformat hardlink kill +logger magic ncurses nls pam python +readline selinux slang static-libs su +suid systemd test tty-helpers udev unicode userland_GNU" # Most lib deps here are related to programs rather than our libs, # so we rarely need to specify ${MULTILIB_USEDEP}. -RDEPEND="caps? ( sys-libs/libcap-ng ) +RDEPEND=" + virtual/libcrypt:= + audit? ( >=sys-process/audit-2.6:= ) + caps? ( sys-libs/libcap-ng ) cramfs? ( sys-libs/zlib:= ) - ncurses? ( >=sys-libs/ncurses-5.2-r2:0=[unicode?] ) + cryptsetup? ( >=sys-fs/cryptsetup-2.1.0 ) + hardlink? ( dev-libs/libpcre2:= ) + ncurses? ( + sys-libs/ncurses:=[unicode(+)?] + magic? ( sys-apps/file:0= ) + ) nls? ( virtual/libintl[${MULTILIB_USEDEP}] ) pam? ( sys-libs/pam ) + ppc? ( sys-libs/librtas ) + ppc64? ( sys-libs/librtas ) python? ( ${PYTHON_DEPS} ) readline? ( sys-libs/readline:0= ) selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) slang? ( sys-libs/slang ) !build? ( systemd? ( sys-apps/systemd ) ) udev? ( virtual/libudev:= )" -DEPEND="${RDEPEND} +BDEPEND=" virtual/pkgconfig nls? ( sys-devel/gettext ) test? ( sys-devel/bc ) - virtual/os-headers" +" +DEPEND=" + ${RDEPEND} + virtual/os-headers +" RDEPEND+=" + hardlink? ( !app-arch/hardlink ) + logger? ( !>=app-admin/sysklogd-2.0[logger] ) kill? ( !sys-apps/coreutils[kill] !sys-process/procps[kill] ) + su? ( + !=sys-apps/shadow-4.7-r2[su] + ) !net-wireless/rfkill - !sys-process/schedutils - !sys-apps/setarch - !=sys-process/audit-2.6:= ) + caps? ( sys-libs/libcap-ng ) cramfs? ( sys-libs/zlib:= ) - ncurses? ( >=sys-libs/ncurses-5.2-r2:0=[unicode?] ) + cryptsetup? ( >=sys-fs/cryptsetup-2.1.0 ) + hardlink? ( dev-libs/libpcre2:= ) + ncurses? ( + sys-libs/ncurses:=[unicode(+)?] + magic? ( sys-apps/file:0= ) + ) nls? ( virtual/libintl[${MULTILIB_USEDEP}] ) pam? ( sys-libs/pam ) + ppc? ( sys-libs/librtas ) + ppc64? ( sys-libs/librtas ) python? ( ${PYTHON_DEPS} ) readline? ( sys-libs/readline:0= ) selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) slang? ( sys-libs/slang ) !build? ( systemd? ( sys-apps/systemd ) ) udev? ( virtual/libudev:= )" -DEPEND="${RDEPEND} +BDEPEND=" virtual/pkgconfig nls? ( sys-devel/gettext ) test? ( sys-devel/bc ) - virtual/os-headers" +" +DEPEND=" + ${RDEPEND} + virtual/os-headers +" RDEPEND+=" + hardlink? ( !app-arch/hardlink ) + logger? ( !>=app-admin/sysklogd-2.0[logger] ) kill? ( !sys-apps/coreutils[kill] !sys-process/procps[kill] ) + su? ( + !=sys-apps/shadow-4.7-r2[su] + ) !net-wireless/rfkill - !sys-process/schedutils - !sys-apps/setarch - !/dev/null || die + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" + popd >/dev/null || die +} + multilib_src_configure() { lfs_fallocate_test # The scanf test in a run-time test which fails while cross-compiling. @@ -121,32 +159,45 @@ multilib_src_configure() { export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486 export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042 - local myeconfargs=( + # Undo bad ncurses handling by upstream. Fall back to pkg-config. #601530 + export NCURSES6_CONFIG=false NCURSES5_CONFIG=false + export NCURSESW6_CONFIG=false NCURSESW5_CONFIG=false + + # configure args shared by python and non-python builds + local commonargs=( --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin" + ) + + local myeconfargs=( + "${commonargs[@]}" --with-bashcompletiondir="$(get_bashcompdir)" + --without-python $(multilib_native_use_enable suid makeinstall-chown) $(multilib_native_use_enable suid makeinstall-setuid) - $(multilib_native_use_with python) $(multilib_native_use_with readline) $(multilib_native_use_with slang) $(multilib_native_use_with systemd) $(multilib_native_use_with udev) + $(multilib_native_usex ncurses "$(use_with magic libmagic)" '--without-libmagic') $(multilib_native_usex ncurses "$(use_with unicode ncursesw)" '--without-ncursesw') $(multilib_native_usex ncurses "$(use_with !unicode ncurses)" '--without-ncurses') + $(multilib_native_use_with audit) $(tc-has-tls || echo --disable-tls) $(use_enable nls) $(use_enable unicode widechar) $(use_enable static-libs static) + $(use_with ncurses tinfo) $(use_with selinux) - $(usex ncurses '' '--without-tinfo') ) # build programs only on GNU, on *BSD we want libraries only - if multilib_is_native_abi && use userland_GNU; then + if multilib_is_native_abi && use userland_GNU ; then myeconfargs+=( --disable-chfn-chsh --disable-login + --disable-newgrp --disable-nologin - --disable-su + --disable-pylibmount + --disable-vipw --enable-agetty --enable-bash-completion --enable-line @@ -159,14 +210,26 @@ multilib_src_configure() { $(use_enable caps setpriv) $(use_enable cramfs) $(use_enable fdformat) + $(use_enable hardlink) + $(use_enable kill) + $(use_enable logger) + $(use_enable ncurses pg) + $(use_enable su) $(use_enable tty-helpers mesg) $(use_enable tty-helpers wall) $(use_enable tty-helpers write) - $(use_enable kill) + $(use_with cryptsetup) ) + if [[ ${PV} == *9999 ]] ; then + myeconfargs+=( --enable-asciidoc ) + else + # Upstream is shipping pre-generated man-pages for releases + myeconfargs+=( --disable-asciidoc ) + fi else myeconfargs+=( --disable-all-programs + --disable-asciidoc --disable-bash-completion --without-systemdsystemunitdir # build libraries @@ -175,7 +238,7 @@ multilib_src_configure() { --enable-libsmartcols --enable-libfdisk ) - if use userland_GNU; then + if use userland_GNU ; then # those libraries don't work on *BSD myeconfargs+=( --enable-libmount @@ -183,20 +246,57 @@ multilib_src_configure() { fi fi ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" + + if multilib_is_native_abi && use python ; then + python_foreach_impl python_configure + fi +} + +python_compile() { + pushd "${BUILD_DIR}" >/dev/null || die + emake all + popd >/dev/null || die +} + +multilib_src_compile() { + emake all + + if multilib_is_native_abi && use python ; then + python_foreach_impl python_compile + fi +} + +python_test() { + pushd "${BUILD_DIR}" >/dev/null || die + emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot" + popd >/dev/null || die } multilib_src_test() { emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot" + if multilib_is_native_abi && use python ; then + python_foreach_impl python_test + fi +} + +python_install() { + pushd "${BUILD_DIR}" >/dev/null || die + emake DESTDIR="${D}" install + python_optimize + popd >/dev/null || die } multilib_src_install() { + if multilib_is_native_abi && use python ; then + python_foreach_impl python_install + fi + + # This needs to be called AFTER python_install call (#689190) emake DESTDIR="${D}" install - if multilib_is_native_abi && use userland_GNU; then + if multilib_is_native_abi && use userland_GNU ; then # need the libs in / gen_usr_ldscript -a blkid fdisk mount smartcols uuid - - use python && python_optimize fi } @@ -206,13 +306,13 @@ multilib_src_install_all() { # e2fsprogs-libs didnt install .la files, and .pc work fine find "${ED}" -name "*.la" -delete || die - if ! use userland_GNU; then + if ! use userland_GNU ; then # manpage collisions # TODO: figure out a good way to keep them - rm "${ED%/}"/usr/share/man/man3/uuid* || die + rm "${ED}"/usr/share/man/man3/uuid* || die fi - if use pam; then + if use pam ; then newpamd "${FILESDIR}/runuser.pamd" runuser newpamd "${FILESDIR}/runuser-l.pamd" runuser-l fi @@ -227,11 +327,11 @@ multilib_src_install_all() { } pkg_postinst() { - if ! use tty-helpers; then + if ! use tty-helpers ; then elog "The mesg/wall/write tools have been disabled due to USE=-tty-helpers." fi - if [[ -z ${REPLACING_VERSIONS} ]]; then + if [[ -z ${REPLACING_VERSIONS} ]] ; then elog "The agetty util now clears the terminal by default. You" elog "might want to add --noclear to your /etc/inittab lines." fi diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/util-linux-2.33.1.ebuild b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/util-linux-2.37.2-r1.ebuild similarity index 70% rename from sdk_container/src/third_party/portage-stable/sys-apps/util-linux/util-linux-2.33.1.ebuild rename to sdk_container/src/third_party/portage-stable/sys-apps/util-linux/util-linux-2.37.2-r1.ebuild index 466d42ee56..8d063d705b 100644 --- a/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/util-linux-2.33.1.ebuild +++ b/sdk_container/src/third_party/portage-stable/sys-apps/util-linux/util-linux-2.37.2-r1.ebuild @@ -1,12 +1,11 @@ -# Copyright 1999-2019 Gentoo Authors and others -# Copyright 2018 Sony Interactive Entertainment Inc. +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} ) +PYTHON_COMPAT=( python3_{8,9} ) -inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \ +inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 usr-ldscript \ pam python-r1 multilib-minimal multiprocessing systemd MY_PV="${PV/_/-}" @@ -17,52 +16,81 @@ if [[ ${PV} == 9999 ]] ; then EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git" else [[ "${PV}" = *_rc* ]] || \ - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" + KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" SRC_URI="https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz" fi DESCRIPTION="Various useful Linux utilities" HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ https://github.com/karelzak/util-linux" -LICENSE="GPL-2 LGPL-2.1 BSD-4 MIT public-domain" +LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain" SLOT="0" -IUSE="build caps +cramfs fdformat kill ncurses nls pam python +readline selinux slang static-libs +suid systemd test tty-helpers udev unicode userland_GNU" +IUSE="audit build caps +cramfs cryptsetup fdformat +hardlink kill +logger magic ncurses nls pam python +readline selinux slang static-libs su +suid systemd test tty-helpers udev unicode userland_GNU" # Most lib deps here are related to programs rather than our libs, # so we rarely need to specify ${MULTILIB_USEDEP}. -RDEPEND="caps? ( sys-libs/libcap-ng ) +RDEPEND=" + virtual/libcrypt:= + audit? ( >=sys-process/audit-2.6:= ) + caps? ( sys-libs/libcap-ng ) cramfs? ( sys-libs/zlib:= ) - ncurses? ( >=sys-libs/ncurses-5.2-r2:0=[unicode?] ) + cryptsetup? ( >=sys-fs/cryptsetup-2.1.0 ) + hardlink? ( dev-libs/libpcre2:= ) + ncurses? ( + sys-libs/ncurses:=[unicode(+)?] + magic? ( sys-apps/file:0= ) + ) nls? ( virtual/libintl[${MULTILIB_USEDEP}] ) pam? ( sys-libs/pam ) + ppc? ( sys-libs/librtas ) + ppc64? ( sys-libs/librtas ) python? ( ${PYTHON_DEPS} ) readline? ( sys-libs/readline:0= ) selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) slang? ( sys-libs/slang ) !build? ( systemd? ( sys-apps/systemd ) ) udev? ( virtual/libudev:= )" -DEPEND="${RDEPEND} +BDEPEND=" virtual/pkgconfig nls? ( sys-devel/gettext ) test? ( sys-devel/bc ) - virtual/os-headers" +" +DEPEND=" + ${RDEPEND} + virtual/os-headers +" RDEPEND+=" + hardlink? ( !app-arch/hardlink ) + logger? ( !>=app-admin/sysklogd-2.0[logger] ) kill? ( !sys-apps/coreutils[kill] !sys-process/procps[kill] ) + su? ( + !=sys-apps/shadow-4.7-r2[su] + ) !net-wireless/rfkill - !sys-process/schedutils - !sys-apps/setarch - !=sys-process/audit-2.6:= ) + caps? ( sys-libs/libcap-ng ) cramfs? ( sys-libs/zlib:= ) - ncurses? ( >=sys-libs/ncurses-5.2-r2:0=[unicode?] ) + cryptsetup? ( >=sys-fs/cryptsetup-2.1.0 ) + hardlink? ( dev-libs/libpcre2:= ) + ncurses? ( + sys-libs/ncurses:=[unicode(+)?] + magic? ( sys-apps/file:0= ) + ) nls? ( virtual/libintl[${MULTILIB_USEDEP}] ) pam? ( sys-libs/pam ) + ppc? ( sys-libs/librtas ) + ppc64? ( sys-libs/librtas ) python? ( ${PYTHON_DEPS} ) readline? ( sys-libs/readline:0= ) selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) slang? ( sys-libs/slang ) !build? ( systemd? ( sys-apps/systemd ) ) udev? ( virtual/libudev:= )" -DEPEND="${RDEPEND} +BDEPEND=" virtual/pkgconfig nls? ( sys-devel/gettext ) test? ( sys-devel/bc ) - virtual/os-headers" +" +DEPEND=" + ${RDEPEND} + virtual/os-headers +" RDEPEND+=" + hardlink? ( !app-arch/hardlink ) + logger? ( !>=app-admin/sysklogd-2.0[logger] ) kill? ( !sys-apps/coreutils[kill] !sys-process/procps[kill] ) + su? ( + !=sys-apps/shadow-4.7-r2[su] + ) !net-wireless/rfkill - !sys-process/schedutils - !sys-apps/setarch - !