Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18778 - Ability to hit "Replace from now on" in etc-update
Summary: Ability to hit "Replace from now on" in etc-update
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on: 14321
Blocks:
  Show dependency tree
 
Reported: 2003-04-04 21:01 UTC by Jason Keirstead
Modified: 2011-10-30 22:38 UTC (History)
1 user (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 Jason Keirstead 2003-04-04 21:01:58 UTC
When you do an etc-update, you have the following options for each file: 
1) Replace original with update 
2) Delete update, keeping original as is 
3) Interactively merge original with update 
4) Show differences again 
 
I would like to have an option #5: 
5) Replace original with update from now on 
 
There are many files in /etc that I just do not care about, because I never edit them, and would like 
portage to always replace. For example, every file in /usr/X11R6/lib/X11/xkb. When you emerge 
XFree, you get some 30+ updates in this directory, and you need to go through each one and do 
the replace option... very annoying. 
 
Having a "Replace from now on" would at least allow Gentoo to remember that I do not care about 
this file (because I never modify it or otherwise) and to always replace it. 
 
Another possibility would be to be able to mark certain *directories* as "not important" in /etc and 
to always replace the files in them. 
 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2003-04-04 21:39:37 UTC
Isn't that what CONFIG_PROTECT_MASK in /etc/make.conf is for?

CONFIG_PROTECT_MASK="/usr/X11R6/lib/X11/xkb /etc/X11/serverconfig /etc/X11/starthere /etc/ssmtp /etc/sound/events /etc/X11/rstart /etc/X11/xdm /etc/pango"

Works really well for me.  I'll probably be adding more to that as time goes by.
Comment 2 Jason Keirstead 2003-04-04 21:54:12 UTC
Hrm, I was not aware of this config. 
 
Nevertheless, I still wish this menu option was right *in* etc-update, because I'll be damned  
if I am going to go theough almost every file in /etc and manually add it in. I mean, the files I 
*do not* want masked are probably 0.5% of the config in /etc. 
 
Maybe this option could just append the file to that variable. 
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-05-09 17:45:32 UTC
1) /etc/man.conf
/etc/._cfg0000_man.conf
2) /etc/phpmyadmin/config.inc.php
/etc/phpmyadmin/._cfg0000_config.inc.php
Please select a file to edit by entering the corresponding number.
              (-1 to exit) (-3 to auto merge all remaining files)
                           (-5 to auto-merge AND not use 'mv -i'):


use -3 or -5
Comment 4 Jason Keirstead 2003-05-09 17:56:26 UTC
I really dont know why you resolved this, it is not resolved. Those two options do not do what 
I asked for. They replace all files in the session. This decision is not remembered for future 
etc-updates. 
 
I want the ability to select the file and then say "always merge this file" and also have a -7 or 
simmilar "always merge all these files". As said above these options could simply append the 
files chosen to CONFIG_PROTECT_MASK. 
 
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2004-08-03 12:25:21 UTC
current etc-update won't get that functionality, maybe a rewrite will.
Comment 6 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-09-16 16:27:23 UTC
Zac has written support for CONFIG_PROTECT_MASK to take files; so you could do this that way.
Comment 7 Zac Medico gentoo-dev 2006-09-16 17:59:35 UTC
Yeah, you need >=portage-2.1.2_pre1 for that (bug 14321).
Comment 8 Simon Stelling (RETIRED) gentoo-dev 2006-09-20 17:36:46 UTC
i'd say this is closed with bug 14321