Perhaps you should give a big *************************** *** WARNING *************** *************************** in every automatically generated file that the changes will be overwritten without notice and where to put the entries correctly? Just an idea, Patrick
i cant say i understand what you mean could you be more specific and/or provide some examples ?
in the /etc tree this does not happen by policy. Instead we stick a ._cfg????nameoffile in there... please provide a more specific example...
Not having a gentoo or linux system handy at the moment I can't provide an exact example, but the one that comes to mind is /etc/modules.conf, it is generated from modules.autoload and a few other files. I think /etc/profile is also generated from /etc/env.d/* Making changes directly in /etc/profile instead of creating an appropriate entry in /etc/env.d has bitten me a couple of times.
umm /etc/profile is not auto generated by any ebuild's or commands (that i know of) ... i've customized all of my /etc/profile's and never lost them ... /etc/profile comes from stage1 as far as i know ... env.d is just used to customize the environment
ok, so what is the story with this bug, anyway?
i think this just comes from a lack of good docs on how the environment and /etc/ are setup ... maybe put the docs team on this and once they have something we close it ?
http://www.gentoo.org/~zhen/env.d-howto.html soon to be part of the official documentation. the docs-team was way ahead of us :)