ibus/ibus-missing-include.patch
Hillwood Yang 6fbec4a187 Accepting request 917700 from home:predivan:branches:M17N
- Refresh ibus-socket-name-compatibility.patch
- Add ibus-missing-include.patch to fix build on Leap
- Add ibus-fix-wrong-cursor-location.patch
   (based on 936a0e76df.patch)
   (gh#ibus/ibus#2337)
- Drop ibus-python-install-dir.patch
  Two reasons: it's for, disabled in .spec, python2, and patch forces
  the re-generation of configure, which requires aclocal-1.16,
  unavailable on Leap-15.3, and that breaks the build.

OBS-URL: https://build.opensuse.org/request/show/917700
OBS-URL: https://build.opensuse.org/package/show/M17N/ibus?expand=0&rev=256
2021-09-09 14:12:11 +00:00

89 lines
2.8 KiB
Diff

diff -Naur ibus-1.5.25/conf/dconf/main.c ibus-1.5.25.new/conf/dconf/main.c
--- ibus-1.5.25/conf/dconf/main.c 2021-08-20 02:48:40.000000000 +0200
+++ ibus-1.5.25.new/conf/dconf/main.c 2021-09-08 13:53:17.833396607 +0200
@@ -21,6 +21,7 @@
* USA
*/
+#include <errno.h>
#include <ibus.h>
#include <stdlib.h>
#include <locale.h>
diff -Naur ibus-1.5.25/conf/memconf/main.c ibus-1.5.25.new/conf/memconf/main.c
--- ibus-1.5.25/conf/memconf/main.c 2021-08-20 02:48:40.000000000 +0200
+++ ibus-1.5.25.new/conf/memconf/main.c 2021-09-08 13:53:43.513361844 +0200
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
* USA
*/
+#include <errno.h>
#include <ibus.h>
#include <stdlib.h>
#include <locale.h>
diff -Naur ibus-1.5.25/portal/portal.c ibus-1.5.25.new/portal/portal.c
--- ibus-1.5.25/portal/portal.c 2021-08-20 02:48:40.000000000 +0200
+++ ibus-1.5.25.new/portal/portal.c 2021-09-08 14:07:36.300242490 +0200
@@ -30,6 +30,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <errno.h>
#include "ibus-portal-dbus.h"
diff -Naur ibus-1.5.25/src/ibuscomposetable.c ibus-1.5.25.new/src/ibuscomposetable.c
--- ibus-1.5.25/src/ibuscomposetable.c 2021-08-20 02:48:40.000000000 +0200
+++ ibus-1.5.25.new/src/ibuscomposetable.c 2021-09-08 13:15:25.184529800 +0200
@@ -19,6 +19,7 @@
* USA
*/
+#include <errno.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <stdlib.h>
diff -Naur ibus-1.5.25/src/ibusemoji.c ibus-1.5.25.new/src/ibusemoji.c
--- ibus-1.5.25/src/ibusemoji.c 2021-08-20 02:48:40.000000000 +0200
+++ ibus-1.5.25.new/src/ibusemoji.c 2021-09-08 13:22:14.227971403 +0200
@@ -23,6 +23,7 @@
#include <config.h>
#endif
+#include <errno.h>
#include <glib.h>
#include <glib/gstdio.h>
#include "ibusemoji.h"
diff -Naur ibus-1.5.25/src/ibusregistry.c ibus-1.5.25.new/src/ibusregistry.c
--- ibus-1.5.25/src/ibusregistry.c 2021-08-20 02:48:40.000000000 +0200
+++ ibus-1.5.25.new/src/ibusregistry.c 2021-09-08 13:25:08.191728353 +0200
@@ -23,6 +23,7 @@
#include <gio/gio.h>
#include <glib/gstdio.h>
#include <string.h>
+#include <errno.h>
#include "ibusinternal.h"
#include "ibusmarshalers.h"
diff -Naur ibus-1.5.25/src/ibusshare.c ibus-1.5.25.new/src/ibusshare.c
--- ibus-1.5.25/src/ibusshare.c 2021-08-20 02:48:40.000000000 +0200
+++ ibus-1.5.25.new/src/ibusshare.c 2021-09-08 13:29:17.527380024 +0200
@@ -32,6 +32,7 @@
#include <stdio.h>
#include <string.h>
#include <ibus.h>
+#include <errno.h>
static gchar *_display = NULL;
diff -Naur ibus-1.5.25/src/ibusunicode.c ibus-1.5.25.new/src/ibusunicode.c
--- ibus-1.5.25/src/ibusunicode.c 2021-08-20 02:48:40.000000000 +0200
+++ ibus-1.5.25.new/src/ibusunicode.c 2021-09-08 13:32:06.475144580 +0200
@@ -23,6 +23,7 @@
#include <config.h>
#endif
+#include <errno.h>
#include <glib.h>
#include <glib/gstdio.h>
#include "ibusinternal.h"