[python-astropy] 02/02: Try to Fix Hurd FTBS

Ole Streicher olebole at moszumanska.debian.org
Sun Feb 1 13:50:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch debian
in repository python-astropy.

commit 9c83ffced275114613f77b822e65aa39bc3a6394
Author: Ole Streicher <olebole at debian.org>
Date:   Sun Feb 1 14:50:15 2015 +0100

    Try to Fix Hurd FTBS
---
 debian/patches/fix_hurd.patch | 13 +++++++++++++
 debian/patches/series         |  1 +
 2 files changed, 14 insertions(+)

diff --git a/debian/patches/fix_hurd.patch b/debian/patches/fix_hurd.patch
new file mode 100644
index 0000000..4468f44
--- /dev/null
+++ b/debian/patches/fix_hurd.patch
@@ -0,0 +1,13 @@
+Author: Ole Streicher <olebole at debian.org>
+Description: Catch import error due to lacking sem_open support on Hurd.
+--- a/astropy/io/ascii/ui.py
++++ b/astropy/io/ascii/ui.py
+@@ -156,7 +156,7 @@
+             fast_reader = get_reader(**new_kwargs)
+             try:
+                 return fast_reader.read(table)
+-            except (core.ParameterError, cparser.CParserError) as e:
++            except (core.ParameterError, cparser.CParserError, ImportError) as e:
+                 # special testing value to avoid falling back on the slow reader
+                 if fast_reader_param == 'force':
+                     raise e
diff --git a/debian/patches/series b/debian/patches/series
index 4bd52eb..5df32e7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ mark_known_failures.patch
 disable_helper.patch
 helper_compatibility.patch
 Remove_float128.patch
+fix_hurd.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/python-astropy.git



More information about the debian-science-commits mailing list