Bug#838112: uctodata: fails to upgrade from jessie - trying to overwrite /etc/ucto/es.abr

Andreas Beckmann anbe at debian.org
Mon Jan 23 18:48:34 UTC 2017


On 2017-01-23 19:17, Maarten van Gompel wrote:
> Hi Andreas, Mattia, et. al.
> 
>> uploads should happen early enough to allow automatic migration after 10
>> days on Feb 05 (so probably at most 2 days left)
> 
> Right. We have prepared new upstream releases for uctodata, ucto, frogdata and
> frog today that rely on the data being in share/ instead of etc/, and should
> therefore resolve this persistent bug. I updated all the debian packages
> accordingly. The fact I did frog and frogdata as well is because the same issue
> might likely arise there and it depends on ucto anyhow. Putting the stuff in
> etc/ was unnecessary overengineering on our part.

piuparts probably didn't test frog* if their dependencies failed,
otherwise it would have found the same error there

> 
> I followed the documentation and created postint/preinst/postrm scripts for
> libucto2 (ucto), uctodata and frogdata that takes care of removing the old
> files, as you suggested. I tested it on migration from the previous releases
> and it works. Still, a second look from someone with more knowledge about these
> things is highly appreciated.  I haven't been able to test the upgrade from the
> jessie versions yet but I'll try to look into piuparts to do that. I think
> everything should be solved with the releases I prepared today (but again;
> double checks appreciated!)

I'll take a look

> @Mattia: Do you happen to be available on such short notice to sponsor/upload
> these four packages again?  Considering also the very tight deadline before the
> freeze. Sorry for the inconvenience!

If needed, I can sponsor that as well

> For completion's sake, the packages are:
> 
> * https://anonscm.debian.org/cgit/debian-science/packages/uctodata.git
> * https://anonscm.debian.org/cgit/debian-science/packages/ucto.git
> * https://anonscm.debian.org/cgit/debian-science/packages/frogdata.git
> * https://anonscm.debian.org/cgit/debian-science/packages/frog.git
>  
> Regards,
> 
> PS: the postinst/preinst/postrm scripts are currently three copies of the same
> thing. I realize this is probably ugly (unnecessary duplication) and not the
> best way, but I didn't know what would be the best solution and since I was in
> a rush I left it like this.

use debian/$package.maintscript instead of doing it directly in maintscripts

put in there lines like

    rm_conffile /etc/ucto/tokconfig-es 0.4-1~

no dpkg-maintscript-helper prefix, no default arguments, no trailing
comments!
use $VERSION_TO_BE_UPLOADED + "~" as prior-version argument

this will generate appropriate pre/post/inst/rm scripts with the same
content


Andreas (in a hurry)



More information about the debian-science-maintainers mailing list