Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548158 - sys-apps/gentoo-functions: eerror logs to stdout by default
Summary: sys-apps/gentoo-functions: eerror logs to stdout by default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 504118 547962
  Show dependency tree
 
Reported: 2015-04-29 17:00 UTC by mike@marineau.org
Modified: 2015-05-12 14:44 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mike@marineau.org 2015-04-29 17:00:07 UTC
Currently eerror and ewarn log to stdout by default which differs from OpenRC where they log to stderr. If EINFO_QUIET=yes then eerror will log to stderr but ewarn continues to log to stdout:

https://github.com/gentoo/gentoo-functions/blob/6ad1c025f04d5d4116022409a05eba898f1a9cc1/functions.sh#L190

This behavior appears to be inherited from the original baselayout-1 implementation:

https://sources.gentoo.org/cgi-bin/viewvc.cgi/baselayout/branches/baselayout-1_13/sbin/functions.sh?revision=2546&view=markup#l317

Now some things, namely toolchains.eclass currently assume the OpenRC behavior and expect valid output on stdout and errors on stderr, bug 547962. For now the gcc-config version using gentoo-functions has been masked. See also bug 504118.
Comment 1 Mike Gilbert gentoo-dev 2015-05-02 16:22:27 UTC
Here's a fix. Please test.

https://github.com/gentoo/gentoo-functions/pull/4
Comment 2 mike@marineau.org 2015-05-02 20:13:19 UTC
(In reply to Mike Gilbert from comment #1)
> Here's a fix. Please test.
> 
> https://github.com/gentoo/gentoo-functions/pull/4

Works for me, tested the gcc-config + toolchain.eclass issue from bug 547962.
Comment 3 William Hubbs gentoo-dev 2015-05-12 14:44:10 UTC
This is now in git and will be included in 0.10.