[pyicu] fix build with icu 53.1

David Tardon dtardon at fedoraproject.org
Wed Aug 27 13:56:53 UTC 2014


commit 2506b76bbe2d9e4079c729328bb102f70deb0c6e
Author: David Tardon <dtardon at redhat.com>
Date:   Wed Aug 27 15:28:40 2014 +0200

    fix build with icu 53.1

 0001-fix-build-with-icu-53.1.patch |   24 ++++++++++++++++++++++++
 pyicu.spec                         |    4 ++++
 2 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/0001-fix-build-with-icu-53.1.patch b/0001-fix-build-with-icu-53.1.patch
new file mode 100644
index 0000000..68ce7aa
--- /dev/null
+++ b/0001-fix-build-with-icu-53.1.patch
@@ -0,0 +1,24 @@
+From 761c64927512d40858bb1d8b24cc5331b95e9ceb Mon Sep 17 00:00:00 2001
+From: David Tardon <dtardon at redhat.com>
+Date: Wed, 27 Aug 2014 15:27:53 +0200
+Subject: [PATCH] fix build with icu 53.1
+
+---
+ common.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/common.h b/common.h
+index 2ea50e4..88c99fb 100644
+--- a/common.h
++++ b/common.h
+@@ -129,6 +129,7 @@ typedef intintobjargproc ssizessizeobjargproc;
+ #include <unicode/regex.h>
+ #include <unicode/normlzr.h>
+ #include <unicode/search.h>
++#include <unicode/sortkey.h>
+ #include <unicode/stsearch.h>
+ 
+ #define VERSION_HEX(major, minor, patch) \
+-- 
+1.9.3
+
diff --git a/pyicu.spec b/pyicu.spec
index bfa0d2d..97c42c3 100644
--- a/pyicu.spec
+++ b/pyicu.spec
@@ -19,6 +19,8 @@ BuildRequires:	libicu
 BuildRequires:	libicu-devel
 BuildRequires:	gcc-c++
 
+Patch0: 0001-fix-build-with-icu-53.1.patch
+
 %description
 PyICU is Python extension wrapping IBM's International Components 
 for Unicode C++ library (ICU). ICU is a mature, widely used set of 
@@ -34,6 +36,8 @@ Summary: Python3 extension wrapping IBM's ICU C++ libraries
 %prep
 %setup -q -n %{realname}-%{version}
 
+%patch0 -p1
+
 rm -rf %{py3dir}
 cp -a . %{py3dir}
 


More information about the scm-commits mailing list