[pkg-fso-maint] Correct way to move /etc config files
luca at pca.it
Sun Oct 26 15:38:07 UTC 2008
First of all, thank to both Steve and James for the help.
Then, as this was cross-posted to the pkg-fso-maint mailing list, I'll
be more detailed than necessary, please skip what you don't care about.
On Fri, 24 Oct 2008 22:31:45 +0200, Steve Langasek wrote:
> On Tue, Oct 21, 2008 at 11:13:18PM -0400, James Vega wrote:
>> On Tue, Oct 21, 2008 at 07:32:48PM -0700, Steve Langasek wrote:
>> > On Wed, Oct 22, 2008 at 01:00:34AM +0200, Luca Capello wrote:
>> > > This mail originates from the discussion at : simply, I need to move
>> > > an /etc file (/etc/frameworkd.conf) from one package (fso-frameworkd) to
>> > > another one (fso-config-gta02).
>> > Use Replaces:, just as for other files that move between packages.
>> As I understand it, you should also remove the conffile from the
>> original package according.
> That's part of "just as for other files that move between packages", yes. :)
> Replaces: is for /moving/ files between packages;
I think I've now understood: I thought that the burden was for the new
package now carrying the config files, but it's exactly the contrary. I
implemented the solution proposed in the Debian wiki (thanks again to
James) and it works .
Two questions remain:
1) would be a good idea to provide a debhelper script to manage config
files, i.e. to automatically insert the shell functions at  at
build time? Something like dh_conffile_[re]move.
2) am I correct if I say that the reason behind the .dpkg-bak suffix is
because using the .dpkg-old is a "nonsense", since what we backup is
not really an "old" version?
> if the file is supposed to be in both packages, that needs to be a
Only the fso-config-* packages will provide the conffile. Now that I
think of it this means that they should Conflicts: each other, thus each
of them will provide the fso-config virtual package (Policy §7.6.2 ):
This has been implemented in commit , but ATM we decide that
fso-frameworkd should only Recommends: fso-config .
Gismo / Luca
>>  - http://wiki.debian.org/DpkgConffileHandling
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 314 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-fso-maint/attachments/20081026/356c2934/attachment.pgp
More information about the pkg-fso-maint