From acfa6380e0a4b2c7306676297501731f33adb0eafa4d30db7db9eae341cbaeb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 2 Feb 2018 13:16:04 +0000 Subject: [PATCH 1/2] - Disable strict aliasing as reported by the rpm checks OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=36 --- python-pycurl.changes | 5 +++++ python-pycurl.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-pycurl.changes b/python-pycurl.changes index 316dcf2..d22cd0e 100644 --- a/python-pycurl.changes +++ b/python-pycurl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Feb 2 13:00:02 UTC 2018 - tchvatal@suse.com + +- Disable strict aliasing as reported by the rpm checks + ------------------------------------------------------------------- Tue Jan 30 16:01:27 UTC 2018 - vcizek@suse.com diff --git a/python-pycurl.spec b/python-pycurl.spec index 2fd23b0..565b58b 100644 --- a/python-pycurl.spec +++ b/python-pycurl.spec @@ -66,7 +66,7 @@ This package contains documentation and examples. %patch1 -p1 %build -export CFLAGS="%{optflags}" +export CFLAGS="%{optflags} -fno-strict-aliasing" %python_build --with-ssl %install From 35703003f8b72802ab227da91a0064f959f6596b6f6c7c88ba65ebbc62173b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 2 Feb 2018 13:17:41 +0000 Subject: [PATCH 2/2] - Disable tests on arm platforms as they are very flaky there, on multiple runs always different failures OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=37 --- python-pycurl.changes | 6 ++++++ python-pycurl.spec | 2 ++ 2 files changed, 8 insertions(+) diff --git a/python-pycurl.changes b/python-pycurl.changes index d22cd0e..6cf50de 100644 --- a/python-pycurl.changes +++ b/python-pycurl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Feb 2 13:17:14 UTC 2018 - tchvatal@suse.com + +- Disable tests on arm platforms as they are very flaky there, + on multiple runs always different failures + ------------------------------------------------------------------- Fri Feb 2 13:00:02 UTC 2018 - tchvatal@suse.com diff --git a/python-pycurl.spec b/python-pycurl.spec index 565b58b..1f5725d 100644 --- a/python-pycurl.spec +++ b/python-pycurl.spec @@ -74,6 +74,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" rm -rf %{buildroot}%{_datadir}/doc # Remove wrongly installed junk %check +%ifnarch %{arm} aarch64 # taken from "make test" because we only need to run nosetests, # not the rest of the mess in the upstream runner pushd tests/fake-curl/libcurl @@ -90,6 +91,7 @@ if ! pkg-config --variable=supported_protocols libcurl|grep -qw SCP; then fi %{python_expand PYTHONPATH=$(ls -d build/lib.*) \ nosetests-%$python_bin_suffix --with-flaky -a "$test_flags"} +%endif %files %{python_files} %defattr(-,root,root,-)