Package: gcin
Version: 1.4.6-1
Severity: important
Tags: patch
Justification: fails to build from source
User: [email protected]
Usertags: origin-ubuntu karmic ubuntu-patch
Package fails to build due to use of deprecated Gtk+ macro
GTK_WIDGET_APP_PAINTABLE. (Also uses deprecated GTK_WIDGET_NO_WINDOW).
http://launchpadlibrarian.net/38892602/buildlog_ubuntu-lucid-i386.gcin_1.4.6-1_FAILEDTOBUILD.txt.gz
gcc -o gcin gcin.o eve.o util.o gcin-conf.o gcin-settings.o locale.o
gcin-icon.o gcin-switch.o gcin-exec-script.o pho-play.o cache.o gtk_bug_fix.o
intcode.o win-int.o win-message.o win-sym.o win-inmd-switch.o pinyin.o
win-pho-near.o win-kbm.o tsin-char.o anthy.o win-pho.o pho.o pho-util.o
pho-sym.o table-update.o pho-dbg.o gtab.o win-gtab.o gtab-util.o gtab-list.o
gtab-buf.o gcin-common.o phrase.o t2s-lookup.o gtab-use-count.o IC.o tray.o
eggtrayicon.o tray-win32.o tsin.o tsin-util.o win0.o win1.o tsin-parse.o gcb.o
IMdkit/lib/libXimd.a im-addr.o im-dispatch.o im-srv.o gcin-crypt.o -lXtst
-Wl,--as-needed -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0
-lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype
-lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lX11
-Wl,-rpath,/usr/lib/gcin -ldl -L/usr/X11R6/lib
eggtrayicon.o: In function `make_transparent':
/build/buildd/gcin-1.4.6/eggtrayicon.cpp:401: undefined reference to
`GTK_WIDGET_APP_PAINTABLE'
-----
In Ubuntu, we've applied the attached patch to achieve the following:
* debian/patches/fix_gtk_deprecations.diff
- Fix FTBFS due to deprecated Gtk+ macros GTK_WIDGET_APP_PAINTABLE and
GTK_WIDGET_NO_WINDOW. (LP: #520148)
We thought you might be interested in doing the same.
--- gcin-1.4.6/debian/patches/fix_gtk_deprecations.diff 1969-12-31
16:00:00.000000000 -0800
+++ gcin-1.4.6/debian/patches/fix_gtk_deprecations.diff 2010-02-10
14:57:18.000000000 -0800
@@ -0,0 +1,13 @@
+Index: gcin-1.4.6/eggtrayicon.cpp
+===================================================================
+--- gcin-1.4.6.orig/eggtrayicon.cpp 2010-02-10 14:52:19.000000000 -0800
++++ gcin-1.4.6/eggtrayicon.cpp 2010-02-10 14:55:40.000000000 -0800
+@@ -398,7 +398,7 @@
+ static void
+ make_transparent (GtkWidget *widget, gpointer user_data)
+ {
+- if (GTK_WIDGET_NO_WINDOW (widget) || GTK_WIDGET_APP_PAINTABLE (widget))
++ if (!gtk_widget_get_has_window (widget) || gtk_widget_get_app_paintable
(widget))
+ return;
+
+ gtk_widget_set_app_paintable (widget, TRUE);
diff -Nru gcin-1.4.6/debian/patches/series gcin-1.4.6/debian/patches/series
--- gcin-1.4.6/debian/patches/series 2010-01-28 02:14:10.000000000 -0800
+++ gcin-1.4.6/debian/patches/series 2010-02-10 14:51:40.000000000 -0800
@@ -4,3 +4,4 @@
fix_install_paths.diff
ld_only_link_needed.diff
fix_anthy_error_message.diff
+fix_gtk_deprecations.diff