[packages/brltty] - fix python binding build error: Bindings/Python/brlapi.pyx:500:18: Syntax error in simple statem

hawk hawk at pld-linux.org
Thu Jun 20 09:11:14 CEST 2013


commit 9c5b0c32668ea5c74e018cfc27564a7780416407
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Thu Jun 20 07:37:21 2013 +0000

    - fix python binding build error:
      Bindings/Python/brlapi.pyx:500:18: Syntax error in simple statement list

 brltty-python.patch | 11 +++++++++++
 brltty.spec         |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/brltty.spec b/brltty.spec
index 589d983..f9121db 100644
--- a/brltty.spec
+++ b/brltty.spec
@@ -27,7 +27,7 @@ Summary:	Braille display driver for Linux/Unix
 Summary(pl.UTF-8):	Sterownik do wyświetlaczy Braille'a
 Name:		brltty
 Version:	4.5
-Release:	2
+Release:	3
 Group:		Daemons
 License:	GPL v2+ (brltty and drivers), LGPL v2.1+ (APIs)
 Source0:	http://mielke.cc/brltty/releases/%{name}-%{version}.tar.gz
@@ -35,6 +35,7 @@ Source0:	http://mielke.cc/brltty/releases/%{name}-%{version}.tar.gz
 Patch0:		%{name}-stat.patch
 Patch1:		%{name}-java.patch
 Patch2:		%{name}-speech-dispatcher.patch
+Patch3:		%{name}-python.patch
 URL:		http://mielke.cc/brltty/
 BuildRequires:	alsa-lib-devel
 %{?with_at_spi:BuildRequires:	at-spi-devel}
@@ -234,6 +235,7 @@ Biblioteka BrlAPI dla Tcl.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__autoconf}
diff --git a/brltty-python.patch b/brltty-python.patch
new file mode 100644
index 0000000..b40b5d5
--- /dev/null
+++ b/brltty-python.patch
@@ -0,0 +1,11 @@
+--- brltty-4.5/Bindings/Python/brlapi.pyx	2013-06-20 07:32:09.000000000 +0000
++++ brltty-4.5/Bindings/Python/brlapi.pyx	2013-06-20 07:32:52.064634045 +0000
+@@ -497,7 +497,7 @@
+ 		if (type(dots) == unicode):
+ 			dots = dots.encode('latin1')
+ 		if (len(dots) < dispSize):
+-			dots = dots + b"".center(dispSize - len(dots), '\0')
++			dots = dots + "".center(dispSize - len(dots), '\0')
+ 		c_dots = dots
+ 		c_udots = <unsigned char *>c_dots
+ 		c_brlapi.Py_BEGIN_ALLOW_THREADS
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/brltty.git/commitdiff/9c5b0c32668ea5c74e018cfc27564a7780416407



More information about the pld-cvs-commit mailing list