Subject: Re: bulk-build list
To: Dr. Rene Hexel <>
From: Frederick Bruckman <>
List: tech-pkg
Date: 05/25/2001 19:06:08
On Fri, 25 May 2001, Dr. Rene Hexel wrote:

>   There is one thing that would ease up things a lot: in-place package
> updates.  As Jason suggested earler, what we'd need to have is some sort
> of 'pkg_update' or 'pkg_add -u' that keeps older versions of shared
> libraries.  This way, a user could update a package like 'png' without
> deinstalling and reinstalling a bunch of dependent packages.

I've been experimenting with that. It'll be convienient at times, but
it's not a general solution for great networks of packages that
include shared libraries that depend on shared libraries that depend
on other shared libraries, which is where you'd want it want it most.
Even with ELF, the run-time linker doesn't really chase each symbol
down to the shared library that the shared library was linked against,
but rather concatenates the embedded paths and uses them to search for
the embedded library specs. So what happens is, you end up linking
against _both_ versions. Knowing that, "ld" emits a warning at link
time that, for example " conflicts with", and it's not at all clear to me which shared
library is going to supply any particular symbol. Consider:

fredb@fiona-> ldd /usr/pkg/bin/xmms
         -lm.0 => /usr/lib/
         -lm.0 => /usr/lib/
         -lpthread.14 => /usr/pkg/lib/
         -lICE.6 => /usr/X11R6/lib/
         -lSM.6 => /usr/X11R6/lib/
         -lc.12 => /usr/lib/
         -lgmodule.13 => /usr/pkg/lib/
         -lglib.13 => /usr/pkg/lib/
         -lX11.6 => /usr/X11R6/lib/
         -lXext.6 => /usr/X11R6/lib/
         -lXi.6 => /usr/X11R6/lib/
         -lintl.1 => /usr/pkg/lib/
         -lgtk.12 => /usr/X11R6/lib/
         -lgdk.12 => /usr/X11R6/lib/
         -lpthread.13 => /usr/pkg/lib/
         -lgthread.13 => /usr/pkg/lib/
         -lxmms.1 => /usr/pkg/lib/
         -lmikmod.2 => /usr/pkg/lib/
         -lz.0 => /usr/lib/
         -lxml.9 => /usr/pkg/lib/

Amazingly, "xmms" seems to run fine, but I wouldn't want to distribute
this package!