Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package arpack-ng for openSUSE:Factory 
checked in at 2022-02-05 23:23:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/arpack-ng (Old)
 and      /work/SRC/openSUSE:Factory/.arpack-ng.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "arpack-ng"

Sat Feb  5 23:23:10 2022 rev:23 rq:951717 version:3.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/arpack-ng/arpack-ng.changes      2021-11-25 
23:05:55.481240815 +0100
+++ /work/SRC/openSUSE:Factory/.arpack-ng.new.1898/arpack-ng.changes    
2022-02-05 23:23:46.343682899 +0100
@@ -1,0 +2,6 @@
+Wed Feb  2 00:38:08 UTC 2022 - Stefan Br??ns <stefan.bru...@rwth-aachen.de>
+
+- Add fix_tautological_compare_321.patch
+- Apply memory constraints also on ppc64/ppc64le
+
+-------------------------------------------------------------------

New:
----
  fix_tautological_compare_321.patch

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

Other differences:
------------------
++++++ arpack-ng.spec ++++++
--- /var/tmp/diff_new_pack.TywtLJ/_old  2022-02-05 23:23:46.907679041 +0100
+++ /var/tmp/diff_new_pack.TywtLJ/_new  2022-02-05 23:23:46.911679014 +0100
@@ -1,7 +1,7 @@
 #
 # spec file
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -117,6 +117,8 @@
 Patch0:         arpack-ng-python-module-installdir.patch
 # PATCH-FIX-UPSTREAM -- Fix mixup of relative and absolute libdir in pkgconfig 
files
 Patch1:         Use-CMAKE_INSTALL_FULL_-dir.patch
+# PATCH-FIX-UPSTREAM
+Patch2:         fix_tautological_compare_321.patch
 %if %{with mpi}
 BuildRequires:  %{mpi_family}%{?mpi_ext}-devel
 %endif

++++++ _constraints ++++++
--- /var/tmp/diff_new_pack.TywtLJ/_old  2022-02-05 23:23:46.943678795 +0100
+++ /var/tmp/diff_new_pack.TywtLJ/_new  2022-02-05 23:23:46.947678768 +0100
@@ -1,11 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <constraints>
-  <!-- Only for x86_64, aarch64, riscv64 where pyarpack is built -->
+  <!-- Only on 64bit archs where pyarpack is built -->
   <overwrite>
     <conditions>
-      <arch>x86_64</arch>
       <arch>aarch64</arch>
+      <arch>ppc64</arch>
+      <arch>ppc64le</arch>
       <arch>riscv64</arch>
+      <arch>x86_64</arch>
       <package>arpack-ng:serial</package>
     </conditions>
     <hardware>

++++++ fix_tautological_compare_321.patch ++++++
>From 5b3309d3b2dbfd773e8cf698fe632b715082e544 Mon Sep 17 00:00:00 2001
From: Franck HOUSSEN <fghous...@users.noreply.github.com>
Date: Sun, 3 Oct 2021 19:43:00 +0200
Subject: [PATCH 1/2] [BUG FIX] arpackmm: Cut-off in case previous run used
 different nbDim.

---
 CHANGES                                 | 2 ++
 EXAMPLES/MATRIX_MARKET/arpackSolver.hpp | 6 +++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/EXAMPLES/MATRIX_MARKET/arpackSolver.hpp 
b/EXAMPLES/MATRIX_MARKET/arpackSolver.hpp
index cec79a64..dac9a08d 100644
--- a/EXAMPLES/MATRIX_MARKET/arpackSolver.hpp
+++ b/EXAMPLES/MATRIX_MARKET/arpackSolver.hpp
@@ -659,7 +659,11 @@ class arpackSolver {
       if (restartFromFile) {
         ifstream ifs(fileName.c_str());
         if (ifs.is_open()) {
-          a_int nbCV = 1; if (readNbCV) {ifs >> nbCV; if (nbCV < nbCV) nbCV = 
nbCV;}
+          a_int nbCV = 1;
+          if (readNbCV) {
+            ifs >> nbCV;
+            if (nbCV < nbDim) nbCV = nbDim; // Cut-off in case previous run 
used different nbDim.
+          }
           for (a_int n = 0; rv && n < nbDim*nbCV; n++) ifs >> rv[n];
           if (verbose >= 1) {
             cout << endl << "arpackSolver:" << endl;

>From 2764848f0a72e30d5050e641405f7ec9d8eb6706 Mon Sep 17 00:00:00 2001
From: Franck HOUSSEN <fghous...@users.noreply.github.com>
Date: Sun, 3 Oct 2021 19:43:47 +0200
Subject: [PATCH 2/2] [BUG FIX] arpackmm: command line sanity checks.

---
 CHANGES                             | 2 ++
 EXAMPLES/MATRIX_MARKET/arpackmm.cpp | 7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/EXAMPLES/MATRIX_MARKET/arpackmm.cpp 
b/EXAMPLES/MATRIX_MARKET/arpackmm.cpp
index 8865bd8a..e2451bc3 100644
--- a/EXAMPLES/MATRIX_MARKET/arpackmm.cpp
+++ b/EXAMPLES/MATRIX_MARKET/arpackmm.cpp
@@ -316,6 +316,13 @@ class options {
       }
     }
 
+    // Sanity checks.
+
+    if (!stdPb && fileB.empty()) {
+      cerr << "Error: generalized problem without B matrix" << endl;
+      return usage();
+    }
+
     return 0;
   };
 

Reply via email to