Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88485 - "Post the topmost build error" => "mail the file /tmp/portage.bug"
Summary: "Post the topmost build error" => "mail the file /tmp/portage.bug"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 147007
  Show dependency tree
 
Reported: 2005-04-09 09:42 UTC by Full Decent
Modified: 2007-01-13 06:41 UTC (History)
0 users

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 Full Decent 2005-04-09 09:42:30 UTC
When builds fail, I get the mesage:
Please post the topmost build error

However, I'm running it on VT1 and I can't scroll up.

It would be very nice if the error was saved to a file and then a message came up: 

There was an error building the package: dev-java/package/... would you like to submit this error to Gentoo developers <YES|no>?

Reproducible: Always
Steps to Reproduce:
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-04-11 07:04:12 UTC
It's not possible to know via code where it is that an ebuild fails. It is possible to log all of each build's output though. Have a look at PORT_LOGDIR in make.conf(5).
Comment 2 Full Decent 2005-04-11 11:23:51 UTC
Maybe it would be more prectical to have an extra emerge option:

emerge --bug-report dev-libs/perl...

In normal use, if an emerge fails, it would tell you specifically to run the command above. Then running this command creates a bug reopts with all output saved to a file. It then offers to save the bug report to a file or to mail it directly.

This avoids the slowdown and bloat of saving all output to a file while also allowing for useful and automated bug reports.

What do you think?
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-07-28 07:25:17 UTC
Putting a hold on feature requests for portage as they are drowning out the 
bugs. Most of these features should be available in the next major version of 
portage. But for the time being, they are just drowning out the major bugs and 
delaying the next version's progress. 
 
Any bugs that contain patches and any bugs for etc-update or dispatch-conf can 
be reopened. Sorry, I'm just not good enough with bugzilla. ;) 
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 14:50:11 UTC
Reopening for consideration
Comment 5 Zac Medico gentoo-dev 2007-01-12 05:47:25 UTC
For bug #111436 we now log every build to PORT_LOGDIR or ${T}/build.log if PORT_LOGDIR is unset.  In any case, the path of the build log is now always available via $PORTAGE_LOG_FILE.  We can easily modify diefunc to print that path for the user's convenience.
Comment 6 Zac Medico gentoo-dev 2007-01-12 05:54:18 UTC
In svn r5590 I've added the path of the build log to the die message.
Comment 7 Zac Medico gentoo-dev 2007-01-13 06:41:05 UTC
This has been released in 2.1.2_rc4-r9.