Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package octave-forge-parallel for 
openSUSE:Factory checked in at 2023-02-14 16:47:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/octave-forge-parallel (Old)
 and      /work/SRC/openSUSE:Factory/.octave-forge-parallel.new.27156 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "octave-forge-parallel"

Tue Feb 14 16:47:31 2023 rev:11 rq:1065646 version:4.0.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/octave-forge-parallel/octave-forge-parallel.changes  
    2021-03-29 18:22:06.114282164 +0200
+++ 
/work/SRC/openSUSE:Factory/.octave-forge-parallel.new.27156/octave-forge-parallel.changes
   2023-02-14 16:48:10.619418512 +0100
@@ -1,0 +2,7 @@
+Fri Feb 10 11:07:03 UTC 2023 - Markus Ebner <i...@ebner-markus.de>
+
+- Add patch 0001-Bug62349-fix-missing-num_processors.patch
+  Fixes loading the package in newer Octave versions
+  From: https://savannah.gnu.org/bugs/?62349
+
+-------------------------------------------------------------------

New:
----
  0001-Bug62349-fix-missing-num_processors.patch

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

Other differences:
------------------
++++++ octave-forge-parallel.spec ++++++
--- /var/tmp/diff_new_pack.fxma9j/_old  2023-02-14 16:48:11.043421016 +0100
+++ /var/tmp/diff_new_pack.fxma9j/_new  2023-02-14 16:48:11.047421039 +0100
@@ -25,6 +25,7 @@
 Group:          Productivity/Scientific/Math
 URL:            https://octave.sourceforge.io/%{octpkg}/index.html
 Source0:        
https://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
+Patch0:         0001-Bug62349-fix-missing-num_processors.patch
 BuildRequires:  gcc-c++
 BuildRequires:  gnutls-devel >= 3.4.0
 BuildRequires:  hdf5-devel
@@ -40,6 +41,7 @@
 
 %prep
 %setup -q -c %{name}-%{version}
+%patch0
 %octave_pkg_src
 
 %build

++++++ 0001-Bug62349-fix-missing-num_processors.patch ++++++
Files parallel-4.0.1/src/error-helpers.h and 
parallel-4.0.1.new/src/error-helpers.h differ
--- parallel-4.0.1/src/error-helpers.h  2021-03-17 05:03:09.000000000 +1100
+++ parallel-4.0.1.new/src/error-helpers.h      2022-02-14 21:24:32.664456607 
+1100
@@ -1,10 +1,10 @@
 /*
 
-Copyright (C) 2016-2018 Olaf Till <i7t...@t-online.de>
+Copyright (C) 2016-2019 Olaf Till <i7t...@t-online.de>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3 of the License, or
+the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
@@ -44,13 +44,6 @@
     try \
       { \
         code ; \
- \
-        if (error_state) \
-          { \
-            error (__VA_ARGS__); \
- \
-            return retval; \
-          } \
       } \
     catch (OCTAVE__EXECUTION_EXCEPTION& e) \
       { \
@@ -64,7 +57,9 @@
       } \
     catch (OCTAVE__EXECUTION_EXCEPTION& e) \
       { \
-        verror (e, __VA_ARGS__); \
+        _p_error (__VA_ARGS__); \
+ \
+        exit (1); \
       }
 #endif
 
@@ -77,13 +72,6 @@
     try \
       { \
         code ; \
- \
-        if (error_state) \
-          { \
-            _p_error (__VA_ARGS__); \
- \
-            exit (1); \
-          } \
       } \
     catch (OCTAVE__EXECUTION_EXCEPTION&) \
       { \
@@ -116,11 +104,6 @@
     try \
       { \
         code ; \
-        if (error_state) \
-          { \
-            error_state = 0; \
-            err = true; \
-          } \
       } \
     catch (OCTAVE__EXECUTION_EXCEPTION&) \
       { \
Files parallel-4.0.1/src/p-control.cc and parallel-4.0.1.new/src/p-control.cc 
differ
--- parallel-4.0.1/src/p-control.cc     2021-03-17 05:03:09.000000000 +1100
+++ parallel-4.0.1.new/src/p-control.cc 2022-02-14 21:53:16.406264410 +1100
@@ -286,7 +286,7 @@
         }
       else
         {
-          nproc_max = num_processors (NPROC_CURRENT);
+          nproc_max = octave_num_processors_wrapper (NPROC_CURRENT);
 
           gnulib_pollfds = gnulib_alloc_pollfds (nproc_max);
         }
Files parallel-4.0.1/src/parallel-gnutls.h and 
parallel-4.0.1.new/src/parallel-gnutls.h differ
--- parallel-4.0.1/src/parallel-gnutls.h        2021-03-17 05:03:09.000000000 
+1100
+++ parallel-4.0.1.new/src/parallel-gnutls.h    2022-02-14 21:53:10.983290233 
+1100
@@ -44,7 +44,7 @@
 
 #include <stdint.h>
 
-// We link against the gnulib num_processors() used by Octave. nproc.h
+// We link against the gnulib octave_num_processors_wrapper() used by Octave. 
nproc.h
 // used by Octave is not accessible. If the interface changes, this
 // will stop working.
 extern "C" {
@@ -58,7 +58,7 @@
 
 /* Return the total number of processors.  The result is guaranteed to
    be at least 1.  */
