diff options
author | Mike Gilbert <floppym@gentoo.org> | 2017-05-12 14:48:44 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2017-05-12 14:49:09 -0400 |
commit | 3c0e9741ce1d2aece78b121af92c6c666095e27c (patch) | |
tree | af4b4cc0d110e08e34b419f0afc3ed42b84ae9ba /dev-python/cython | |
parent | x11-misc/vym: Old. (diff) | |
download | gentoo-3c0e9741ce1d2aece78b121af92c6c666095e27c.tar.gz gentoo-3c0e9741ce1d2aece78b121af92c6c666095e27c.tar.bz2 gentoo-3c0e9741ce1d2aece78b121af92c6c666095e27c.zip |
dev-python/cython: fix test failure on ARM
Bug: https://bugs.gentoo.org/618242
Package-Manager: Portage-2.3.5_p32, Repoman-2.3.2_p62
Diffstat (limited to 'dev-python/cython')
-rw-r--r-- | dev-python/cython/cython-0.25.2.ebuild | 4 | ||||
-rw-r--r-- | dev-python/cython/files/0.25.2-test-cpdef_enums-L-suffix.patch | 19 |
2 files changed, 23 insertions, 0 deletions
diff --git a/dev-python/cython/cython-0.25.2.ebuild b/dev-python/cython/cython-0.25.2.ebuild index af7401570748..56b6b180aed9 100644 --- a/dev-python/cython/cython-0.25.2.ebuild +++ b/dev-python/cython/cython-0.25.2.ebuild @@ -34,6 +34,10 @@ DEPEND="${RDEPEND} SITEFILE=50cython-gentoo.el S="${WORKDIR}/${MY_PN}-${PV%_*}" +PATCHES=( + "${FILESDIR}"/0.25.2-test-cpdef_enums-L-suffix.patch +) + python_compile() { if ! python_is_python3; then local CFLAGS="${CFLAGS}" diff --git a/dev-python/cython/files/0.25.2-test-cpdef_enums-L-suffix.patch b/dev-python/cython/files/0.25.2-test-cpdef_enums-L-suffix.patch new file mode 100644 index 000000000000..3a8b9d9d1e71 --- /dev/null +++ b/dev-python/cython/files/0.25.2-test-cpdef_enums-L-suffix.patch @@ -0,0 +1,19 @@ +From d92a718a26c9354fbf35f31a17de5c069865a447 Mon Sep 17 00:00:00 2001 +From: Robert Bradshaw <robertwb@gmail.com> +Date: Tue, 24 Jan 2017 16:57:00 -0800 +Subject: [PATCH] Normalize possible L suffix. + +--- + tests/run/cpdef_enums.pyx | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/run/cpdef_enums.pyx b/tests/run/cpdef_enums.pyx +index 167c762..c264ec5 100644 +--- a/tests/run/cpdef_enums.pyx ++++ b/tests/run/cpdef_enums.pyx +@@ -93,4 +93,4 @@ def verify_resolution_GH1533(): + 3 + """ + THREE = 100 +- return PyxEnum.THREE ++ return int(PyxEnum.THREE) |