[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is it a bug to call /usr/bin/X11/foo in the postinst?



In article <[🔎] E0yLUQO-0000Ti-00@tick.virginia.edu> you wrote:
> USING /usr/X11R6/bin IN /etc/alternatives IS BROKEN:

Why? The behaviour you showed below seems perfectly sensible to me.

> Consider an X program called foo -- with several possible alternative
> implementations: foo1, foo2, etc. -- and observe what happens when
> /usr/X11R6/bin/foo is used as the pathname for update-alternatives:

>    # update-alternatives --install /usr/X11R6/bin/foo foo \
> 	   /usr/X11R6/bin/foo1 20
>    Checking available versions of foo, updating links in /etc/alternatives ...
>    (You may modify the symlinks there yourself if desired - see `man ln'.)
>    Updating foo (/usr/X11R6/bin/foo) to point to /usr/X11R6/bin/foo1.

> But when foo moves to X11R7, the alternatives link does not follow (unless
> the priority of the link is increased, which will cause other problems):

It shouldn't.  In fact, if all packages providing that alternative were now
X11R7, that alternative should be removed.

>    # update-alternatives --install /usr/X11R7/bin/foo foo \
> 	   /usr/X11R7/bin/foo1 20
>    Checking available versions of foo, updating links in /etc/alternatives ...
>    (You may modify the symlinks there yourself if desired - see `man ln'.)
>    Renaming foo link from /usr/X11R6/bin/foo to /usr/X11R7/bin/foo.
>    Leaving foo (/usr/X11R7/bin/foo) pointing to /usr/X11R6/bin/foo1.

-- 
Debian GNU/Linux 1.3 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


--
To UNSUBSCRIBE, email to debian-policy-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: