Bug#483560: Unable to load image-loading modules

2008-05-30 Thread Ted Percival

Loïc Minier wrote:

/var/lib/dpkg/info/libgtk2.0-0.postinst:

# versions prior to 2.10.1-1 used the 2.4.0 binary version and generated module
# files below /etc/gtk-2.0 which will we can not leave behind (since they
# reference modules not on the system anymore)
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt "2.10.3-2"; then
echo "Removing generated module files coming from the previous Gtk binary 
version..."
rm -v -f /etc/gtk-2.0/gdk-pixbuf.loaders
rm -v -f /etc/gtk-2.0/gtk.immodules
fi


That dpkg --compare-versions "lt" looks like it should be a "gt". 
Changing that and re-running the postinst configure does the trick.


Thanks for your help :)



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#483560: Unable to load image-loading modules

2008-05-30 Thread Loïc Minier
On Fri, May 30, 2008, Ted Percival wrote:
> I looked around and found /etc/gtk-2.0/gdk-pixbuf.loaders which is  
> probably the cause of this. It is attached.

/var/lib/dpkg/info/libgtk2.0-0.postinst:

# versions prior to 2.10.1-1 used the 2.4.0 binary version and generated module
# files below /etc/gtk-2.0 which will we can not leave behind (since they
# reference modules not on the system anymore)
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt "2.10.3-2"; then
echo "Removing generated module files coming from the previous Gtk binary 
version..."
rm -v -f /etc/gtk-2.0/gdk-pixbuf.loaders
rm -v -f /etc/gtk-2.0/gtk.immodules
fi

 Perhaps Gtk+ was borken on your system for some reason.

 Or perhaps you got /etc/gtk-2.0/gdk-pixbuf.loaders from some other
 package or by running some other command?

 Anyway, I doubt this is due to the current Debian Gtk+.

-- 
Loïc Minier



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#483560: Unable to load image-loading modules

2008-05-29 Thread Ted Percival

Loïc Minier wrote:


  Failed to load gnome-fs-desktop: Unable to load image-loading module:
  /usr/lib/gtk-2.0/2.4.0/loaders/svg_loader.so:
  /usr/lib/gtk-2.0/2.4.0/loaders/svg_loader.so: cannot open shared
  object file: No such file or directory



 Both 2.12.9-3 and 2.12.9-4 are using /usr/lib/gtk-2.0/2.10.0.  If
 anything mentions 2.4.0, it's very old stuff.

 Could you please ls /usr/local/lib?


$ ls /usr/local/lib/
python2.4  python2.5

I looked around and found /etc/gtk-2.0/gdk-pixbuf.loaders which is 
probably the cause of this. It is attached.


Since /usr/lib/libgtk2.0-0/update-gdkpixbuf-loaders "is a no-op since 
2.10.3-2", I guess some upgrade script should have removed the file from 
/etc but hasn't?


# GdkPixbuf Image Loader Modules file
# Automatically generated file, do not edit
# Created by gdk-pixbuf-query-loaders from gtk+-2.8.20
#
# LoaderDir = /usr/lib/gtk-2.0/2.4.0/loaders
#
"/usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-gif.so"
"gif" 4 "gtk20" "The GIF image format"
"image/gif" ""
"gif" ""
"GIF8" "" 100

"/usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xbm.so"
"xbm" 4 "gtk20" "The XBM image format"
"image/x-xbitmap" ""
"xbm" ""
"#define " "" 100
"/*" "" 50

"/usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so"
"xpm" 4 "gtk20" "The XPM image format"
"image/x-xpixmap" ""
"xpm" ""
"/* XPM */" "" 100

"/usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-ico.so"
"ico" 5 "gtk20" "The ICO image format"
"image/x-icon" ""
"ico" "cur" ""
"  \001   " "zz znz" 100
"  \002   " "zz znz" 100

"/usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-wbmp.so"
"wbmp" 4 "gtk20" "The WBMP image format"
"image/vnd.wap.wbmp" ""
"wbmp" ""
" " "z" 1

"/usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-png.so"
"png" 5 "gtk20" "The PNG image format"
"image/png" ""
"png" ""
"\211PNG\r\n\032\n" "" 100

"/usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-tga.so"
"tga" 4 "gtk20" "The Targa image format"
"image/x-tga" ""
"tga" "targa" ""
" \001\001" "x  " 100
" \001\t" "x  " 100
"  \002" "xz " 99
"  \003" "xz " 100
"  \n" "xz " 100
"  \013" "xz " 100

"/usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-tiff.so"
"tiff" 0 "gtk20" "The TIFF image format"
"image/tiff" ""
"tiff" "tif" ""
"MM *" "  z " 100
"II* " "   z" 100

"/usr/lib/gtk-2.0/2.4.0/loaders/svg_loader.so"
"svg" 2 "gtk20" "Scalable Vector Graphics"
"image/svg+xml" "image/svg" "image/svg-xml" "image/vnd.adobe.svg+xml" 
"text/xml-svg" ""
"svg" "svgz" "svg.gz" ""
"