From ea2be3b0f57c6e89cdb91ae2807edf957d828592de7629a927b347cb97db5ada Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 17 May 2024 09:55:17 +0000 Subject: [PATCH 1/2] Accepting request 1174793 from home:michals - Add missing fcitx_client_close_ic and fcitx_client_enable_ic prototypes. OBS-URL: https://build.opensuse.org/request/show/1174793 OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=176 --- ...port-fcitx_client_enable_ic-fcitx_cl.patch | 34 +++++++++++++++++++ fcitx.changes | 5 +++ fcitx.spec | 4 ++- 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 fcitx-gclient-Export-fcitx_client_enable_ic-fcitx_cl.patch diff --git a/fcitx-gclient-Export-fcitx_client_enable_ic-fcitx_cl.patch b/fcitx-gclient-Export-fcitx_client_enable_ic-fcitx_cl.patch new file mode 100644 index 0000000..6eb1571 --- /dev/null +++ b/fcitx-gclient-Export-fcitx_client_enable_ic-fcitx_cl.patch @@ -0,0 +1,34 @@ +From 4f49f71a8b2c0852d3dfcd990d0b8bb61b1974c8 Mon Sep 17 00:00:00 2001 +From: Florian Weimer +Date: Thu, 15 Dec 2022 20:09:35 +0100 +Subject: [PATCH] fcitx-gclient: Export fcitx_client_enable_ic, + fcitx_client_close_ic (#521) + +Git-commit: 4f49f71a8b2c0852d3dfcd990d0b8bb61b1974c8 + +These functions are used from fcitx-fbterm. Adding function +prototypes to the installed header file seems to be the cleanest way +to ensure that fcitx-fbterm does not rely on implicit function +declarations (which are likely to result in errors with future +compilers by default). +--- + src/lib/fcitx-gclient/fcitxclient.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/lib/fcitx-gclient/fcitxclient.h b/src/lib/fcitx-gclient/fcitxclient.h +index 52f0c958..8942111c 100644 +--- a/src/lib/fcitx-gclient/fcitxclient.h ++++ b/src/lib/fcitx-gclient/fcitxclient.h +@@ -88,6 +88,9 @@ void fcitx_client_set_capacity(FcitxClient *self, guint flags); + + void fcitx_client_reset(FcitxClient *self); + ++void fcitx_client_enable_ic(FcitxClient *self); ++void fcitx_client_close_ic(FcitxClient *self); ++ + G_END_DECLS + + #endif // CLIENT_IM_H +-- +2.45.1 + diff --git a/fcitx.changes b/fcitx.changes index 9e6b513..77eb6ef 100644 --- a/fcitx.changes +++ b/fcitx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 16 19:27:05 UTC 2024 - Michal Suchanek + +- Add missing fcitx_client_close_ic and fcitx_client_enable_ic prototypes. + ------------------------------------------------------------------- Mon Feb 26 08:41:59 UTC 2024 - Dominique Leuenberger diff --git a/fcitx.spec b/fcitx.spec index 78c4b89..53e1479 100644 --- a/fcitx.spec +++ b/fcitx.spec @@ -1,7 +1,7 @@ # # spec file for package fcitx # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -41,6 +41,8 @@ Patch2: fcitx-autostart-check-INPUT_METHOD.patch # PATCH-FIX-OPENSUSE downgrade cmake requirement to 3.1 again Patch3: fcitx-cmake-3.1.patch Patch4: remote-module-use-safe-directory-for-socket-API-sock.patch +# PATCH-FIX-UPSTREAM Add missing function prototypes +Patch5: fcitx-gclient-Export-fcitx_client_enable_ic-fcitx_cl.patch BuildRequires: cairo-devel BuildRequires: cmake BuildRequires: dbus-1-devel From 3884aa402c8548082d118d9f85d87311fafc5a720ea5e95f7d1d5b16d9060513 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 17 May 2024 09:56:37 +0000 Subject: [PATCH 2/2] Fix changelog OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=177 --- fcitx.changes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fcitx.changes b/fcitx.changes index 77eb6ef..7188ba4 100644 --- a/fcitx.changes +++ b/fcitx.changes @@ -1,7 +1,8 @@ ------------------------------------------------------------------- Thu May 16 19:27:05 UTC 2024 - Michal Suchanek -- Add missing fcitx_client_close_ic and fcitx_client_enable_ic prototypes. +- Add missing fcitx_client_close_ic and fcitx_client_enable_ic prototypes: + fcitx-gclient-Export-fcitx_client_enable_ic-fcitx_cl.patch ------------------------------------------------------------------- Mon Feb 26 08:41:59 UTC 2024 - Dominique Leuenberger