Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9040 - Files in /etc don't get overwritten even with CONFIG_PROTECT set
Summary: Files in /etc don't get overwritten even with CONFIG_PROTECT set
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-12 09:37 UTC by Christian Birchinger (RETIRED)
Modified: 2011-10-30 22:17 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 Christian Birchinger (RETIRED) gentoo-dev 2002-10-12 09:37:42 UTC
(bash-completion portage is installed on the system)

~$ echo "# lame addon" >>/etc/bash_completion
~$ grep "# lame addon" /etc/bash_completion
# lame addon
~$ export CONFIG_PROTECT=""
~$ emerge bash-completion

<... lots of emerge output ...>

~$ grep "# lame addon" /etc/bash_completion
# lame addon
~$

So even with CONFIG_PROTECT="" it does *not* overwrite the file in /etc
The only thing i've seen is an "o" flag on the install part:
<...>
--- /etc/
-o- /etc/bash_completion
--- /etc/bash_completion.d/
<...>

It does not matter if the env variable or a line in make.conf is used to
define CONFIG_PROTECT="". In either way the file bash_completion in /etc
does not get overwritten. With a disabled protection it should overwrite
everything i think.
The option CONFIG_PROTECT="" seems not complettly ignored, because the
"._cfg"-files are not being created (that's the correct thing).
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2002-10-13 08:43:03 UTC
CONFIG_PROTECT="-*" ---  does what you want.

CONFIG_PROTECT is an incremental variable, and isn't cleared by
CONFIG_PROTECT="" --- That only affects entries attained from
/etc/env.d

Working on fixing the docs to be more explicit about this one.