Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7997 - Give warning hint in automatically generated files?
Summary: Give warning hint in automatically generated files?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-16 11:51 UTC by Patrick Kursawe (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Kursawe (RETIRED) gentoo-dev 2002-09-16 11:51:56 UTC
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
Comment 1 SpanKY gentoo-dev 2002-09-16 12:06:14 UTC
i cant say i understand what you mean

could you be more specific and/or provide some examples ?
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-09-16 19:21:09 UTC
in the /etc tree this does not happen by policy.  Instead we stick a
._cfg????nameoffile in there...

please provide a more specific example...
Comment 3 Troy Dack 2002-09-17 18:27:05 UTC
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.
Comment 4 SpanKY gentoo-dev 2002-09-18 14:09:37 UTC
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
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-03 12:33:25 UTC
ok, so what is the story with this bug, anyway?
Comment 6 SpanKY gentoo-dev 2002-10-03 15:45:08 UTC
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 ? 
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-03 15:51:58 UTC
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 :)