Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package netgen for openSUSE:Factory checked 
in at 2026-03-26 21:10:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/netgen (Old)
 and      /work/SRC/openSUSE:Factory/.netgen.new.8177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "netgen"

Thu Mar 26 21:10:17 2026 rev:20 rq:1342834 version:6.2.2602

Changes:
--------
--- /work/SRC/openSUSE:Factory/netgen/netgen.changes    2025-11-25 
15:55:09.244316808 +0100
+++ /work/SRC/openSUSE:Factory/.netgen.new.8177/netgen.changes  2026-03-27 
06:45:08.779178657 +0100
@@ -1,0 +2,14 @@
+Thu Mar 26 00:28:05 UTC 2026 - Stefan BrĂ¼ns <[email protected]>
+
+- update to version 6.2.2406
+  * no changelog provided
+- Add:
+  * 0001-Fix-incorrect-py-keep_alive-syntax-for-def_property.patch
+- Rebase:
+  * 0001-Disable-backtrace-generation.patch
+  * 0001-Fix-invalid-string-access-in-BoundaryLayerTool.patch
+  * 0001-Include-filesystem-from-experimental-for-GCC-7.patch
+- Drop:
+  * 0001-Fix-ODR-violation-for-struct-class-Line.patch
+
+-------------------------------------------------------------------

Old:
----
  0001-Fix-ODR-violation-for-struct-class-Line.patch
  netgen-6.2.2406.tar.gz

New:
----
  0001-Fix-incorrect-py-keep_alive-syntax-for-def_property.patch
  netgen-6.2.2602.tar.gz

----------(Old B)----------
  Old:- Drop:
  * 0001-Fix-ODR-violation-for-struct-class-Line.patch
----------(Old E)----------

----------(New B)----------
  New:- Add:
  * 0001-Fix-incorrect-py-keep_alive-syntax-for-def_property.patch
- Rebase:
----------(New E)----------

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

Other differences:
------------------
++++++ netgen.spec ++++++
--- /var/tmp/diff_new_pack.Lm7tRq/_old  2026-03-27 06:45:10.835263527 +0100
+++ /var/tmp/diff_new_pack.Lm7tRq/_new  2026-03-27 06:45:10.859264518 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package netgen
 #
-# Copyright (c) 2025 SUSE LLC and contributors
+# Copyright (c) 2026 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
@@ -27,7 +27,7 @@
 %endif
 
 Name:           netgen
-Version:        6.2.2406
+Version:        6.2.2602
 Release:        0
 Summary:        Automatic 3D tetrahedral mesh generator
 License:        LGPL-2.1-only
@@ -47,8 +47,6 @@
 # PATCH-FIX-UPSTREAM
 Patch10:        0001-Fix-netgen-executable-and-library-RUNPATHs.patch
 # PATCH-FIX-OPENSUSE
-Patch11:        0001-Fix-ODR-violation-for-struct-class-Line.patch
-# PATCH-FIX-OPENSUSE
 Patch12:        0002-Add-missing-includes-for-std-string-std-cerr-fix-nam.patch
 # PATCH-FIX-UPSTREAM -- https://github.com/NGSolve/netgen/issues/200
 Patch13:        0001-Do-not-EXPORT-python-modules-as-CMake-targets.patch
@@ -56,6 +54,8 @@
 Patch14:        0001-Fix-static-initialization-order-for-UserFormatRegist.patch
 # PATCH-FIX-UPSTREAM -- https://github.com/NGSolve/netgen/issues/203
 Patch15:        0001-Fix-invalid-string-access-in-BoundaryLayerTool.patch
+# PATCH-FIX-OPENSUSE -- https://github.com/NGSolve/netgen/issues/238
+Patch16:        0001-Fix-incorrect-py-keep_alive-syntax-for-def_property.patch
 %if %{with opencascade}
 BuildRequires:  occt-devel
 BuildRequires:  (pkgconfig(catch2) >= 2.13.4 with pkgconfig(catch2) < 3)
