[pkg-fso-maint] Correct way to move /etc config files

Luca Capello luca at pca.it
Sun Oct 26 15:38:07 UTC 2008


Hi there!

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 [1]: 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[0] 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 [1].

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 [0] 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
> Conflicts:.

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 [2]):

  Conflicts: fso-config
  Replaces: fso-config
  Provides: fso-config

This has been implemented in commit [3], but ATM we decide that
fso-frameworkd should only Recommends: fso-config [4].

Thx, bye,
Gismo / Luca

Footnotes: 
>> [0] - http://wiki.debian.org/DpkgConffileHandling
[1] http://git.debian.org/?p=pkg-fso/fso-frameworkd.git;a=commitdiff;h=59f313926b62a683230d4b4a4de5128248648918
[2] http://www.debian.org/doc/debian-policy/ch-relationships.html#s7.6.2
[3] http://git.debian.org/?p=pkg-fso/openmoko-files.git;a=commitdiff;h=3237ac83fc91d8dccfad72471de312bcc1c809b4
[4] http://lists.alioth.debian.org/pipermail/pkg-fso-maint/2008-October/000145.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
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 mailing list