From 5608cb2d78c30e10cb61dfbdb055aabfef19e8ba8d48fbd2ca255afdd1ad9e65 Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Thu, 27 Aug 2015 13:01:22 +0000 Subject: [PATCH] Accepting request 327269 from home:Tnokon:branches:devel:languages:python tweaked spec file to fix tests/run/cpdef_extern_func.pyx test for SLE_11_SP3/SLE_11_SP4 which have an older gcc/g++ environment OBS-URL: https://build.opensuse.org/request/show/327269 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=63 --- python-Cython.changes | 10 ++++++++++ python-Cython.spec | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/python-Cython.changes b/python-Cython.changes index 843207c..befca02 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Aug 26 17:11:12 UTC 2015 - ted.nokonechny@uregina.ca + +- "mangle" tests/run/cpdef_extern_func.pyx to allow package to build + for SLE_11_SP3 and SLE_11_SP4. + * cpdef const char* strchr(const char *haystack, int needle); + does not seem to match any from /usr/include/string.h + and fails for cpp tests via python runtests.py -vv + * cpdef_extern_func.pyx was not present in 0.21.1 + ------------------------------------------------------------------- Wed Aug 19 15:23:19 UTC 2015 - bwiedemann@suse.com diff --git a/python-Cython.spec b/python-Cython.spec index 4ea89bf..343a791 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -92,6 +92,12 @@ if [ $1 -eq 0 ] ; then fi %check +%if 0%{?suse_version} && 0%{?suse_version} <= 1140 +sed -i.SLES11.SP4.bak -e 's/const char/char/' ./tests/run/cpdef_extern_func.pyx +#mv ./tests/run/cpdef_extern_func.pxd ./tests/run/cpdef_extern_func.pxd.TNT.txt +#mv ./tests/run/cpdef_extern_func.pyx ./tests/run/cpdef_extern_func.pyx.TNT.txt +#sleep 60 +%endif python runtests.py -vv %files