[Pkg-Cyrus-imapd-Debian-devel] Problem with statoverrides after upgrading cyrus22-* to cyrus-*2.2

Sven Mueller debian at incase.de
Wed Dec 14 13:37:06 UTC 2005


Henrique de Moraes Holschuh wrote on 14/12/2005 00:00:
> I am confused now, apparently we have to take over ALL files (including
> those that are now useless and should be removed instead) by using Replaces
> and shipping these files inside the .deb, AND not conflict with the old
> package.

If policy (or their implementation in dpkg) really makes us ship useless
files, that's is really stupid.
I will take a few hours early next week (or perhaps even this week) and
do some upgrade tests for all paths (cyrus21->cyrus-2.2,
cyrus21->cyrus22->cyrus-2.2, cyrus22->cyrus-2.2) and see what our
current setup results in. If we get the results we want (i.e. old
packages disappear with no orphaned files), I suggest we leave it as is.
If we don't get the result we want, we will have to work out how to
achieve that.

> Still, if we conflict + replace all files, that should also work (since no
> files of the old package will remain).  I suppose we can rm the undesireable
> files in postinst.

Well, a few conffiles remain: /etc/init.d/cyrus2[12],
/etc/default/cyrus2[12] at the very least AFAICT.

> Section 7.5.2 explains the triplets, but doesn't help much.
> 
> What's getting me bummed is that there shouldn't be any files left but the
> conffiles when migrating from old 2.2 to new 2.2, AND that the conffiles are
> the same, so the old package should indeed have disappered.

see above, at least two conffiles remain.

> Sven, did you perchange *purge* by hand the old 2.2 packages? If you did
> not, we're off track.  postrm purge will not be called UNLESS you manually
> tell apt/dpkg to do so, disappearing packages or not.

Yes, I did - because I thought they had no files left on the system,
which was partly true (for all but the -common package). That only
removed the conffiles it should remove (i.e. it left /etc/imapd.conf and
/etc/cyrus.conf on the system), but it also removed the statoverrides,
which we probably don't want.

cu,
sven



More information about the Pkg-Cyrus-imapd-Debian-devel mailing list