On 11/4/19 10:50 AM, Joakim Tjernlund wrote:
> On Mon, 2019-11-04 at 18:35 +0000, Joakim Tjernlund wrote:
>>
>> I have a profile.bashrc in my profile where I try to set INSTALL_MASK:
>>
>> cat profile.bashrc
>> INSTALL_MASK="${INSTALL_MASK} $(. $(dirname "$*")/etc_file_list)"
>> export INSTALL_MASK
>> echo "profile INSTALL_MASK: ${INSTALL_MASK}"
>>
>> PKG_INSTALL_MASK="${PKG_INSTALL_MASK} ${INSTALL_MASK}"
>> export PKG_INSTALL_MASK
>> echo "profile PKG_INSTALL_MASK: ${PKG_INSTALL_MASK}"
>>
>> Using portageq envvar INSTALL_MASK I expect to see my settings but
>> INSTALL_MASK is empty.
>>
>> Am I missing something ?
>>
>>    Jocke
> 
> in profile make.defaults I have
>   CONFIG_PROTECT=""
> yet I see:
> portageq envvar CONFIG_PROTECT
> /etc
> 
> Is portageq envvar somewhat broken?
> 

Well, it's complicated because CONFIG_PROTECT is an "incremental"
variable. You can try to clear it out completely by setting
CONFIG_PROTECT="-*" in profile make.defaults, but that only works if the
CONFIG_PROTECT="/etc" setting came from earlier in the inheritance
hierarchy. You can use this command to see the inheritance order:

python -c 'import portage; print("\n".join(portage.settings.profiles))'
-- 
Thanks,
Zac

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to