pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: suse113 pango bug (and workaround)



On Tue, 14 Dec 2010 06:29:04 +0900, Pouya D. Tafti 
<pouya%san-serriffe.org@localhost> wrote:

On 11 December 2010 15:43, OBATA Akio <obache%netbsd.org@localhost> wrote:
On Sat, 11 Dec 2010 23:19:51 +0900, Pouya D. Tafti 
<pouya%san-serriffe.org@localhost>
wrote:

I was seeing squares instead of the usual characters in some linux
applications under emulation on amd64-current.  This turned out to be
a consequence of pango's not finding its list of modules, even though
these were listed in

/emul/linux/etc/pango/pango.modules.

The reason?  ktrace shows that pango is expecting the file to be named
"pango64.modules" (note the 64); symlinking the latter to the former
saves the day (to be on the safe side, I also created pango64.aliases
-> pango.aliases).

How about other files, gtk.immodules and gdk-pixbuf.loaders?
also require 64 suffix?

I don't know; how do I check this?  --Pouya

From srpm (spec file and patches), gtk.immodules must be gtk64.immodules.
I cannot find "64" patches for gdk-pixbuf.loaders.

I don't have a machine to test it, but following patch may resolve the issue.

Index: DEINSTALL
===================================================================
RCS file: /cvsroot/pkgsrc/emulators/suse113_gtk2/DEINSTALL,v
retrieving revision 1.2
diff -u -r1.2 DEINSTALL
--- DEINSTALL   3 Dec 2010 00:27:05 -0000       1.2
+++ DEINSTALL   14 Dec 2010 03:12:59 -0000
@@ -8,9 +8,9 @@
        GNOME_ETCDIR="${PKG_PREFIX}/@EMULSUBDIR@/etc"

        ${ECHO} "${PKGNAME}: removing GTK/Pango module configuration"
-        ${RM} -f ${GNOME_ETCDIR}/gtk-2.0/gtk.immodules
+        ${RM} -f ${GNOME_ETCDIR}/gtk-2.0/gtk@ABISUFFIX@.immodules
         ${RM} -f ${GNOME_ETCDIR}/gtk-2.0/gdk-pixbuf.loaders
-        ${RM} -f ${GNOME_ETCDIR}/pango/pango.modules
+        ${RM} -f ${GNOME_ETCDIR}/pango/pango@ABISUFFIX@.modules
        ${RM} -rf ${PKG_PREFIX}/@EMULSUBDIR@/var/cache/gio-2.0
        ${RM} -f ${PKG_PREFIX}/@EMULSUBDIR@/var/lib/dbus/machine-id
        ;;
Index: INSTALL
===================================================================
RCS file: /cvsroot/pkgsrc/emulators/suse113_gtk2/INSTALL,v
retrieving revision 1.2
diff -u -r1.2 INSTALL
--- INSTALL     3 Dec 2010 00:27:05 -0000       1.2
+++ INSTALL     14 Dec 2010 03:12:59 -0000
@@ -9,9 +9,9 @@
        SUSECONFIG="${PKG_PREFIX}/@EMULSUBDIR@/sbin/SuSEconfig"

        ${ECHO} "${PKGNAME}: initializing GTK/Pango module configuration"
-        ${GNOME_BINDIR}/gtk-query-immodules-2.0@BINSUFFIX@ > 
${GNOME_ETCDIR}/gtk-2.0/gtk.immodules
+        ${GNOME_BINDIR}/gtk-query-immodules-2.0@BINSUFFIX@ > 
${GNOME_ETCDIR}/gtk-2.0/gtk@ABISUFFIX@.immodules
         ${GNOME_BINDIR}/gdk-pixbuf-query-loaders@BINSUFFIX@ > 
${GNOME_ETCDIR}/gtk-2.0/gdk-pixbuf.loaders
-        ${GNOME_BINDIR}/pango-querymodules@BINSUFFIX@ > 
${GNOME_ETCDIR}/pango/pango.modules
+        ${GNOME_BINDIR}/pango-querymodules@BINSUFFIX@ > 
${GNOME_ETCDIR}/pango/pango@ABISUFFIX@.modules
        PATH=${PKG_PREFIX}/@EMULSUBDIR@/bin ROOT=${PKG_PREFIX}/@EMULSUBDIR@ 
bash ${SUSECONFIG} --module glib2
        ${LN} -s /../var/db/dbus/machine-id 
${PKG_PREFIX}/@EMULSUBDIR@/var/lib/dbus/machine-id
        ;;
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/emulators/suse113_gtk2/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile    3 Dec 2010 00:27:05 -0000       1.2
+++ Makefile    14 Dec 2010 03:12:59 -0000
@@ -25,11 +25,13 @@
 EMUL_MODULES.linux=    fontconfig freetype2 jpeg png tiff x11

 # These files are managed by the +INSTALL/+DEINSTALL scripts.
-CHECK_FILES_SKIP+=     ${EMULDIR}/etc/gtk-2.0/gtk.immodules
+CHECK_FILES_SKIP+=     ${EMULDIR}/etc/gtk-2.0/gtk${ABISUFFIX}.immodules
 CHECK_FILES_SKIP+=     ${EMULDIR}/etc/gtk-2.0/gdk-pixbuf.loaders
-CHECK_FILES_SKIP+=     ${EMULDIR}/etc/pango/pango.modules
+CHECK_FILES_SKIP+=     ${EMULDIR}/etc/pango/pango${ABISUFFIX}.modules

+ABISUFFIX?=    # empty
 BINSUFFIX?=    # empty
+FILES_SUBST+=  ABISUFFIX=${ABISUFFIX:Q}
 FILES_SUBST+=  BINSUFFIX=${BINSUFFIX:Q}

 .include "../../emulators/suse113_linux/Makefile.common"
Index: suse.x86_64.mk
===================================================================
RCS file: /cvsroot/pkgsrc/emulators/suse113_gtk2/suse.x86_64.mk,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 suse.x86_64.mk
--- suse.x86_64.mk      24 Sep 2010 01:27:58 -0000      1.1.1.1
+++ suse.x86_64.mk      14 Dec 2010 03:12:59 -0000
@@ -1,4 +1,5 @@
 # $NetBSD: suse.x86_64.mk,v 1.1.1.1 2010/09/24 01:27:58 chs Exp $

 # Suffix on the GTK+-2.x/Pango binaries used in the INSTALL script
-BINSUFFIX=     -64
+ABISUFFIX=     64
+BINSUFFIX=     -${ABISUFFIX}


--
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index