[packages/blender] fix build with gcc >= 13

atler atler at pld-linux.org
Tue Jul 4 13:41:31 CEST 2023


commit b47b8babe7bb0dc8e754ba2b6231f74978ce0fc4
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Jul 4 12:45:25 2023 +0200

    fix build with gcc >= 13

 blender.spec |  2 ++
 gcc13.patch  | 10 ++++++++++
 2 files changed, 12 insertions(+)
---
diff --git a/blender.spec b/blender.spec
index b73720a..3cda979 100644
--- a/blender.spec
+++ b/blender.spec
@@ -13,6 +13,7 @@ Source0:	https://download.blender.org/source/%{name}-%{version}.tar.xz
 Patch0:		%{name}-2.76-droid.patch
 Patch1:		format-security.patch
 Patch2:		boost1.81.patch
+Patch3:		gcc13.patch
 URL:		https://www.blender.org/
 BuildRequires:	OpenAL-devel
 BuildRequires:	OpenColorIO-devel
@@ -78,6 +79,7 @@ Blender to darmowy i w pełni funkcjonalny pakiet do tworzenia animacji
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python3}\1,' -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \
       release/scripts/addons/io_curve_svg/svg_util_test.py \
diff --git a/gcc13.patch b/gcc13.patch
new file mode 100644
index 0000000..cecf2ab
--- /dev/null
+++ b/gcc13.patch
@@ -0,0 +1,10 @@
+--- blender-3.1.0/extern/quadriflow/src/loader.cpp.orig	2022-01-28 14:02:15.000000000 +0100
++++ blender-3.1.0/extern/quadriflow/src/loader.cpp	2023-07-04 12:21:36.066850148 +0200
+@@ -8,6 +8,7 @@
+ 
+ #include "loader.hpp"
+ 
++#include <cstdint>
+ #include <fstream>
+ #include <unordered_map>
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/blender.git/commitdiff/fcdd8f699b02e21459056c826716fe1b21047039



More information about the pld-cvs-commit mailing list