Summary: | [Future EAPI] Disallow output of einfo and friends to stdout | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Michał Górny <mgorny> |
Component: | PMS/EAPI | Assignee: | PMS/EAPI <pms> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | esigra, pacho |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | in-eapi-7 | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 174380 |
Description
Michał Górny
2013-09-01 06:47:49 UTC
einfo does not show warnings. if you're capturing the output of portage commands, then those calling einfo and mixing their output generally means they're already incorrectly written. making einfo write to stderr doesn't really fix that ... This is meant to make it possible to output QA warnings and die properly inside $() blocks. I don't see your comment adding anything to the topic. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=2b62104633008cc30df24808029430516a6d9a7b commit 2b62104633008cc30df24808029430516a6d9a7b Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2017-09-21 14:24:23 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2018-03-04 21:03:52 +0000 isolated-functions.sh: Ensure informational command output to stderr Ensure that einfo, elog, ewarn... commands direct all output to stderr consistently. This ensures that various logging messages won't pollute stdout, and therefore be accidentally caught in $(). This satisfies the 'output commands do not pollute' stdout requirement that is tentatively included in EAPI 7. Bug: https://bugs.gentoo.org/483240 bin/isolated-functions.sh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)} The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/pms.git/commit/?id=55afad74bfa1592fd8cc1be38fc542777507129e commit 55afad74bfa1592fd8cc1be38fc542777507129e Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2017-09-28 14:10:20 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2018-03-31 15:30:43 +0000 EAPI 7 disallows stdout output of output functions Bug: https://bugs.gentoo.org/483240 eapi-differences.tex | 4 ++++ pkg-mgr-commands.tex | 22 ++++++++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-)} |