Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 548158

Summary: sys-apps/gentoo-functions: eerror logs to stdout by default
Product: Gentoo Linux Reporter: mike <mike>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: blueness, floppym, nikoli, toolchain, whissi, williamh
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 504118, 547962    

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.