On 9/10/2012 10:39 PM, Duncan wrote:
Gregory M. Turner posted on Mon, 10 Sep 2012 20:29:53 -0700 as excerpted:

However, IIRC, /etc/make.conf is just ignored by portage if
/etc/portage/make.conf is present, so symlinking, or even better, if
possible, hardlinking those files would probably "do the right thing"
for legacy tools that don't know about the new location... unless I'm
mistaken, which is always plausible :)

Thanks.  Reasonable approach and good to know.

Well, I did warn about the likelihood I was wrong :) Pretty clever 'cause that way even when I'm wrong (as turns out to have been the case), I'm still right :P

In all seriousness, if both of them are sourced, then could one get away with something like this?

/etc/make.conf:
source /etc/portage/make.conf

/etc/portage/make.conf:
if [[ __GENTOO_MAKE_CONF_ONCE == gotit ]] ; then
__GENTOO_MAKE_CONF_ONCE=gotit
.
.
.
endif

or are conditionals disallowed? As Zac mentions, hopefully it's harmless to duplicate things, but, personally, I would worry about the effect of duplicates on performance, and also in PORTDIR_OVERLAY. Plus, it just seems dirty.

-gmt


Reply via email to