commit: 308ef54ee21bbaf93f9d3c17c2809c660f580942 Author: Denis Pronin <dannftk <AT> yandex <DOT> ru> AuthorDate: Mon Feb 19 12:23:42 2024 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Sun Jun 9 06:24:01 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=308ef54e
media-gfx/librecad: add a patch to fix building with clang fix missing FILE declaration in lib/debug/rs_debug.h Closes: https://bugs.gentoo.org/919822 Signed-off-by: Denis Pronin <dannftk <AT> yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/35423 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> .../files/librecad-2.2.0-fix-missing-header.patch | 29 ++++++++++++++++++++++ media-gfx/librecad/librecad-2.2.0.ebuild | 6 ++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/media-gfx/librecad/files/librecad-2.2.0-fix-missing-header.patch b/media-gfx/librecad/files/librecad-2.2.0-fix-missing-header.patch new file mode 100644 index 000000000000..3caec03b011a --- /dev/null +++ b/media-gfx/librecad/files/librecad-2.2.0-fix-missing-header.patch @@ -0,0 +1,29 @@ +The patch is borrowed from upstream https://github.com/LibreCAD/LibreCAD + +https://github.com/LibreCAD/LibreCAD/commit/6e0f1556bbd554e528295f92597a80a109344607 + +https://bugs.gentoo.org/919822 + +commit 6e0f1556bbd554e528295f92597a80a109344607 +Author: Denis Pronin <[email protected]> +Date: Sun Jun 2 22:23:11 2024 +0300 + + fix compilation with clang and llvm's libcxx + + librecad/src/lib/debug/rs_debug.h requires cstdio to be included because of FILE + type being used + + Signed-off-by: Denis Pronin <[email protected]> + +diff --git a/librecad/src/lib/debug/rs_debug.h b/librecad/src/lib/debug/rs_debug.h +index 23918574..8950efcc 100644 +--- a/librecad/src/lib/debug/rs_debug.h ++++ b/librecad/src/lib/debug/rs_debug.h +@@ -28,6 +28,7 @@ + #ifndef RS_DEBUG_H + #define RS_DEBUG_H + ++#include <cstdio> + #include <iosfwd> + #ifdef __hpux + #include <sys/_size_t.h> diff --git a/media-gfx/librecad/librecad-2.2.0.ebuild b/media-gfx/librecad/librecad-2.2.0.ebuild index 092799ec110b..f86b8253e177 100644 --- a/media-gfx/librecad/librecad-2.2.0.ebuild +++ b/media-gfx/librecad/librecad-2.2.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -40,6 +40,10 @@ BDEPEND=" dev-qt/linguist-tools:5 " +PATCHES=( + "${FILESDIR}/${P}-fix-missing-header.patch" +) + src_prepare() { default
