Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462528 - [PATCH] fix a crash with no portage and --verbose
Summary: [PATCH] fix a crash with no portage and --verbose
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 462382
  Show dependency tree
 
Reported: 2013-03-20 19:14 UTC by Brandon Philips
Modified: 2013-03-22 21:31 UTC (History)
0 users

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


Attachments
0001-resolver-output-check-for-None-mainRepo. (0001-resolver-output-check-for-None-mainRepo.patch,1.61 KB, text/plain)
2013-03-20 19:14 UTC, Brandon Philips
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Philips 2013-03-20 19:14:10 UTC
Created attachment 342776 [details]
0001-resolver-output-check-for-None-mainRepo.

Found a bug when --verbose is used on emerge --binpkgonly without a full portage tree on the machine I get a backtrace about calling name on a NoneType. So, we need to check that mainRepo() is not returning None (as it can).

Note: I am building a new OS based on the ChromeOS SDK so this use case isn't common, but a real bug.
Comment 2 Zac Medico gentoo-dev 2013-03-20 20:34:59 UTC
I've tweaked the logic so --verbose-main-repo-display still works when the main repo is missing:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=77df7ad2311f8d30533b89d4560651f3eac72cef
Comment 3 Brandon Philips 2013-03-20 21:38:01 UTC
Thanks for the fast merge! This problem was found in 2.1.11.31 if you want to backport it too. I am applying the patch in my own overlay.
Comment 4 Zac Medico gentoo-dev 2013-03-20 21:44:44 UTC
This will be included in the next release, which will be 2.1.11.58.

The latest version with stable keywords is currently 2.1.11.55. I would encourage people to use at least that version in their overlay, if possible.
Comment 5 Brandon Philips 2013-03-20 21:52:45 UTC
(In reply to comment #4)
> This will be included in the next release, which will be 2.1.11.58.
> 
> The latest version with stable keywords is currently 2.1.11.55. I would
> encourage people to use at least that version in their overlay, if possible.

Will do. Thanks.
Comment 6 Zac Medico gentoo-dev 2013-03-22 02:45:26 UTC
This is fixed in 2.1.11.58 and 2.2.0_alpha169.
Comment 7 Brandon Philips 2013-03-22 21:31:58 UTC
Confirmed 2.1.11.58 works in my environment. Thanks!