On Tue, 2012-02-07 at 00:02 +0000, Manuel A. Fernandez Montecelo wrote:
> Hi again Sam,
> 
> 2012/2/6 Sam Morris <s...@robots.org.uk>:
> > reopen 656997
> > thanks
> >
> > I found that when I upgraded to 1.7.3-6 the conffiles were not removed:
> > [...]
> >
> > I think this is because dpkg-maintscript-helper rm_conffile is only
> > called in libogre-1.7.3.preinst; the man page says it should be called
> > in the preinst, the postinst and the postrm scripts.
> 
> Thanks for reopening.  I am creating a new version, with new upstream
> included, which hopefully it will be uploaded soon.  I expect to fix
> the issue now, and also remove the /etc/OGRE-1.7.3/plugins.cfg for the
> version that it was shipped.
>
> ...
> 
> > This may be complicated by the local version number's I've added to the
> > package in order to rebuild it against Boost 1.48. I'm not going to
> > remove the files in /etc for now in case you want me to test the upgrade
> > process.
> 
> Thanks for you help.

No problem. I looked into the conffile issue a bit further and I think
that the dpkg-maintscript documentation needs to be changed. I filed
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658854> where you can
find a brief description of the issue; in summary, I think you should
set the 'lastversion' to 1.7.3-7~ in the next revision of the package
(assuming that the next revision will be 1.7.3-7 of course). The
existing documentation would suggest you use 1.7.3-6, but this causes
the conffile removal code to be skipped in the case of a user rebuilding
the package with a local version number: the user would be upgrading
from 1.7.3-6local1, which is greater than 1.7.3-6 and therefore
rm_conffile thinks that it doesn't need to do anything. Any possible
(sane) local version number is guaranteed to be << 1.7.3-7~ however, and
so that version number is safe to use when invoking rm_conffile.

Regards,

-- 
Sam Morris <https://robots.org.uk/>
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to