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

Bug 553568

Summary: sys-apps/portage: Enhance portageq to return default values of make.conf variables if unset
Product: Portage Development Reporter: Paul Varner (RETIRED) <fuzzyray>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Paul Varner (RETIRED) gentoo-dev 2015-06-29 15:53:14 UTC
From IRC:

<fuzzyray> Question, should portageq return default values for variables that are not set in make.conf but are supported by portage? I'm asking because I have a pull request to use EMERGE_LOG_DIR in genlop, but portageq returns nothing if it is not set.
<fuzzyray> I can easily add the fallback to the default location of /var/log, but wondering if portageq should already do that
<dwfreed> I think it might make sense
<fuzzyray> I'm thinking that it should, so that if we do change a default, then the tools don't have to be changed as well (assuming that they are using portageq)
<zmedico> fuzzyray: yeah, having portageq return the default sounds reasonble. we can just set that var in make.globals