-extern unsigned long int num_processors (enum nproc_query query);
+extern unsigned long int octave_num_processors_wrapper (enum nproc_query 
query);
 }
 
 
Files parallel-4.0.1/src/pconnect.cc and parallel-4.0.1.new/src/pconnect.cc 
differ
--- parallel-4.0.1/src/pconnect.cc      2021-03-17 05:03:09.000000000 +1100
+++ parallel-4.0.1.new/src/pconnect.cc  2022-02-14 21:54:24.389940685 +1100
@@ -407,7 +407,7 @@
   network->insert_connection (conn, 0);
 
   // store number of processor cores available in client
-  conn->set_nproc (num_processors (NPROC_CURRENT));
+  conn->set_nproc (octave_num_processors_wrapper (NPROC_CURRENT));
 
   for (uint32_t i = 0; i < nhosts; i++)
     {
Files parallel-4.0.1/src/configure and parallel-4.0.1.new/src/configure differ
--- parallel-4.0.1/src/configure        2021-03-17 05:03:44.766737817 +1100
+++ parallel-4.0.1.new/src/configure    2022-02-14 21:24:32.667456592 +1100
@@ -23482,11 +23482,11 @@
 _ACEOF
 if ac_fn_cxx_try_compile "$LINENO"; then :
 
-$as_echo "#define OCTAVE__INTERPRETER__SYMBOL_TABLE__ASSIGN 
octave::interpreter::the_interpreter () -> get_symbol_table ().assign" 
>>confdefs.h
+$as_echo "#define OCTAVE__INTERPRETER__SYMBOL_TABLE__ASSIGN 
octave::interpreter::the_interpreter () -> assign" >>confdefs.h
 
 
-     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 
octave::interpreter::the_interpreter () -> get_symbol_table ().assign" >&5
-$as_echo "octave::interpreter::the_interpreter () -> get_symbol_table 
().assign" >&6; }
+     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 
octave::interpreter::the_interpreter () -> assign" >&5
+$as_echo "octave::interpreter::the_interpreter () -> assign" >&6; }
      echo '
 ' >> oct-alt-includes.h
 else
Files parallel-4.0.1/src/__octave_server__.cc and 
parallel-4.0.1.new/src/__octave_server__.cc differ
--- parallel-4.0.1/src/__octave_server__.cc     2021-03-17 05:03:09.000000000 
+1100
+++ parallel-4.0.1.new/src/__octave_server__.cc 2022-02-14 21:39:50.968098793 
+1100
@@ -317,7 +317,7 @@
 #endif // HAVE_LIBGNUTLS
 
   // determine own number of usable processor cores
-  uint32_t nproc = num_processors (NPROC_CURRENT);
+  uint32_t nproc = octave_num_processors_wrapper (NPROC_CURRENT);
 
   // The servers command stream will not be inserted into a
   // connection object.

Reply via email to