From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 76BA115817D for ; Sun, 9 Jun 2024 06:24:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3A6DE2B1A; Sun, 9 Jun 2024 06:24:20 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 92384E2B1A for ; Sun, 9 Jun 2024 06:24:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9B81833EB78 for ; Sun, 9 Jun 2024 06:24:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EC0381A4A for ; Sun, 9 Jun 2024 06:24:17 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1717914241.308ef54ee21bbaf93f9d3c17c2809c660f580942.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/librecad/files/, media-gfx/librecad/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/librecad/files/librecad-2.2.0-fix-missing-header.patch media-gfx/librecad/librecad-2.2.0.ebuild X-VCS-Directories: media-gfx/librecad/ media-gfx/librecad/files/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 308ef54ee21bbaf93f9d3c17c2809c660f580942 X-VCS-Branch: master Date: Sun, 9 Jun 2024 06:24:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9f0eeb12-12f3-432a-b42c-4e9596e0fdb0 X-Archives-Hash: 11d000cc421a2cb683c4d6d7d152fc59 commit: 308ef54ee21bbaf93f9d3c17c2809c660f580942 Author: Denis Pronin yandex ru> AuthorDate: Mon Feb 19 12:23:42 2024 +0000 Commit: Joonas Niilola gentoo 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 yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/35423 Signed-off-by: Joonas Niilola 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 +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 + +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 + #include + #ifdef __hpux + #include 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