@@ -162,6 +162,9 @@
 
 %build
 %global optflags %{optflags} -DPYBIND11_HAS_FILESYSTEM_IS_OPTIONAL=1
+%ifarch aarch64
+%global optflags %{optflags} -flax-vector-conversions
+%endif
 
 # Work around broken version detection
 echo "v%{version}-0-0" > ./version.txt
@@ -172,6 +175,7 @@
     -DOpenGL_GL_PREFERENCE=GLVND \
     -DUSE_SUPERBUILD=OFF \
     -DCMAKE_SHARED_LINKER_FLAGS="-flto=auto -Wl,--as-needed 
-Wl,--warn-unresolved-symbols -Wl,-z,now" \
+    -DNG_INSTALL_DIR_CMAKE=%{_libdir}/cmake/netgen \
     -DNG_INSTALL_DIR_INCLUDE=%{_includedir}/netgen \
     -DNG_INSTALL_DIR_LIB=%{_libdir}/netgen \
     -DCMAKE_SKIP_RPATH:BOOL=OFF \
@@ -236,7 +240,7 @@
 %files
 %license LICENSE
 %doc doc/*.pdf
-%{_bindir}/*
+%{_bindir}/netgen
 
 %files examples
 %{_datadir}/netgen
@@ -255,7 +259,7 @@
 %{python3_sitearch}/netgen_mesher-*.egg-info
 
 %files devel
-%dir %{_prefix}/lib/cmake
+%dir %{_libdir}/cmake
 %{_includedir}/netgen
-%{_prefix}/lib/cmake/netgen
+%{_libdir}/cmake/netgen
 

++++++ 0001-Disable-backtrace-generation.patch ++++++
--- /var/tmp/diff_new_pack.Lm7tRq/_old  2026-03-27 06:45:11.083273765 +0100
+++ /var/tmp/diff_new_pack.Lm7tRq/_new  2026-03-27 06:45:11.099274426 +0100
@@ -16,22 +16,22 @@
 index b89d721e..335e3411 100644
 --- a/libsrc/core/exception.cpp
 +++ b/libsrc/core/exception.cpp
-@@ -23,7 +23,7 @@ namespace ngcore
+@@ -12,7 +12,6 @@ namespace ngcore
+ #if !defined(__EMSCRIPTEN__) && ( \
+      (defined(__APPLE__) && defined(__GNUC__)) || \
+      (defined(__GNUC__) && defined(__GLIBC__)) )
+-#define NG_HAVE_BACKTRACE
+ #endif
  
- 
- // ********* STUFF FOR GETBACKTRACE ***************************
--#if defined __GNUC__ && !defined __EMSCRIPTEN__
-+#if 0
- 
- #include <execinfo.h>
- #include <string.h>
-@@ -232,6 +232,10 @@ namespace ngcore
+ namespace ngcore
+  
+@@ -303,6 +303,10 @@ namespace ngcore
  {
    std::string GetBackTrace()
    {
 +    static auto backtrace = getenv("NG_BACKTRACE");
 +    if(backtrace) {
-+      return std::string("Backtrace disabled, use a debugger");
++        return std::string("Backtrace disabled, use a debugger");
 +    }
      return std::string();
    }

++++++ 0001-Fix-incorrect-py-keep_alive-syntax-for-def_property.patch ++++++
>From f9c0bbcadb9254d4562cd872b2b79067bb35a9b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <[email protected]>
Date: Thu, 26 Mar 2026 02:21:59 +0100
Subject: [PATCH] Fix incorrect py::keep_alive syntax for def_property

The py::keep_alive must be wrapped in a py::cpp_function, otherwise
it will be ignored.

See https://github.com/pybind/pybind11/pull/5533 for details.
---
 libsrc/meshing/python_mesh.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp
index b6adbee..042356c 100644
--- a/libsrc/meshing/python_mesh.cpp
+++ b/libsrc/meshing/python_mesh.cpp
@@ -970,15 +970,15 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
             { sizeof(self.Points()[PointIndex::BASE]), sizeof(double) } )
            );
       })
-    .def_property_readonly("parentelements", [](Mesh & self) {
+    .def_property_readonly("parentelements", py::cpp_function([](Mesh & self) {
       // return FlatArray<int>(self.mlparentelement.Size(), 
&self.mlparentelement[0]);
       return FlatArray(self.mlparentelement);
-    }, py::keep_alive<0,1>())
-    .def_property_readonly("parentsurfaceelements", [](Mesh & self) {
+    }, py::keep_alive<0,1>()))
+    .def_property_readonly("parentsurfaceelements", py::cpp_function([](Mesh & 
self) {
       // return FlatArray<int>(self.mlparentsurfaceelement.Size(),
       // &self.mlparentsurfaceelement[0]);
       return FlatArray(self.mlparentsurfaceelement);      
-    }, py::keep_alive<0,1>())
+    }, py::keep_alive<0,1>()))
     .def_property_readonly("macromesh", [](Mesh & self) {
       auto coarsemesh = make_shared<Mesh>();
       *coarsemesh = *self.coarsemesh;
-- 
2.53.0


++++++ 0001-Fix-invalid-string-access-in-BoundaryLayerTool.patch ++++++
--- /var/tmp/diff_new_pack.Lm7tRq/_old  2026-03-27 06:45:11.167277232 +0100
+++ /var/tmp/diff_new_pack.Lm7tRq/_new  2026-03-27 06:45:11.199278554 +0100
@@ -13,16 +13,16 @@
 index 9db4601..bcfc8c2 100644
 --- a/libsrc/meshing/boundarylayer.cpp
 +++ b/libsrc/meshing/boundarylayer.cpp
-@@ -722,7 +722,8 @@ namespace netgen
-             new_fd.SetBCProperty(new_si);
-             mesh.AddFaceDescriptor(new_fd);
-             si_map[facei] = new_si;
--            mesh.SetBCName(new_si-1, fd.GetBCName());
-+            // AddFaceDescriptor may reallocate, fd is invalidated
-+            mesh.SetBCName(new_si-1, 
mesh.GetFaceDescriptor(facei).GetBCName());
-             face_done.SetBit(facei);
-           }
-       }
+@@ -397,7 +397,8 @@ namespace netgen
+           new_fd.SetBCProperty(new_si);
+           mesh.AddFaceDescriptor(new_fd);
+           si_map[facei] = new_si;
+-          mesh.SetBCName(new_si - 1, fd.GetBCName());
++          // AddFaceDescriptor may reallocate, fd is invalidated
++          mesh.SetBCName(new_si - 1, 
mesh.GetFaceDescriptor(facei).GetBCName());
+           face_done.SetBit(facei);
+         }
+     }
 -- 
 2.47.1
 

++++++ 0001-Include-filesystem-from-experimental-for-GCC-7.patch ++++++
--- /var/tmp/diff_new_pack.Lm7tRq/_old  2026-03-27 06:45:11.323283672 +0100
+++ /var/tmp/diff_new_pack.Lm7tRq/_new  2026-03-27 06:45:11.351284828 +0100
@@ -20,10 +20,13 @@
 index 39d7fd6..a85a414 100644
 --- a/libsrc/core/CMakeLists.txt
 +++ b/libsrc/core/CMakeLists.txt
-@@ -46,6 +46,9 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
-       target_compile_options(ngcore PUBLIC "-fabi-version=${cxx_abi_version}")
-     endif()
-   endif(USE_PYTHON)
+@@ -47,6 +47,12 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
+     message(STATUS "GNU C++ ABI version: ${cxx_abi_version}")
+     target_compile_options(ngcore PUBLIC "-fabi-version=${cxx_abi_version}")
+   endif()
++endif()
++
++if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
 +  if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8)
 +    target_link_libraries(ngcore PRIVATE stdc++fs)
 +  endif()

++++++ netgen-6.2.2406.tar.gz -> netgen-6.2.2602.tar.gz ++++++
++++ 43112 lines of diff (skipped)

Reply via email to