proj/portage:master commit in: lib/_emerge/
"Sam James" <[email protected]> Mon, 03 Aug 2026 18:21:57 +0000 (UTC)
| Newsgroups | gmane.linux.gentoo.cvs |
|---|---|
| Message-ID | <1785781303.715d7c25bd6bb92b96137f38fc323d5bd51035d8.sam@gentoo> |
commit: 715d7c25bd6bb92b96137f38fc323d5bd51035d8
Author: Vincent de Phily <vdephily <AT> redhat <DOT> com>
AuthorDate: Sun Apr 19 09:45:30 2026 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 3 18:21:43 2026 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=715d7c25
_emerge/actions.py: Print coreutils version in --info
Using /usr/bin/install as a proxy for coreutils as a whole.
Signed-off-by: Vincent de Phily <moltonel <AT> gmail.com>
Part-of: https://github.com/gentoo/portage/pull/1575
Signed-off-by: Sam James <sam <AT> gentoo.org>
lib/_emerge/actions.py | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/lib/_emerge/actions.py b/lib/_emerge/actions.py
index 51dac7649..eaac12b1e 100644
--- a/lib/_emerge/actions.py
+++ b/lib/_emerge/actions.py
@@ -2031,6 +2031,25 @@ def action_info(settings, trees, myopts, myfiles):
append(f"sh {sh_str}")
+ try:
+ proc = subprocess.Popen(
+ ["install", "--version"],
+ stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT,
+ encoding="utf-8",
+ errors="replace",
+ )
+ except OSError:
+ pass
+ else:
+ output = proc.communicate()[0].splitlines()
+ if proc.wait() == os.EX_OK and output:
+ pos = output[0].find("install ")
+ if pos == -1:
+ append(f"coreutils: {output[0]}")
+ else:
+ append(f"coreutils: {output[0][pos+8:]}")
+
ld_names = []
if chost:
ld_names.append(chost + "-ld")