Re: Moving diversions between packages

2010-07-28 Thread Steve Langasek
Hi Russ,

On Thu, Jul 22, 2010 at 06:47:34AM -0700, Russ Allbery wrote:

> We're attempting to solve this problem by splitting out just the libGL
> library into a separate package (libgl1-nvidia) that can be independently
> installed.  However, that means the diversions of libGL have to move from
> nvidia-glx to this new package.  And that's where we ran into problems.

Somewhat orthogonal to your original question, but the Ubuntu nvidia
packages have recently switched to using alternatives instead of diversions
for managing the libgl bits for various reasons.  It would be great if
Debian and Ubuntu could get synced up on this... and maybe moving to
alternatives solves the problem with moving diversions, since alternatives
don't have the unpack ordering problem that diversions do.  Cc:ing the
Ubuntu nvidia package maintainer to make him aware of this discussion.

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developerhttp://www.debian.org/
slanga...@ubuntu.com vor...@debian.org


signature.asc
Description: Digital signature


Re: Moving diversions between packages

2010-07-22 Thread Ian Jackson
Russ Allbery writes ("Moving diversions between packages"):
> 4. Do something else to move the diversions that I haven't thought of and
>that would wonderfully solve all of our problems.

Why not have the new package ship libGL.so.1 to a more specific
filename and create a symlink named libGL.so.1 by hand in its 
postinst ?  That way you can defer doing the diversion until that part
of the postinst, by which time the old package and its diversion are
gone.

IWBNI dpkg handled diversions much more internally than it does, but
it's a complicated problem.

Ian.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/19528.22286.516091.339...@chiark.greenend.org.uk