Subject: Re: Alternatives system for pkgsrc
To: Dieter Baron <>
From: Julio M. Merino Vidal <>
List: tech-pkg
Date: 01/20/2005 16:58:07
On Thu, 2005-01-20 at 16:36 +0100, Julio M. Merino Vidal wrote:

> > :  sysconfdir is used here so that this can be
> > : configured on a system basis if sharing /usr/pkg.
> > 
> >   This is problematic: if nvi is selected as vi on system A, and on
> > system B -- which shares /usr/pkg with system A -- nvi is deleted,
> > system A is left with dangling symlinks.
> True... but any better idea?
> I only see a solution to this, which is to use wrappers instead of
> links.  This way, the wrapper might check if the expected program
> is available, and fall back to another one in case it's not.
> Dunno if it's worth the effort.

Let me add one more thing: wrappers won't work, because the alternatives
are not only about binaries.  They are also used to handle manual pages,
for example, hence the wrappers are useless.

Julio M. Merino Vidal <>
The NetBSD Project -