diff --git a/python-python-ptrace.changes b/python-python-ptrace.changes index 1a530b7..8e1516e 100644 --- a/python-python-ptrace.changes +++ b/python-python-ptrace.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 19 07:10:02 UTC 2017 - mimi.vx@gmail.com + +- add test_strace.patch - fixes build + ------------------------------------------------------------------- Wed Jun 28 05:58:20 UTC 2017 - jengelh@inai.de diff --git a/python-python-ptrace.spec b/python-python-ptrace.spec index 9d187e5..d81575a 100644 --- a/python-python-ptrace.spec +++ b/python-python-ptrace.spec @@ -26,6 +26,7 @@ License: GPL-2.0 Group: Development/Languages/Python Url: http://python-ptrace.readthedocs.io/ Source: https://github.com/haypo/%{pkg_name}/archive/%{pkg_name}-%{version}.tar.gz +Patch0: test_strace.patch BuildRequires: %{python_module base} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} @@ -41,6 +42,7 @@ python-ptrace is a debugger using ptrace written in Python. %prep %setup -q -n %{pkg_name}-%{pkg_name}-%{version} +%patch0 -p1 sed -i 's/\x0D$//' doc/*.rst chmod 0644 examples/*.py diff --git a/test_strace.patch b/test_strace.patch new file mode 100644 index 0000000..9a92f4e --- /dev/null +++ b/test_strace.patch @@ -0,0 +1,22 @@ +From 5fdd17949add0234fe71c87112c6453a4617708a Mon Sep 17 00:00:00 2001 +From: Victor Stinner +Date: Mon, 18 Sep 2017 17:14:26 +0200 +Subject: [PATCH] Fix test_strace.test_open(): accept openat() + +--- + tests/test_strace.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_strace.py b/tests/test_strace.py +index 2c57c97..261a0ec 100755 +--- a/tests/test_strace.py ++++ b/tests/test_strace.py +@@ -61,7 +61,7 @@ def test_open(self): + else: + code = 'open(%r).close()' % __file__ + self.assert_syscall(code, +- br"^open\(.*test_strace\.pyc?', O_RDONLY(\|O_CLOEXEC)?") ++ br"^open(at)?\(.*test_strace\.pyc?', O_RDONLY(\|O_CLOEXEC)?") + + def test_chdir(self): + self.assert_syscall(