Proposal: add rarian-compat Pre-depends to fixed xml-core

Martin Pitt martin.pitt at ubuntu.com
Tue Oct 14 11:39:08 BST 2008


Hi all,

I just spent a while to analyze a common hardy->intrepid upgrade
problem [1] which is an incarnation of Debian's Etch->Lenny upgrade
problem of docbook-xml [2].

In summary, xml-core's update-xmlcatalog script is used heavily in
various prerm upgrade maintainer scripts (for unregistering documents,
the postinst registers them again), but was not working with just
perl-base, but needed perl-modules. Thus if you hit a particular
unpack ordering on upgrade, it blew up because the required perl
modules weren't available yet. See [3] for a reproduction recipe.

I applied Agostino's fix for update-xmlcatalog, tested it, and
uploaded a fixed xml-core.

What's left now is to ensure that it will actually be used during the
upgrade. For us, the problem manifests on replacing scrollkeeper with
rarian-compat, since both calls update-xmlcatalog. Therefore I propose
to add 

  Pre-Depends: xml-core (>= 0.11ubuntu1)

to rarian-compat, so that the fixed script is guaranteed to be
available even for the old (hardy) scrollkeeper postrm and
rarian-compat's prerm. See [4] for my proposed debdiff.

We can get away with not adding this kind of dependency to
docbook-x{m,s}l, since they did not change between hardy and intrepid.

Does anyone see a problem with this? 

Thanks,

Martin

[1] https://bugs.launchpad.net/ubuntu/intrepid/+source/rarian/+bug/256131
[2] http://bugs.debian.org/482140
[3] https://bugs.launchpad.net/ubuntu/intrepid/+source/rarian/+bug/256131/comments/23
[4] http://launchpadlibrarian.net/18528256/rarian.256131.debdiff

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20081014/71d4f4d1/attachment.pgp 


More information about the ubuntu-devel mailing list