Subject: Re: pkgsrc sickness
To: Frederick Bruckman <firstname.lastname@example.org>
From: Rene Hexel <email@example.com>
Date: 08/22/2002 15:34:47
On Thu, 2002-08-22 at 14:52, Frederick Bruckman wrote:
> libogg-SO-188.8.131.52 doesn't depend on anything in libogg-184.108.40.206.
What I was thinking about is this: libogg-SO-220.127.116.11 only contains
the shared libraries. That means that packages depending on libogg
will probably no longer work if you pkg_delete libogg-18.104.22.168, which
then just leaves the shared libraries from the libogg-SO-22.214.171.124
"mini-package", but none of the other (non-library) files installed
by the libogg package.
Therefore, you would end up with a bunch of packages that are
non-functional, because all that's left are the shared libraries.
This might not be an issue with libogg, or any other packages where
only the shared libraries are relevant. But if you think of a more
complex package, there might be other resources too that are needed.
Here is a short example. Let's assume, there is a package called
"foo". Version 1.0 of the package installs the following files
(I have left out the symlinks in this illustration):
Let's say, package 'bar' requires both files from the 'foo' package.
An in-place replacement of foo-1.0 by foo-2.0 yields
for the foo-2.0 package and
for the new foo-SO-1.0 package. If 'bar' only depends on
foo-SO-1.0, it loses its dependency on the 'share/foo/I_Need_This.xml'
file, which might be a vital file for bar's functionality.
Therefore, bar not only needs to depend on the old foo-SO-1.0
package, but also on the new foo-2.0 package. This can either be
done through an explicit dependency for 'bar' (and all other such
packages) on 'foo-2.0', or implicitly by making foo-SO-1.0 depend
on foo-2.0. The latter was what I was suggesting in my previous
> If you delete libogg-126.96.36.199, you'll leave a libogg-SO-188.8.131.52,
How's that? If I "pkg_delete libogg-184.108.40.206", I won't get such
a package, and packages depending on "libogg-SO-220.127.116.11" may now
be in a non-functional state. Hence, they would require a
dependency on libogg-18.104.22.168.
IMHO libogg-SO-22.214.171.124 should also depend on libogg-126.96.36.199,
because it does not make much sense then, to leave that lying
around if you deinstall libogg-188.8.131.52.
This dependency would not affect an in-place upgrade of
libogg-184.108.40.206 to 220.127.116.11 at all (except that it would get
> > This also would have the advantage that a 'make update' for
> > libogg should work as expected and cleanly update everything
> > that depends on both the old and the new version of the library.
> "make update" becomes "make install", for most purposes. The hack
> adds any SO packages in the dependencies to the list of packages to be
> built, so you can't go wrong there.
Yes, I understand. However, if I wanted to clean up and get rid
of all the old libblah.so shared libraries (and make sure everything
links against the one and only shiny new libblah), I'd still might
want to do a traditional 'make update' from time to time.
This would work if the dependencies I described above were in
place (and the in-place update would remain unaffected by that).
> If you really want to upgrade *all* the dependents cleanly, you only
> need a tool to put them in order. E.g:
The above scheme would also make this unnecessary. A 'make update'
would probably just work out of the box here.