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.
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.
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.
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
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.
current etc-update won't get that functionality, maybe a rewrite will.
Zac has written support for CONFIG_PROTECT_MASK to take files; so you could do this that way.
Yeah, you need >=portage-2.1.2_pre1 for that (bug 14321).
i'd say this is closed with bug 14321