Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package octave-forge-level-set for
openSUSE:Factory checked in at 2025-09-16 18:18:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/octave-forge-level-set (Old)
and /work/SRC/openSUSE:Factory/.octave-forge-level-set.new.1977 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "octave-forge-level-set"
Tue Sep 16 18:18:27 2025 rev:4 rq:1305039 version:0.3.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/octave-forge-level-set/octave-forge-level-set.changes
2021-03-29 18:22:09.534285666 +0200
+++
/work/SRC/openSUSE:Factory/.octave-forge-level-set.new.1977/octave-forge-level-set.changes
2025-09-16 18:19:00.724644918 +0200
@@ -1,0 +2,8 @@
+Sun Sep 14 12:43:11 UTC 2025 - Stefan Brüns <[email protected]>
+
+- Build binary part, add required autoconf/automake BuildRequires.
+- Fix building with Octave 9 and later, add
+ fix_octave9_compat.patch
+- Exclude tests requiring a graphical toolkit
+
+-------------------------------------------------------------------
New:
----
fix_octave9_compat.patch
----------(New B)----------
New:- Fix building with Octave 9 and later, add
fix_octave9_compat.patch
- Exclude tests requiring a graphical toolkit
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ octave-forge-level-set.spec ++++++
--- /var/tmp/diff_new_pack.GTuDwb/_old 2025-09-16 18:19:01.240666649 +0200
+++ /var/tmp/diff_new_pack.GTuDwb/_new 2025-09-16 18:19:01.244666817 +0200
@@ -1,7 +1,7 @@
#
# spec file for package octave-forge-level-set
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,14 +23,17 @@
Summary: Level-Set functions for Octave
License: GPL-3.0-or-later
Group: Productivity/Scientific/Math
-URL: http://octave.sourceforge.net
+URL: https://gnu-octave.github.io/packages/level-set/
Source0: %{octpkg}-%{version}.tar.xz
+Patch0:
https://file.savannah.gnu.org/file/octave9.patch?file_id=55685#/fix_octave9_compat.patch
+BuildRequires: autoconf
+BuildRequires: autoconf-archive
+BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: octave-devel
BuildRequires: octave-forge-parallel
Requires: octave-cli >= 4.0.0
Requires: octave-forge-parallel
-BuildArch: noarch
%description
Routines for calculating the time-evolution of the level-set equation
@@ -39,6 +42,8 @@
%prep
%setup -q -c %{name}-%{version}
+%patch -p1 -P0 -d %{octpkg}-%{version}
+(cd %{octpkg}-%{version}/src; aclocal; autoreconf -f )
%octave_pkg_src
%build
@@ -48,6 +53,8 @@
%octave_pkg_install
%check
+%global octskiptests ls_sign_colourmap
+echo "Skip tests requiring graphical toolkit: %{octskiptests}"
%octave_pkg_test
%post
@@ -58,4 +65,5 @@
%files
%{octpackages_dir}/%{octpkg}-%{version}
+%{octlib_dir}/%{octpkg}-%{version}
++++++ fix_octave9_compat.patch ++++++
Description: Fix FTBFS against Octave 9
Author: Rafael Laboissière <[email protected]>
Forwarded: no
Last-Update: 2024-02-11
--- octave-level-set-0.3.1~git.2019.04.13.orig/src/internal_init_narrowband.cpp
+++ octave-level-set-0.3.1~git.2019.04.13/src/internal_init_narrowband.cpp
@@ -109,7 +109,7 @@ DEFUN_DLD (__levelset_internal_init_narr
if (nPhi * myPhi < 0.0)
{
const double frac = getZeroFraction (myPhi, nPhi);
- assert (lo_ieee_finite (frac));
+ assert (lo_ieee_isfinite (frac));
/* If the neighbour value is infinite leading to a frac
of zero, this point is exactly on the boundary. Thus
--- octave-level-set-0.3.1~git.2019.04.13.orig/src/nbFromGeom.cpp
+++ octave-level-set-0.3.1~git.2019.04.13/src/nbFromGeom.cpp
@@ -104,7 +104,7 @@ DEFUN_DLD (__levelset_nbFromGeom, args,
EXTRACT_VERTEX (b, isptCoord, indB)
ColumnVector dir = b - a;
- const double len = xnorm (dir);
+ const double len = octave::xnorm (dir);
dir /= len;
/* Try to update all boundary element nodes. */
@@ -123,11 +123,11 @@ DEFUN_DLD (__levelset_nbFromGeom, args,
const double proj = dir.transpose () * (x - a);
double cur;
if (proj < 0.0)
- cur = xnorm (x - a);
+ cur = octave::xnorm (x - a);
else if (proj > len)
- cur = xnorm (x - b);
+ cur = octave::xnorm (x - b);
else
- cur = xnorm (x - (a + proj * dir));
+ cur = octave::xnorm (x - (a + proj * dir));
if (hasG)
{