public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Takao Fujiwara <tfujiwar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ibus] autotool: Updated ibus-xx-g-ir-compiler.patch to work with f14 gobject-introspection
Date: Sun, 31 May 2026 02:04:48 GMT	[thread overview]
Message-ID: <178019308833.1.16664978204759217063.rpms-ibus-a301b6597b84@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/ibus
Branch : autotool
Commit : a301b6597b84f68dc01c2a612d9d2524e91cbfa8
Author : Takao Fujiwara <tfujiwar@redhat.com>
Date   : 2010-09-30T11:56:01+09:00
Stats  : +147/-24 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/ibus/c/a301b6597b84f68dc01c2a612d9d2524e91cbfa8?branch=autotool

Log:
Updated ibus-xx-g-ir-compiler.patch to work with f14 gobject-introspection

---
diff --git a/ibus-xx-g-ir-compiler.patch b/ibus-xx-g-ir-compiler.patch
index e19009d..5f4df32 100644
--- a/ibus-xx-g-ir-compiler.patch
+++ b/ibus-xx-g-ir-compiler.patch
@@ -1,32 +1,155 @@
---- ibus-1.3.7/src/Makefile.am.orig	2010-09-29 15:46:18.941239947 +0900
-+++ ibus-1.3.7/src/Makefile.am	2010-09-29 15:45:50.288225017 +0900
+From 9a6f41415b774541c69cb45cec96839b7228fe70 Mon Sep 17 00:00:00 2001
+From: fujiwarat <takao.fujiwara1@gmail.com>
+Date: Thu, 30 Sep 2010 10:58:31 +0900
+Subject: [PATCH] Fix a build error with GTK3 gdkkeysyms.h
+
+Fix a build error with DBus-1.0.gir in gobject-introspection 0.9.6
+
+---
+ configure.ac                |    8 ++++++++
+ client/gtk2/ibusimcontext.c |   47 +++++++++++++++++++++++++++++++++++++++++++
+ src/Makefile.am             |    2 +-
+ 3 files changed, 56 insertions(+), 1 deletions(-)
+
+diff --git a/client/gtk2/ibusimcontext.c b/client/gtk2/ibusimcontext.c
+index c104f38..a7a2c59 100644
+--- a/client/gtk2/ibusimcontext.c
++++ b/client/gtk2/ibusimcontext.c
+@@ -24,6 +24,7 @@
+ #  include <config.h>
+ #endif
+ 
++#include <gtk/gtk.h>
+ #include <gdk/gdkkeysyms.h>
+ #include <gdk/gdkx.h>
+ #include <sys/types.h>
+@@ -34,6 +35,10 @@
+ #include <ibus.h>
+ #include "ibusimcontext.h"
+ 
++#if !GTK_CHECK_VERSION (2, 90, 0)
++#  define DEPRECATED_GDK_KEYSYMS 1
++#endif
++
+ #ifdef DEBUG
+ #  define IDEBUG g_debug
+ #else
+@@ -733,6 +738,7 @@ _key_is_modifier (guint keyval)
+    * really should be implemented */
+ 
+     switch (keyval) {
++#ifdef DEPRECATED_GDK_KEYSYMS
+     case GDK_Shift_L:
+     case GDK_Shift_R:
+     case GDK_Control_L:
+@@ -759,6 +765,34 @@ _key_is_modifier (guint keyval)
+     case GDK_ISO_Group_Latch:
+     case GDK_ISO_Group_Lock:
+         return TRUE;
++#else
++    case GDK_KEY_Shift_L:
++    case GDK_KEY_Shift_R:
++    case GDK_KEY_Control_L:
++    case GDK_KEY_Control_R:
++    case GDK_KEY_Caps_Lock:
++    case GDK_KEY_Shift_Lock:
++    case GDK_KEY_Meta_L:
++    case GDK_KEY_Meta_R:
++    case GDK_KEY_Alt_L:
++    case GDK_KEY_Alt_R:
++    case GDK_KEY_Super_L:
++    case GDK_KEY_Super_R:
++    case GDK_KEY_Hyper_L:
++    case GDK_KEY_Hyper_R:
++    case GDK_KEY_ISO_Lock:
++    case GDK_KEY_ISO_Level2_Latch:
++    case GDK_KEY_ISO_Level3_Shift:
++    case GDK_KEY_ISO_Level3_Latch:
++    case GDK_KEY_ISO_Level3_Lock:
++    case GDK_KEY_ISO_Level5_Shift:
++    case GDK_KEY_ISO_Level5_Latch:
++    case GDK_KEY_ISO_Level5_Lock:
++    case GDK_KEY_ISO_Group_Shift:
++    case GDK_KEY_ISO_Group_Latch:
++    case GDK_KEY_ISO_Group_Lock:
++        return TRUE;
++#endif
+     default:
+         return FALSE;
+     }
+@@ -789,7 +823,11 @@ _create_gdk_event (IBusIMContext *ibusimcontext,
+     event->group = 0;
+     event->is_modifier = _key_is_modifier (keyval);
+ 
++#ifdef DEPRECATED_GDK_KEYSYMS
+     if (keyval != GDK_VoidSymbol)
++#else
++    if (keyval != GDK_KEY_VoidSymbol)
++#endif
+         c = gdk_keyval_to_unicode (keyval);
+ 
+     if (c) {
+@@ -819,12 +857,21 @@ _create_gdk_event (IBusIMContext *ibusimcontext,
+                                             NULL);
+         if (event->string)
+             event->length = bytes_written;
++#ifdef DEPRECATED_GDK_KEYSYMS
+     } else if (keyval == GDK_Escape) {
++#else
++    } else if (keyval == GDK_KEY_Escape) {
++#endif
+         event->length = 1;
+         event->string = g_strdup ("\033");
+     }
++#ifdef DEPRECATED_GDK_KEYSYMS
+     else if (keyval == GDK_Return ||
+              keyval == GDK_KP_Enter) {
++#else
++    else if (keyval == GDK_KEY_Return ||
++             keyval == GDK_KEY_KP_Enter) {
++#endif
+         event->length = 1;
+         event->string = g_strdup ("\r");
+     }
+diff --git a/configure.ac b/configure.ac
+index 3346d0c..73129f0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -171,6 +171,13 @@ fi
+ # GObject introspection
+ GOBJECT_INTROSPECTION_CHECK([0.6.8])
+ 
++IBUS_GIR_INCLUDES=
++DBUS_GIR_NAME=DBus-1.0
++if test -f ${INTROSPECTION_GIRDIR}/${DBUS_GIR_NAME}.gir ; then
++    IBUS_GIR_INCLUDES="${IBUS_GIR_INCLUDES} ${DBUS_GIR_NAME}"
++fi
++AC_SUBST(IBUS_GIR_INCLUDES)
++
+ # check for gtk-doc
+ GTK_DOC_CHECK(1.9)
+ if test x"$enable_gtk_doc" = x"no"; then
+@@ -386,6 +393,7 @@ Build options:
+   Build gconf modules       $enable_gconf
+   Build memconf modules     $enable_memconf
+   Build introspection       $found_introspection
++  IBus-1.0.gir includes     "$IBUS_GIR_INCLUDES"
+   Build vala binding        $enable_vala
+   Build document            $enable_gtk_doc
+   Enable key snooper        $enable_key_snooper
+diff --git a/src/Makefile.am b/src/Makefile.am
+index cdd3d7c..3174b23 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
 @@ -139,7 +139,7 @@ introspection_files = \
  		$(NULL)
  IBus-1.0.gir: $(ibustargetlib) Makefile
  IBus_1_0_gir_SCANNERFLAGS = --strip-prefix=IBus --pkg=dbus-1,glib-2.0
 -IBus_1_0_gir_INCLUDES = GLib-2.0 GObject-2.0
-+IBus_1_0_gir_INCLUDES = GLib-2.0 GObject-2.0 DBus-1.0
++IBus_1_0_gir_INCLUDES = GLib-2.0 GObject-2.0 $(IBUS_GIR_INCLUDES)
  IBus_1_0_gir_LIBS = $(ibustargetlib)
  IBus_1_0_gir_FILES = $(addprefix $(srcdir)/,$(introspection_files))
  IBus_1_0_gir_CFLAGS = $(INCLUDES)
---- ibus-1.3.7/src/Makefile.in.orig	2010-09-29 15:46:30.076225797 +0900
-+++ ibus-1.3.7/src/Makefile.in	2010-09-29 15:47:13.322226068 +0900
-@@ -537,7 +537,7 @@ ibusincludedir = $(includedir)/ibus-1.0
- @HAVE_INTROSPECTION_TRUE@		$(NULL)
- 
- @HAVE_INTROSPECTION_TRUE@IBus_1_0_gir_SCANNERFLAGS = --strip-prefix=IBus --pkg=dbus-1,glib-2.0
--@HAVE_INTROSPECTION_TRUE@IBus_1_0_gir_INCLUDES = GLib-2.0 GObject-2.0
-+@HAVE_INTROSPECTION_TRUE@IBus_1_0_gir_INCLUDES = GLib-2.0 GObject-2.0 DBus-1.0
- @HAVE_INTROSPECTION_TRUE@IBus_1_0_gir_LIBS = $(ibustargetlib)
- @HAVE_INTROSPECTION_TRUE@IBus_1_0_gir_FILES = $(addprefix $(srcdir)/,$(introspection_files))
- @HAVE_INTROSPECTION_TRUE@IBus_1_0_gir_CFLAGS = $(INCLUDES)
---- ibus-1.3.7/client/gtk3/ibusimcontext.c.orig	2010-09-29 16:05:47.435225305 +0900
-+++ ibus-1.3.7/client/gtk3/ibusimcontext.c	2010-09-29 16:06:15.385224305 +0900
-@@ -24,6 +24,7 @@
- #endif
- 
- #include <gdk/gdkkeysyms.h>
-+#include <gdk/gdkkeysyms-compat.h>
- #include <gdk/gdkx.h>
- #include <sys/types.h>
- #include <sys/socket.h>
+-- 
+1.7.2.1
+

                 reply	other threads:[~2026-05-31  2:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178019308833.1.16664978204759217063.rpms-ibus-a301b6597b84@fedoraproject.org \
    --to=tfujiwar@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox