Hello community,

here is the log from the commit of package python-sherpa for openSUSE:Factory 
checked in at 2020-10-15 13:51:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sherpa (Old)
 and      /work/SRC/openSUSE:Factory/.python-sherpa.new.3486 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sherpa"

Thu Oct 15 13:51:17 2020 rev:6 rq:841871 version:4.12.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sherpa/python-sherpa.changes      
2020-09-15 16:28:02.618582627 +0200
+++ /work/SRC/openSUSE:Factory/.python-sherpa.new.3486/python-sherpa.changes    
2020-10-15 13:51:33.637328488 +0200
@@ -1,0 +2,6 @@
+Wed Oct 14 13:39:10 UTC 2020 - Guillaume GARDET <guillaume.gar...@opensuse.org>
+
+- Fix aarch64 build and test:
+  * sherpa-fix-aarch64.patch
+
+-------------------------------------------------------------------

New:
----
  sherpa-fix-aarch64.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-sherpa.spec ++++++
--- /var/tmp/diff_new_pack.owM8su/_old  2020-10-15 13:51:38.325330449 +0200
+++ /var/tmp/diff_new_pack.owM8su/_new  2020-10-15 13:51:38.329330451 +0200
@@ -26,6 +26,8 @@
 URL:            https://github.com/sherpa/sherpa/
 Source:         
https://github.com/sherpa/sherpa/archive/%{version}.tar.gz#/sherpa-%{version}.tar.gz
 Patch1:         reproducible.patch
+# PATCH-FIX-UPSTREAM - https://github.com/sherpa/sherpa/issues/970
+Patch2:         sherpa-fix-aarch64.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module numpy-devel}
 BuildRequires:  %{python_module setuptools}

++++++ sherpa-fix-aarch64.patch ++++++
diff -purN sherpa-4.12.1.orig/sherpa/utils/src/cephes/mconf.h 
sherpa-4.12.1/sherpa/utils/src/cephes/mconf.h
--- sherpa-4.12.1.orig/sherpa/utils/src/cephes/mconf.h  2020-06-26 
20:27:19.000000000 +0200
+++ sherpa-4.12.1/sherpa/utils/src/cephes/mconf.h       2020-10-14 
14:44:53.565068804 +0200
@@ -173,6 +173,10 @@ typedef struct
 /* Define to support tiny denormal numbers, else undefine. */
 #define DENORMAL 1
 
+/* https://github.com/sherpa/sherpa/issues/970 */
+#define NOINFINITIES
+#define NONANS
+
 /* Define to ask for infinity support, else undefine. */
 #define INFINITIES 1
 #ifdef NOINFINITIES
--- sherpa-4.12.1.orig/sherpa/tests/test_fit_unit.py    2020-06-26 
20:27:19.000000000 +0200
+++ sherpa-4.12.1/sherpa/tests/test_fit_unit.py 2020-10-14 15:08:34.798995079 
+0200
@@ -1867,7 +1867,7 @@ def test_fit_single(stat, usestat, usesy
     assert fit.method.name == 'levmar'
     fr = fit.fit()
     assert fr.succeeded
-    assert_almost_equal(fr.statval, finalstat)
+    assert fr.statval == pytest.approx(finalstat, rel=7e-5)
 
 
 @pytest.mark.parametrize("stat,usestat,usesys,finalstat", [

Reply via email to