FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Development

 
 
LinkBack Thread Tools
 
Old 11-21-2008, 07:50 PM
Martin Pitt
 
Default conffile renames

Hello Scott,

Scott Ritchie [2008-11-21 20:15 -0000]:
> wine (1.0.1-0ubuntu4) jaunty; urgency=low
>
> * debian/rules:
> - rename /etc/sysctl.d/wine.conf to 30-wine.conf (LP: #300701)

This is incomplete [1]. If you rename a conffile, you also need to add
preinst/postinst code to do the rename on upgrades, otherwise you will
end up with *both* wine.conf (orphaned conffile) and 30-wine.conf (the
new one). Worse, if the admin previously changed wine.conf, you now
have contradictory configurations and one (probably wine.conf) will
shadow the other.

In general, renaming conffiles should be avoided, since it is
nontrivial to get right. If it is necessary, please see [2] for
recipes and details.

Thanks, and have a good weekend!

Martin

[1] http://launchpadlibrarian.net/19842323/wine_1.0.1-0ubuntu3_1.0.1-0ubuntu4.diff.gz
[2] http://wiki.debian.org/DpkgConffileHandling

--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
 

Thread Tools




All times are GMT. The time now is 10:36 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org