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

Bug 101695

Summary: etc-update breaks svn and cvs tracking of /etc with mv command
Product: Portage Development Reporter: Wesley Leggette <wleggette>
Component: ToolsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 136244    
Attachments: touches the resulting configuration file

Description Wesley Leggette 2005-08-07 19:46:01 UTC
I am currently using subversion to track changes in /etc. etc-update can
sometimes break this when replacing old configuration files with new ones
because moving untracked files to replace tracked files will result in
subversion not realizing a change has occured in the destination file (cp
apparently does not have this problem).

I reported this problem to the subversion mailing list and was told this occurs
because the timestamp is not updated when using mv. I was told that touching the
file after moving it can solve this problem.

I haven't been able to reproduce the problem, which apparently only occurs if
the mtime is wacked out on the temporary configuration file. So the question is,
should etc-update touch the configuration file after replacing it?

Reproducible: Couldn't Reproduce
Steps to Reproduce:
1.
2.
3.
Comment 1 Wesley Leggette 2005-08-07 19:52:48 UTC
Created attachment 65379 [details, diff]
touches the resulting configuration file

This touches the replaced configuration file to update the mtime. I caught the
mv after replacing with the new config and replacing with the merged config. I
don't know if there are any others.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2006-07-19 03:36:37 UTC
in r3932
Comment 3 Zac Medico gentoo-dev 2006-07-20 14:04:07 UTC
This has been released in 2.1.1_pre3-r2.