pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkgin & libxml2
Hi!
Please take care when upgrading to the latest libxml2 with pkgin.
I just saw the following (from pkgin's pkg_install-err.log):
2025-04-18T17:16:58Z [372/1066] refreshing libavif-1.2.1...
g_module_open() failed for /usr/pkg/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader_svg.so: /usr/pkg/lib/librsvg-2.so.2: Shared object "libxml2.so.2" not found
[1] Segmentation fault (core dumped) ${GDK_PIXBUF_QUERY_LOADERS} >${GDK_PIXBUF_LOAD...
pkg_delete: Couldn't remove package directory in `/usr/pkg/pkgdb/libavif-1.2.1'
pkg_add: command failed: /usr/pkg/sbin/pkg_delete -K /usr/pkg/pkgdb -p /usr/pkg libavif-1.2.1
pkg_add: 1 package addition failed
(and the rest of the update failed)
The problem is that libavif provides a loader for gdk-pixbuf2. The
pkgsrc framework for the loaders calls a program during
INSTALL/DEINSTALL, and when librsvg2 hasn't been updated yet but
libxml2 has, one of the other installed modules (an SVG loader from
librsvg2) references a non-existent shared library (the library from
the previous libxml2 version) and the gdk-pixbuf2 program doesn't like
that.
Workaround: make sure to update librsvg2 (and libxml2) manually first.
Thomas
Home |
Main Index |
Thread Index |
Old Index