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: Added ibus-xx-workaround-gtk3.patch
Date: Sun, 31 May 2026 02:04:50 GMT	[thread overview]
Message-ID: <178019309023.1.17962355894725026401.rpms-ibus-33f093f97a0b@fedoraproject.org> (raw)

           A new commit has been pushed.

           Repo   : rpms/ibus
           Branch : autotool
           Commit : 33f093f97a0b3c590eccbf1af63319cccf7e3626
           Author : Takao Fujiwara <tfujiwar@redhat.com>
           Date   : 2010-10-07T16:03:48+09:00
           Stats  : +52/-2 in 2 file(s)
           URL    : https://src.fedoraproject.org/rpms/ibus/c/33f093f97a0b3c590eccbf1af63319cccf7e3626?branch=autotool

           Log:
           Added ibus-xx-workaround-gtk3.patch
- Workaround for f14 http://koji.fedoraproject.org/koji/taskinfo?taskID=2516604

---
diff --git a/ibus-xx-workaround-gtk3.patch b/ibus-xx-workaround-gtk3.patch
new file mode 100644
index 0000000..fde6229
--- /dev/null
+++ b/ibus-xx-workaround-gtk3.patch
@@ -0,0 +1,30 @@
+--- ibus-1.3.7/client/gtk3/ibusim.c.orig	2010-10-07 15:26:58.572225337 +0900
++++ ibus-1.3.7/client/gtk3/ibusim.c	2010-10-07 15:33:04.881225883 +0900
+@@ -20,6 +20,12 @@
+  */
+ 
+ #include <glib/gprintf.h>
++#define WORKAROUND_GTK3_BUILD_FAILURE 1
++#ifdef WORKAROUND_GTK3_BUILD_FAILURE
++#include <glib-object.h>
++typedef struct _GObject GApplication;
++typedef struct _GObjectClass GApplicationClass;
++#endif
+ #include <gtk/gtk.h>
+ #include <gtk/gtkimmodule.h>
+ #include <ibus.h>
+--- ibus-1.3.7/client/gtk3/ibusimcontext.c.gtk3	2010-10-07 15:33:47.128225657 +0900
++++ ibus-1.3.7/client/gtk3/ibusimcontext.c	2010-10-07 15:35:00.708225606 +0900
+@@ -23,6 +23,12 @@
+ #  include <config.h>
+ #endif
+ 
++#define WORKAROUND_GTK3_BUILD_FAILURE 1
++#ifdef WORKAROUND_GTK3_BUILD_FAILURE
++#include <glib-object.h>
++typedef struct _GObject GApplication;
++typedef struct _GObjectClass GApplicationClass;
++#endif
+ #include <gtk/gtk.h>
+ #include <gdk/gdkkeysyms.h>
+ #include <gdk/gdkx.h>

diff --git a/ibus.spec b/ibus.spec
index 5719b5d..b103753 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -11,7 +11,7 @@
 
 Name:       ibus
 Version:    1.3.7
-Release:    9%{?dist}
+Release:    10%{?dist}
 Summary:    Intelligent Input Bus for Linux OS
 License:    LGPLv2+
 Group:      System Environment/Libraries
@@ -26,6 +26,8 @@ Patch3:     ibus-xx-g-ir-compiler.patch
 # Patch5:     ibus-530711-preload-sys.patch
 Patch6:     ibus-541492-xkb.patch
 Patch7:     ibus-435880-surrounding-text.patch
+# WORKAROUND_GTK3_BUILD_FAILURE @ fedora14
+Patch99:    ibus-xx-workaround-gtk3.patch
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -142,6 +144,22 @@ The ibus-devel-docs package contains developer documentation for ibus
 %endif
 %patch7 -p1 -b .surrounding
 
+#### start WORKAROUND_GTK3_BUILD_FAILURE
+WORKAROUND_GTK3_BUILD_FAILURE=0
+pkg-config --print-requires gtk+-3.0 | grep -q gio-2.0
+if test $? -eq 0; then
+    if test -f /usr/include/gtk-3.0/gtk/gtkapplication.h -a \
+       ! -f /usr/include/glib-2.0/gio/gapplication.h ; then
+        WORKAROUND_GTK3_BUILD_FAILURE=1
+    fi
+fi
+if test $WORKAROUND_GTK3_BUILD_FAILURE -eq 1 ; then
+  printf "#### ERROR: glib2 is old against gtk3\n"
+  printf "####        Applying a workaround\n"
+  %patch99 -p1 -b .ugly-hack
+fi
+#### end WORKAROUND_GTK3_BUILD_FAILURE
+
 %build
 %if %have_libxkbfile
 aclocal -I m4
@@ -283,12 +301,14 @@ fi
 %{_datadir}/gtk-doc/html/*
 
 %changelog
-* Wed Sep 29 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.3.7-9
+* Thu Oct 07 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.3.7-10
 - Added ibus-xx-g-ir-compiler.patch to fix g-ir-compiler error.
 - Updated ibus-435880-surrounding-text.patch
   Fixes Bug 634829 - ibus_im_context_set_surrounding() to get strings.
 - Updated ibus-541492-xkb.patch
   Fixed a bug when changed the system layout "jp(kana)" to "jp".
+- Added ibus-xx-workaround-gtk3.patch
+  Workaround for f14 http://koji.fedoraproject.org/koji/taskinfo?taskID=2516604
 
 * Tue Sep 14 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.3.7-5
 - Added ibus-621795-engineproxy-segv.patch

                 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=178019309023.1.17962355894725026401.rpms-ibus-33f093f97a0b@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