Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package FreeCAD for openSUSE:Factory checked 
in at 2023-01-26 13:58:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/FreeCAD (Old)
 and      /work/SRC/openSUSE:Factory/.FreeCAD.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "FreeCAD"

Thu Jan 26 13:58:41 2023 rev:41 rq:1061091 version:0.20.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/FreeCAD/FreeCAD.changes  2023-01-01 
09:38:49.610768107 +0100
+++ /work/SRC/openSUSE:Factory/.FreeCAD.new.32243/FreeCAD.changes       
2023-01-26 14:13:36.461280964 +0100
@@ -1,0 +2,6 @@
+Thu Jan 26 00:01:42 UTC 2023 - Stefan Brüns <stefan.bru...@rwth-aachen.de>
+
+- Fix build after numpy 1.24 API changes, add
+  0001-FEM-femmesh-fix-AttributeError-module-numpy-has-no-a.patch
+
+-------------------------------------------------------------------

New:
----
  0001-FEM-femmesh-fix-AttributeError-module-numpy-has-no-a.patch

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

Other differences:
------------------
++++++ FreeCAD-test.spec ++++++
--- /var/tmp/diff_new_pack.uh70j8/_old  2023-01-26 14:13:37.869288538 +0100
+++ /var/tmp/diff_new_pack.uh70j8/_new  2023-01-26 14:13:37.873288559 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package FreeCAD-test
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed

++++++ FreeCAD.spec ++++++
--- /var/tmp/diff_new_pack.uh70j8/_old  2023-01-26 14:13:37.893288667 +0100
+++ /var/tmp/diff_new_pack.uh70j8/_new  2023-01-26 14:13:37.897288689 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package FreeCAD
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -48,6 +48,8 @@
 Patch5:         0001-FEM-add-missing-include.patch
 # PATCH-FIX-UPSTREAM
 Patch6:         0001-Revert-unused-parameter-warning-change.patch
+# PATCH-FIX-UPSTREAM
+Patch7:         0001-FEM-femmesh-fix-AttributeError-module-numpy-has-no-a.patch
 
 # Test suite fails on 32bit and I don't want to debug that anymore
 ExcludeArch:    %ix86 %arm ppc s390 s390x

++++++ 0001-FEM-femmesh-fix-AttributeError-module-numpy-has-no-a.patch ++++++
>From 876aab4b0e7b73dd16f96c92706a6a464ddd23df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bru...@rwth-aachen.de>
Date: Thu, 26 Jan 2023 00:55:12 +0100
Subject: [PATCH] FEM: femmesh: fix AttributeError: module 'numpy' has no
 attribute 'int'

---
 src/Mod/Fem/femmesh/meshtools.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Mod/Fem/femmesh/meshtools.py b/src/Mod/Fem/femmesh/meshtools.py
index dd8671b0ea..7693249bb9 100644
--- a/src/Mod/Fem/femmesh/meshtools.py
+++ b/src/Mod/Fem/femmesh/meshtools.py
@@ -485,7 +485,10 @@ def get_femelement_sets(
     # fem_objects = FreeCAD FEM document objects
     # get femelements for reference shapes of each obj.References
     count_femelements = 0
-    referenced_femelements = 
np.zeros((max(femelement_table.keys())+1,),dtype=np.int)
+    referenced_femelements = np.zeros(
+        (max(femelement_table.keys()) + 1,),
+        dtype=int
+    )
     has_remaining_femelements = None
     for fem_object_i, fem_object in enumerate(fem_objects):
         obj = fem_object["Object"]
-- 
2.38.1

Reply via email to