[patch] upgrading x11-toolkits/linux-gtk2 fails

Alexander Leidinger Alexander at Leidinger.net
Fri Feb 25 10:41:49 GMT 2005


Phil Schulz <ph.schulz at gmx.de> wrote:

>> ===>   Generating temporary packing list
>> pango-1.2.1-3.i386.rpm
>> /compat/linux/usr/bin/pango-querymodules: error while loading shared 
>> libraries: libXft.so.2: cannot open shared object file: No such file 
>> or directory
>> *** Error code 127

Do you know about the 20041231 entry in /usr/ports/UPDATING?

> When applying the following patch to x11-toolkits/linux-gtk2/Makefile 
> everything works (for me).
>
>> --- Makefile.orig       Thu Feb 24 18:22:59 2005
>> +++ Makefile    Thu Feb 24 18:23:17 2005
>> @@ -33,7 +33,7 @@
>>  .for ii in gdk-pixbuf-query-loaders gtk-demo 
>> gtk-query-immodules-2.0 testgtk testtext
>>         @${BRANDELF} -t Linux ${PREFIX}/usr/bin/${ii}
>>  .endfor
>> -       @chroot ${PREFIX} /usr/bin/gtk-query-immodules-2.0 > 
>> ${PREFIX}/etc/gtk-2.0/gtk.immodules
>> -       @chroot ${PREFIX} /usr/bin/gdk-pixbuf-query-loaders > 
>> ${PREFIX}/etc/gtk-2.0/gdk-pixbuf.loaders
>> +       /usr/X11R6/bin/gtk-query-immodules-2.0 > 
>> ${PREFIX}/etc/gtk-2.0/gtk.immodules
>> +       /usr/X11R6/bin/gdk-pixbuf-query-loaders > 
>> ${PREFIX}/etc/gtk-2.0/gdk-pixbuf.loaders
>>
>>  .include "../linux-gtk/Makefile"
>
> I must admit I haven't searched the archives too long whether the 
> problem has been reported before or if it is just me who is having 
> issues here.
>
> If this is the correct fix, please let me know if you want me to file a PR.

This is wrong, it uses the FreeBSD binary which searches the FreeBSD
modules/loaders. But we need the Linux binary to search for the linux
modules/loaders.

Bye,
Alexander.

-- 
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137
Underlying Principle of Socio-Genetics:
	Superiority is recessive.




More information about the freebsd-emulation mailing list