Bug#800769: pbuilder: conffiles not removed

Wouter Verhelst wouter at debian.org
Sun Oct 11 09:03:09 UTC 2015


On Sat, Oct 10, 2015 at 04:30:28PM +0000, Mattia Rizzolo wrote:
> Hi fellows debian-devel@ lurkers!
> 
> On Sat, Oct 03, 2015 at 09:03:46PM +0000, Mattia Rizzolo wrote:
> > On Sat, Oct 03, 2015 at 02:33:09PM +0200, Paul Wise wrote:
> > > The recent upgrade did not deal with obsolete conffiles properly.
> > > Please use the dpkg-maintscript-helper support provided by dh_installdeb
> > > to remove these obsolete conffiles on upgrade.
> > > 
> > > https://www.debian.org/doc/debian-policy/ch-files.html#s-config-files
> > > http://manpages.debian.org/man/1/dh_installdeb
> > > 
> > > $ pkg=pbuilder ; adequate $pkg ; dpkg-query -W -f='${Conffiles}\n' $pkg | grep obsolete
> > > pbuilder: obsolete-conffile /etc/pbuilder/pbuilder-uml.conf
> > >  /etc/pbuilder/pbuilder-uml.conf ce1832f09d721efe29b92ec153fa4410 obsolete
> > 
> > oh, gosh
> > All this just for fucking up with the arch:all buildd :\
> > 
> > This happened because the 0.217 was the first version being built by the
> > arch:all autobuilder, but the code that moved that file away was run
> > only for arch-indep builds, so it did not run there; the 0.218 was
> > uploaded exactly to fix that issue, but 0.217 was already in the wild
> > with that bogus file.
> > 
> > That file is supposed to be only on pbuilder-uml binary, so I can't just
> > use rm_conffiles to remove it in pbuilder, as that would blindly remove
> > it while pbuilder-uml might be using it.
> > 
> > How do you suggest to handle this?
> 
> Do you happen to have ides?
> What actually needs to happen is to hand a conffile over to another
> package, but neither me or pabs have a clue on how to do that.

The only way to hand a file (any file) over to another package is by way of
'Replaces:', *without* the Conflicts: and Provides:.

Since this is a single packaga version, you could put the file in pbuilder-uml
and have that 'Replaces: pbuilder (= 0.217)', that way the possible damage in
case you have other (accidental) file conflicts would be limited.

-- 
It is easy to love a country that is famous for chocolate and beer

  -- Barack Obama, speaking in Brussels, Belgium, 2014-03-26



More information about the Pbuilder-maint mailing list