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

Bug 614192

Summary: [FR] Define a shell variable with build.log path when emerge failed
Product: Portage Development Reporter: Ural <uralzima>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ural 2017-03-29 09:11:11 UTC
Hello. When emerge fails, it is hard to type 'less /var/tmp/portage/cat/packages/temp/build.log', when you don't use X. 
When emerge fails to single package, please define a shell env variable blog=/path/to/log, so after emerge I can type 'less $blog' and read logs. Thanks

Reproducible: Always
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-03-29 09:27:36 UTC
It is not possible to set environment variables in spawning shell from a subprocess. You can use tab-completion to get the path typed easier though.