From d7dc4474b4b8efb5a275f6b8f791760f902e5b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 31 Jul 2026 17:32:32 +0200 Subject: [PATCH] Replace removed numpy.tostring calls with numpy.tobytes - Fixes: rhbz#2507983 The upstream report already has a fixer, but upstream pins older numpy. --- python-uranium.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-uranium.spec b/python-uranium.spec index 9311327..3acff66 100644 --- a/python-uranium.spec +++ b/python-uranium.spec @@ -92,6 +92,11 @@ cp -a %{SOURCE6} %{SOURCE7} %{SOURCE8} . # fix compile-shaders sed -i 's|qsb |qsb-qt6 |g' scripts/compile-shaders +# https://github.com/Ultimaker/Cura/issues/21418 +# https://bugzilla.redhat.com/2507983 +sed -i 's/tostring/tobytes/g' UM/View/GL/OpenGL.py + + %build # there is no arch specific content, so we set LIB_SUFFIX to nothing # see https://github.com/Ultimaker/Uranium/commit/862a246bdfd7e25541b04a35406957612c6f4bb7