[OE-core] [PATCH] librsvg 2.32.1: fix postinst script

Koen Kooi koen at dominion.thruhere.net
Thu Apr 21 13:31:43 UTC 2011


Op 21 apr 2011, om 14:43 heeft Koen Kooi het volgende geschreven:

> 
> Op 21 apr 2011, om 14:31 heeft Martin Jansa het volgende geschreven:
> 
>> On Thu, Apr 21, 2011 at 02:21:25PM +0200, Koen Kooi wrote:
>>> The symptom:
>>> 
>>> root at pandaboard-core:~# sh /var/lib/opkg/info/librsvg-2-gtk.postinst
>>> g_module_open() failed for /home/root/--update-cache: /home/root/--update-cache.so: cannot open shared object file: No such file or directory
>>> root at pandaboard-core:~#
>>> 
>>> the gdk-pixbuf-query-loaders app doesn't support arguments, only .so names, so remove --update-cache
>> 
>> I can confirm same symptom here
>> 
>> shouldn't we store output from it as we did in oe.dev to
>> /etc/gtk-2.0/gdk-pixbuf.loaders ?
> 
> I think we do :) Let's see if other requests come in before I respin it.

So Martin and I talked a bit on IRC and we noticed a problem:

root at pandaboard-core:/etc/gtk-2.0# find /usr/lib | grep libpixbufloader
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-jpeg.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-svg.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-gif.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
root at pandaboard-core:/etc/gtk-2.0# 

On Martins system those are in /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders. So the postinst script needs to know where to look. Do we want to provide backward compatibility for older gtk releases with an extra if statement?

regards,

Koen



More information about the Openembedded-core mailing list