Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 17403

Summary: etc-update should not automerge for non-existent files
Product: Portage Development Reporter: Rajiv Aaron Manglani (RETIRED) <rajiv>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED WORKSFORME    
Severity: minor CC: flash3001, stian, tools-portage
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 11763, 93874    
Bug Blocks:    

Description Rajiv Aaron Manglani (RETIRED) gentoo-dev 2003-03-12 16:20:27 UTC
i removed /etc/csh.cshrc and /etc/csh.login. aparently there were some ._cfg...
files still hanging around. i ran etc-update and saw this:

fireball root # etc-update 
Scanning Configuration files...
diff: /etc/csh.cshrc: No such file or directory
Automerging trivial changes in: csh.cshrc
diff: /etc/csh.login: No such file or directory
Automerging trivial changes in: csh.login

and of course the files re-appeared.

etc-update should not automerge files which have been removed.
Comment 1 Frédéric Point 2004-09-18 05:33:21 UTC
I think this is a bug in diff (or even in bash)

Diff put extra char on prompt

diff -Bbua /etc/sound/events/gnobots2.soundlist /etc/sound/events/._cfg0000_gnobots2.soundlist

The end of the output is weird :
----------------------
+description[uk]=
Comment 2 Frédéric Point 2004-09-18 05:33:21 UTC
I think this is a bug in diff (or even in bash)

Diff put extra char on prompt

diff -Bbua /etc/sound/events/gnobots2.soundlist /etc/sound/events/._cfg0000_gnobots2.soundlist

The end of the output is weird :
----------------------
+description[uk]=Ð ÑÐ²ÐµÐ½Ñ Ð·Ð°Ð²ÐµÑÑено
 description[vi]=Mức hoà n thà nh
 description[zh_CN]=æ¬å±å®æ
 description[zh_TW]=éé
itchy-scratchy root # 1;2c
----------------------

My diffutils vervion is sys-apps/diffutils-2.8.4-r4
Comment 3 Stian Skjelstad 2005-06-27 06:22:00 UTC
Would it not be more correct to

rm /etc/csh.cshrc && touch /etc/csh.cshrc
rm /etc/csh.login && touch /etc/csh.login

This way, the files aren't missing, and thereby don't get automerged
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2006-07-19 03:39:42 UTC
Can't reproduce this.