Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446450 - [Future EAPI] Support for multiple log (output) streams
Summary: [Future EAPI] Support for multiple log (output) streams
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: PMS/EAPI
Depends on:
Blocks: future-eapi
  Show dependency tree
Reported: 2012-12-08 11:39 UTC by Michał Górny
Modified: 2014-09-06 22:20 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-08 11:39:49 UTC
The distutils-r1 eclass recently started running phases for multiple implementations in parallel. This results in hard-to-debug, mixed output. Therefore, it started writing split output to additional log files in ${T}.

Now, PMS doesn't provide any good way to point the user to those logfiles in case of failure. And the output is still quite ugly, with user being forced to tail the log files to e.g. get a better py.test output.

Therefore, my idea is to provide a common mechanism for establishing multiple log streams from ebuild.

For example, we provide a function like:

  log_open <var> <filename> [<title>]


a) establishes a new log stream which will be written to ${T}/${filename} and output to the user at the same time,

b) makes PM aware of it (under the title ${title} if provided),

c) stores the new (next free) fd in var.

In the simplest implementation, it would perform a task similar to 'tee', and provide the list of open logs in the die message. In a more complex one, it could also use curses to display the logs on split-screen.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-09-06 22:20:14 UTC
Not worth the effort.