pravins pushed to ibus-bogo (master). "Resolves bug #1204029 - Crashing in F22 Alpha with updates"
notifications at fedoraproject.org
notifications at fedoraproject.org
Tue Mar 31 05:52:25 UTC 2015
>From 8deed826857d9a52f35a7cab888c6e2671037e2f Mon Sep 17 00:00:00 2001
From: Pravin Satpute <psatpute at redhat.com>
Date: Tue, 31 Mar 2015 11:22:04 +0530
Subject: Resolves bug #1204029 - Crashing in F22 Alpha with updates
diff --git a/ibus-bogo-crash-f22-bug-1204029.patch b/ibus-bogo-crash-f22-bug-1204029.patch
new file mode 100644
index 0000000..3d5b8cf
--- /dev/null
+++ b/ibus-bogo-crash-f22-bug-1204029.patch
@@ -0,0 +1,45 @@
+diff -rup ibus-bogo-python-ce44b961de5a0f82a4a2d8fc0e487e8fcb29289d/ibus_engine/ibus_engine.py ibus-bogo-python-ce44b961de5a0f82a4a2d8fc0e487e8fcb29289d_mod/ibus_engine/ibus_engine.py
+--- ibus-bogo-python-ce44b961de5a0f82a4a2d8fc0e487e8fcb29289d/ibus_engine/ibus_engine.py 2015-03-31 10:31:05.736109792 +0530
++++ ibus-bogo-python-ce44b961de5a0f82a4a2d8fc0e487e8fcb29289d_mod/ibus_engine/ibus_engine.py 2015-03-31 10:32:50.933722217 +0530
+@@ -73,7 +73,7 @@ def is_in_unity_dash():
+ class Engine(IBus.Engine):
+ __gtype_name__ = 'EngineBoGo'
+
+- def __init__(self, config, abbr_expander):
++ def init_config(self, config, abbr_expander):
+ super(Engine, self).__init__()
+ logging.info("You are running ibus-bogo")
+
+diff -rup ibus-bogo-python-ce44b961de5a0f82a4a2d8fc0e487e8fcb29289d/ibus_engine/main.py ibus-bogo-python-ce44b961de5a0f82a4a2d8fc0e487e8fcb29289d_mod/ibus_engine/main.py
+--- ibus-bogo-python-ce44b961de5a0f82a4a2d8fc0e487e8fcb29289d/ibus_engine/main.py 2015-03-31 10:31:05.736109792 +0530
++++ ibus-bogo-python-ce44b961de5a0f82a4a2d8fc0e487e8fcb29289d_mod/ibus_engine/main.py 2015-03-31 10:32:50.933722217 +0530
+@@ -93,28 +93,12 @@ class IMApp:
+ if engine_name == "bogo":
+ dbus_path = "/org/freedesktop/IBus/Engine/%d" % self.engine_count
+
+- # It looks like the GObject's new_with_type constructor also
+- # calls __init__ but without arguments so there will be error
+- # messages like this:
+- #
+- # TypeError: __init__() missing 1 required positional argument
+- #
+- # We will ignore that message by temporarily redirect stderr
+- # to /dev/null
+-
+- f = open('/dev/null', 'w')
+- stderr = sys.stderr
+- sys.stderr = f
+-
+ engine = Engine.new_with_type(GObject.type_from_name("EngineBoGo"),
+ "bogo-python",
+ dbus_path,
+ self.bus.get_connection())
+
+- sys.stderr = stderr
+- f.close()
+-
+- Engine.__init__(engine, self.config, self.abbr_expander)
++ Engine.init_config(engine, self.config, self.abbr_expander)
+
+ self.engine_count += 1
+ return engine
diff --git a/ibus-bogo.spec b/ibus-bogo.spec
index a259050..a297261 100644
--- a/ibus-bogo.spec
+++ b/ibus-bogo.spec
@@ -4,7 +4,7 @@ Name: ibus-bogo
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Version: 0.4
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Vietnamese engine for IBus input platform
Group: User Interface/X
@@ -16,6 +16,7 @@ Source0: http://github.com/BoGoEngine/ibus-bogo-python/archive/%{commit}/%{name}
Patch0: ibus-bogo-fix-libexec-folder-name.patch
# patch to disable mouse dedector function
Patch1: ibus-bogo-disable-mouse-detector-function.patch
+Patch2: ibus-bogo-crash-f22-bug-1204029.patch
BuildRequires: cmake
BuildRequires: desktop-file-utils
@@ -43,6 +44,7 @@ A Vietnamese engine for IBus input platform that uses BoGoEngine.
%setup -qn %{name}-python-%{commit}
%patch0 -p1
%patch1 -p1
+%patch2 -p1 -b .3-resolving-crash-in-engine
%build
%cmake .
@@ -121,6 +123,10 @@ fi
%changelog
+* Tue Mar 31 2015 Pravin Satpute <psatpute at redhat.com> - 0.4-6
+- Resolves bug #1204029 - Crashing in F22 Alpha with updates
+- Patch from Fujiwara <tfujiwar at redhat.com>
+
* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 0.4-5
- Register as an AppStream component.
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ibus-bogo.git/commit/?h=master&id=8deed826857d9a52f35a7cab888c6e2671037e2f
More information about the scm-commits
mailing list