commit:     f6aef9a48475f4cb7f3df463687dc9e78a6d2d50
Author:     Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Fri May  5 08:42:58 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May  5 09:04:35 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6aef9a4

media-gfx/freecad: fix build with gcc-13

Closes: https://bugs.gentoo.org/905451
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/30879
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...20.2-libE57Format-fix-compile-using-gcc13.patch | 24 ++++++++++++++++++++++
 media-gfx/freecad/freecad-0.20.2-r1.ebuild         |  1 +
 2 files changed, 25 insertions(+)

diff --git 
a/media-gfx/freecad/files/freecad-0.20.2-libE57Format-fix-compile-using-gcc13.patch
 
b/media-gfx/freecad/files/freecad-0.20.2-libE57Format-fix-compile-using-gcc13.patch
new file mode 100644
index 000000000000..c26c8db4e867
--- /dev/null
+++ 
b/media-gfx/freecad/files/freecad-0.20.2-libE57Format-fix-compile-using-gcc13.patch
@@ -0,0 +1,24 @@
+https://github.com/FreeCAD/FreeCAD/commit/f91ad00ed23e92c81fff2bd0073c662291efad32
+https://bugs.gentoo.org/905451
+
+From f91ad00ed23e92c81fff2bd0073c662291efad32 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= <adr...@suse.de>
+Date: Mon, 27 Mar 2023 11:45:20 +0200
+Subject: [PATCH 011/420] libE57Format: fix compile using gcc13
+
+Adding missing header file. Also submitted this upstream here:
+
+https://github.com/asmaloney/libE57Format/pull/243
+--- a/src/3rdParty/libE57Format/include/E57Format.h
++++ b/src/3rdParty/libE57Format/include/E57Format.h
+@@ -33,6 +33,7 @@
+ 
+ #include <cfloat>
+ #include <memory>
++#include <cstdint>
+ #include <vector>
+ 
+ #include "E57Exception.h"
+-- 
+2.40.1
+

diff --git a/media-gfx/freecad/freecad-0.20.2-r1.ebuild 
b/media-gfx/freecad/freecad-0.20.2-r1.ebuild
index 4099ed239e45..117cfb16b291 100644
--- a/media-gfx/freecad/freecad-0.20.2-r1.ebuild
+++ b/media-gfx/freecad/freecad-0.20.2-r1.ebuild
@@ -139,6 +139,7 @@ PATCHES=(
        
"${FILESDIR}"/${PN}-0.19.1-0001-Gentoo-specific-Remove-ccache-usage.patch
        
"${FILESDIR}"/${PN}-0.20.2-Netgen-add-headers-to-support-recent-Netgen.patch
        
"${FILESDIR}"/${PN}-0.20.2-Fixes-8206-FreeCAD-segfaults-being-run-with-paramete.patch
+       "${FILESDIR}"/${PN}-0.20.2-libE57Format-fix-compile-using-gcc13.patch
 )
 
 DOCS=( CODE_OF_CONDUCT.md ChangeLog.txt README.md )

Reply via email to