Hi,

On Thu, Jun 23, 2011 at 08:24:07AM +0200, Raphael Hertzog wrote:
> On Wed, 22 Jun 2011, Daniel Stone wrote:
> > Hmm.  Seems plausible, but I went through quite a few libX11 uploads
> > without losing my diversion: I would've noticed quite quickly, as the
> > failure mode (which prompted the xkbcomp 1.2.2 and 1.2.3 releases) with
> > my local XKB dataset and any distribution-shipped libX11 involved my
> > entire keyboard doing nothing at all under X.
> 
> Would you notice it instantly or only when you restart X?

Only when I restart, but I do this twice a day at a bare minimum (as
suspend/resume is broken), and usually quite a few times more than that,
as I do all my X development on my live running server.

I usually dist-upgrade every couple of weeks or so, so I'd be pretty
stunned if I just managed not to manage it until multiarch came along.

> > > Do you have any backups of the /var/lib/dpkg/diversions file?
> > 
> > Unfortunately not, I'm afraid.  Is there any more information I can
> > provide?
> 
> If you can't give us a hint on how they might have disappeared from
> /var/lib/dpkg/diversions, there's not much we can do.

Hmm.

> dpkg itself when dealing with upgrades only uses /var/lib/dpkg/diversions
> in a read-only mode and there's no way a simple package upgrade would have
> resulted in the loss of those entries.

Sounds reasonable.

> Is there anything else that uses dpkg-divert and that could have resulted
> in this behaviour ?
> 
> Maybe look around in /var/lib/dpkg/info/* for maintainer scripts (of local
> packages?) which could have some weird usage of dpkg-divert ?

I can't see anything obvious, no.  I don't have any local packages; if I
did, I'd just have packaged my self-built X libraries with an epoch,
rather than diversions.

> How did you put in place all your diversions, do you have script for this?
> Maybe it did not work as you thought it did.

By hand: for i in /usr/lib/libX11.*; do sudo dpkg-divert --add $i; done

Seems to have worked just fine since May 2010, and I've not touched it
since then.  It's a shame there's not more information I can give you.

Cheers,
Daniel

Attachment: signature.asc
Description: Digital signature

Reply via email to