[gobolinux-users] Solution for situation when more programs provide same file
Carlo Calica
carlo at calica.com
Fri Jun 29 01:17:08 UTC 2007
On 6/28/07, Jan Molič <mig at 1984.cz> wrote:
> Hello,
>
> Libraries/libfoo.so -> programA/lib/libfoo.so
> Libraries/.Alternative0--libfoo.so -> programB/lib/libfoo.so
> Libraries/.Alternative1--libfoo.so -> programC/lib/libfoo.so
>
> Then you remove programA. Instead of RemoveBroken there would be something
> like RepairAndRemoveBroken, which firstly find broken symlinks, then try to
> rename a non-broken alternative to name of the broken symlink and only if no
> alternative exist, remove the broken symlink.
>
> (of course not only libraries, but any collision may be done this way)
>
Having this type of info easily available is a good idea. I'm not
sure creating a bunch of dot files is the way to go though. Maybe
mirroring /S/Links/* into /S/Links/Alternate and then
LIbraries/0--libfoo.so.
The goal is to avoid hidden files. A compromise would be
/S/L/Libraries/.Alternate (hidden dir) with visible 0--libfoo.so?
Anyone else?
--
Carlo J. Calica
More information about the gobolinux-users
mailing list