Bug#640955: buggy librsvg2-common.postinst

Jamie Heilman jamie at audible.transient.net
Thu Sep 8 22:35:45 UTC 2011


librsvg2-common.postinst seemingly assumes that the only files
beneath the /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0 directory are
version directories, but that isn't the case as libgdk-pixbuf2.0-0
includes the helper executable
/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders
(which the postinst script uses!) resulting in:

Setting up librsvg2-common (2.34.1-2) ...
/var/lib/dpkg/info/librsvg2-common.postinst: 12: /var/lib/dpkg/info/librsvg2-common.postinst: cannot create /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0//gdk-pixbuf-query-loaders/loaders.cache: Directory nonexistent

which is harmless, but silly.  Consider:

        for LOADERS in `(cd $GDKPIXDIR && ls -d */loaders)`; do
            $GDKPIXDIR/gdk-pixbuf-query-loaders \
                $GDKPIXDIR/$LOADERS/*.so \
                /usr/lib/gdk-pixbuf-2.0/$LOADERS/*.so > $GDKPIXDIR/${LOADERS}.cache

or something along those lines.






More information about the pkg-gnome-maintainers mailing list