From 20a1fb2fac3e49ef9826a4b017cbc202ee3eceb79fd488d6ef49f55e296d2ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Tue, 19 Sep 2017 07:11:06 +0000 Subject: [PATCH 1/2] Accepting request 527221 from home:mimi_vx:branches:devel:languages:python - add test_strace.patch - fixes build OBS-URL: https://build.opensuse.org/request/show/527221 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-ptrace?expand=0&rev=7 --- python-python-ptrace.changes | 5 +++++ python-python-ptrace.spec | 2 ++ test_strace.patch | 22 ++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 test_strace.patch 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( From f7c0b0206d494a551f17ed582f3a69e35bb5b599df9cc245e8e2c1ea2978745b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Tue, 19 Sep 2017 11:05:16 +0000 Subject: [PATCH 2/2] Accepting request 527285 from home:mimi_vx:branches:devel:languages:python - update to 0.9.3 * Fix test_strace.py: tolerate the openat() syscall OBS-URL: https://build.opensuse.org/request/show/527285 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-ptrace?expand=0&rev=8 --- python-ptrace-0.9.2.tar.gz | 3 --- python-ptrace-0.9.3.tar.gz | 3 +++ python-python-ptrace.changes | 3 ++- python-python-ptrace.spec | 10 +++------- test_strace.patch | 22 ---------------------- 5 files changed, 8 insertions(+), 33 deletions(-) delete mode 100644 python-ptrace-0.9.2.tar.gz create mode 100644 python-ptrace-0.9.3.tar.gz delete mode 100644 test_strace.patch diff --git a/python-ptrace-0.9.2.tar.gz b/python-ptrace-0.9.2.tar.gz deleted file mode 100644 index 2537546..0000000 --- a/python-ptrace-0.9.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e4f6cac3a71d9e99e7ae96c4286899c7d45c7b9f01dbb6cef179a187b8432d3e -size 102376 diff --git a/python-ptrace-0.9.3.tar.gz b/python-ptrace-0.9.3.tar.gz new file mode 100644 index 0000000..3ff4002 --- /dev/null +++ b/python-ptrace-0.9.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53a60cf17de2550a212709023985ed0954e5445f6023b7b0f78e2f7fbef0ca19 +size 102420 diff --git a/python-python-ptrace.changes b/python-python-ptrace.changes index 8e1516e..2347d88 100644 --- a/python-python-ptrace.changes +++ b/python-python-ptrace.changes @@ -1,7 +1,8 @@ ------------------------------------------------------------------- Tue Sep 19 07:10:02 UTC 2017 - mimi.vx@gmail.com -- add test_strace.patch - fixes build +- update to 0.9.3 + * Fix test_strace.py: tolerate the openat() syscall ------------------------------------------------------------------- Wed Jun 28 05:58:20 UTC 2017 - jengelh@inai.de diff --git a/python-python-ptrace.spec b/python-python-ptrace.spec index d81575a..b23cdf5 100644 --- a/python-python-ptrace.spec +++ b/python-python-ptrace.spec @@ -19,14 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define pkg_name python-ptrace Name: python-%{pkg_name} -Version: 0.9.2 +Version: 0.9.3 Release: 0 Summary: Python binding for ptrace 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 +Source: https://github.com/haypo/%{pkg_name}/archive/%{version}.tar.gz#!./%{pkg_name}-%{version}.tar.gz BuildRequires: %{python_module base} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} @@ -34,15 +33,13 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives Requires(postun): update-alternatives -BuildRoot: %{_tmppath}/%{name}-%{version}-build %python_subpackages %description python-ptrace is a debugger using ptrace written in Python. %prep -%setup -q -n %{pkg_name}-%{pkg_name}-%{version} -%patch0 -p1 +%setup -q -n %{pkg_name}-%{version} sed -i 's/\x0D$//' doc/*.rst chmod 0644 examples/*.py @@ -69,7 +66,6 @@ chmod 0644 examples/*.py %python_uninstall_alternative gdb.py %files %{python_files} -%defattr(-,root,root,-) %doc COPYING %doc README.rst %doc doc/* examples diff --git a/test_strace.patch b/test_strace.patch deleted file mode 100644 index 9a92f4e..0000000 --- a/test_strace.patch +++ /dev/null @@ -1,22 +0,0 @@ -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(