[Fedora-i18n-bugs] [eekboard] Apply a patch to fix --disable-cspi build.

Daiki Ueno ueno at fedoraproject.org
Tue Apr 19 01:11:49 UTC 2011


commit dbaefc39314c45b19e1f044d3becb9c57b77b292
Author: Daiki Ueno <ueno at unixuser.org>
Date:   Tue Apr 19 10:11:29 2011 +0900

    Apply a patch to fix --disable-cspi build.

 eekboard-fix-disable-cspi.patch |   26 ++++++++++++++++++++++++++
 eekboard.spec                   |    2 ++
 2 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/eekboard-fix-disable-cspi.patch b/eekboard-fix-disable-cspi.patch
new file mode 100644
index 0000000..5c25181
--- /dev/null
+++ b/eekboard-fix-disable-cspi.patch
@@ -0,0 +1,26 @@
+From 871799df5092c5e2063ae405e9296f19d8df4f57 Mon Sep 17 00:00:00 2001
+From: Daiki Ueno <ueno at unixuser.org>
+Date: Tue, 19 Apr 2011 10:08:57 +0900
+Subject: [PATCH] Don't include cspi/spi.h if CSPI-1.0 is disabled.
+
+---
+ src/client-main.c |    2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/src/client-main.c b/src/client-main.c
+index 0091e27..8e4d5cf 100644
+--- a/src/client-main.c
++++ b/src/client-main.c
+@@ -20,7 +20,9 @@
+ #endif  /* HAVE_CONFIG_H */
+ 
+ #include <stdlib.h>
++#ifdef HAVE_CSPI
+ #include <cspi/spi.h>
++#endif  /* HAVE_CSPI */
+ #include <gtk/gtk.h>
+ #include <glib/gi18n.h>
+ #include <gconf/gconf-client.h>
+-- 
+1.7.4.4
+
diff --git a/eekboard.spec b/eekboard.spec
index 9665c6e..5dabe71 100644
--- a/eekboard.spec
+++ b/eekboard.spec
@@ -8,6 +8,7 @@ License:	GPLv3+
 URL:		http://ueno.github.com/eekboard/
 Source0:	http://github.com/downloads/ueno/eekboard/eekboard-%{version}.tar.gz
 Patch0:		eekboard-fix-desktop-exec.patch
+Patch1:		eekboard-fix-disable-cspi.patch
 BuildRequires:	libfakekey-devel
 BuildRequires:	libXtst-devel
 #BuildRequires:	clutter-gtk-devel
@@ -62,6 +63,7 @@ This package contains the Python language binding of eekboard client library.
 %prep
 %setup -q
 %patch0 -p1 -b .fix-desktop-exec
+%patch1 -p1 -b .fix-disable-cspi
 
 
 %build


More information about the i18n-bugs mailing list