Accepting request 844031 from home:gmbr3:Active
- Add vala-0.50.patch: Fix build with vala 0.50 (gh#ibus/ibus#2265) OBS-URL: https://build.opensuse.org/request/show/844031 OBS-URL: https://build.opensuse.org/package/show/M17N/ibus?expand=0&rev=245
This commit is contained in:
parent
1e3be8bf95
commit
a1d49b802f
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 26 08:18:51 UTC 2020 - Callum Farmer <callumjfarmer13@gmail.com>
|
||||
|
||||
- Add vala-0.50.patch: Fix build with vala 0.50 (gh#ibus/ibus#2265)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 30 06:02:24 UTC 2020 - Hillwood Yang <hillwood@opensuse.org>
|
||||
|
||||
|
@ -59,6 +59,8 @@ Patch11: setup-switch-im.patch
|
||||
# PATCH-FIX-SLE ibus-disable-engines-preload-in-GNOME.patch bnc#1036729 qzhao@suse.com
|
||||
# Disable ibus engines preload in GNOME for These works are handled by gnome-shell.
|
||||
Patch12: ibus-disable-engines-preload-in-GNOME.patch
|
||||
# PATCH-FIX-UPSTREAM Fix build with vala 0.50 - gh#ibus/ibus#2265
|
||||
Patch13: vala-0.50.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gettext-devel
|
||||
BuildRequires: gobject-introspection-devel >= 0.9.6
|
||||
@ -195,6 +197,7 @@ cp -r %{SOURCE11} .
|
||||
%patch10 -p1
|
||||
%patch11 -p1
|
||||
%patch12 -p1
|
||||
%patch13 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
|
104
vala-0.50.patch
Normal file
104
vala-0.50.patch
Normal file
@ -0,0 +1,104 @@
|
||||
From dd4cc5b028c35f9bb8fa9d3bdc8f26bcdfc43d40 Mon Sep 17 00:00:00 2001
|
||||
From: fujiwarat <takao.fujiwara1@gmail.com>
|
||||
Date: Wed, 30 Sep 2020 20:35:23 +0900
|
||||
Subject: [PATCH] ui/gtk3: Fix arguments in GLib.DBusSignalCallback for Vala
|
||||
0.50
|
||||
|
||||
BUG=https://github.com/ibus/ibus/issues/2265
|
||||
---
|
||||
ui/gtk3/application.vala | 22 +++++++++++-----------
|
||||
ui/gtk3/extension.vala | 22 +++++++++++-----------
|
||||
2 files changed, 22 insertions(+), 22 deletions(-)
|
||||
|
||||
diff --git a/ui/gtk3/application.vala b/ui/gtk3/application.vala
|
||||
index cc9ee54c9..da65301b4 100644
|
||||
--- a/ui/gtk3/application.vala
|
||||
+++ b/ui/gtk3/application.vala
|
||||
@@ -3,7 +3,7 @@
|
||||
* ibus - The Input Bus
|
||||
*
|
||||
* Copyright(c) 2011 Peng Huang <shawn.p.huang@gmail.com>
|
||||
- * Copyright(c) 2017 Takao Fujiwara <takao.fujiwara1@gmail.com>
|
||||
+ * Copyright(c) 2017-2020 Takao Fujiwara <takao.fujiwara1@gmail.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@@ -69,22 +69,22 @@ class Application {
|
||||
}
|
||||
|
||||
private void bus_name_acquired_cb(DBusConnection connection,
|
||||
- string sender_name,
|
||||
- string object_path,
|
||||
- string interface_name,
|
||||
- string signal_name,
|
||||
- Variant parameters) {
|
||||
+ string? sender_name,
|
||||
+ string object_path,
|
||||
+ string interface_name,
|
||||
+ string signal_name,
|
||||
+ Variant parameters) {
|
||||
debug("signal_name = %s", signal_name);
|
||||
m_panel = new Panel(m_bus);
|
||||
m_panel.load_settings();
|
||||
}
|
||||
|
||||
private void bus_name_lost_cb(DBusConnection connection,
|
||||
- string sender_name,
|
||||
- string object_path,
|
||||
- string interface_name,
|
||||
- string signal_name,
|
||||
- Variant parameters) {
|
||||
+ string? sender_name,
|
||||
+ string object_path,
|
||||
+ string interface_name,
|
||||
+ string signal_name,
|
||||
+ Variant parameters) {
|
||||
// "Destroy" dbus method was called before this callback is called.
|
||||
// "Destroy" dbus method -> ibus_service_destroy()
|
||||
// -> g_dbus_connection_unregister_object()
|
||||
diff --git a/ui/gtk3/extension.vala b/ui/gtk3/extension.vala
|
||||
index ea3cd4647..a6f2e8e6a 100644
|
||||
--- a/ui/gtk3/extension.vala
|
||||
+++ b/ui/gtk3/extension.vala
|
||||
@@ -3,7 +3,7 @@
|
||||
* ibus - The Input Bus
|
||||
*
|
||||
* Copyright(c) 2018 Peng Huang <shawn.p.huang@gmail.com>
|
||||
- * Copyright(c) 2018 Takao Fujiwara <takao.fujiwara1@gmail.com>
|
||||
+ * Copyright(c) 2018-2020 Takao Fujiwara <takao.fujiwara1@gmail.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@@ -67,22 +67,22 @@ class ExtensionGtk : Gtk.Application {
|
||||
|
||||
|
||||
private void bus_name_acquired_cb(DBusConnection connection,
|
||||
- string sender_name,
|
||||
- string object_path,
|
||||
- string interface_name,
|
||||
- string signal_name,
|
||||
- Variant parameters) {
|
||||
+ string? sender_name,
|
||||
+ string object_path,
|
||||
+ string interface_name,
|
||||
+ string signal_name,
|
||||
+ Variant parameters) {
|
||||
debug("signal_name = %s", signal_name);
|
||||
m_panel = new PanelBinding(m_bus, this);
|
||||
m_panel.load_settings();
|
||||
}
|
||||
|
||||
private void bus_name_lost_cb(DBusConnection connection,
|
||||
- string sender_name,
|
||||
- string object_path,
|
||||
- string interface_name,
|
||||
- string signal_name,
|
||||
- Variant parameters) {
|
||||
+ string? sender_name,
|
||||
+ string object_path,
|
||||
+ string interface_name,
|
||||
+ string signal_name,
|
||||
+ Variant parameters) {
|
||||
// "Destroy" dbus method was called before this callback is called.
|
||||
// "Destroy" dbus method -> ibus_service_destroy()
|
||||
// -> g_dbus_connection_unregister_object()
|
Loading…
Reference in New Issue
Block a user