summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-08-15 21:14:32 +0100
committerSam James <sam@gentoo.org>2024-08-15 21:14:32 +0100
commite944a08d87d20f6459a69e4658f43f30bf1ce899 (patch)
treecdf1f031b40cbb36a3647c86e30b5fa8f3e83993 /sci-electronics
parentdev-libs/libixion: fix build w/ gcc-15 (diff)
downloadgentoo-e944a08d87d20f6459a69e4658f43f30bf1ce899.tar.gz
gentoo-e944a08d87d20f6459a69e4658f43f30bf1ce899.tar.bz2
gentoo-e944a08d87d20f6459a69e4658f43f30bf1ce899.zip
sci-electronics/kicad: fix build w/ gcc-15
Closes: https://bugs.gentoo.org/937872 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/kicad/files/kicad-8.0.3-gcc15-cstdint.patch25
-rw-r--r--sci-electronics/kicad/kicad-8.0.3.ebuild6
2 files changed, 30 insertions, 1 deletions
diff --git a/sci-electronics/kicad/files/kicad-8.0.3-gcc15-cstdint.patch b/sci-electronics/kicad/files/kicad-8.0.3-gcc15-cstdint.patch
new file mode 100644
index 000000000000..26fb3dd20c25
--- /dev/null
+++ b/sci-electronics/kicad/files/kicad-8.0.3-gcc15-cstdint.patch
@@ -0,0 +1,25 @@
+https://bugs.gentoo.org/937872
+https://gitlab.com/kicad/code/kicad/-/issues/18539
+https://gitlab.com/kicad/code/kicad/-/commit/0bf2d2ca32495dd40826a107e1be428a8e566a70
+
+From 0bf2d2ca32495dd40826a107e1be428a8e566a70 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Kacper=20S=C5=82omi=C5=84ski?=
+ <kacper.slominski72@gmail.com>
+Date: Tue, 13 Aug 2024 13:41:35 -0400
+Subject: [PATCH] Fix build issue with experimental GCC version 15.
+
+Fixes https://gitlab.com/kicad/code/kicad/-/issues/18539
+
+(cherry picked from commit e6bcc6d0a6a231f15326df0f0a2971c7aff8a384)
+--- a/include/kicad_curl/kicad_curl_easy.h
++++ b/include/kicad_curl/kicad_curl_easy.h
+@@ -38,6 +38,7 @@
+ #include <memory>
+ #include <ostream>
+ #include <string>
++#include <cstdint>
+
+ typedef void CURL;
+ struct curl_slist;
+--
+GitLab
diff --git a/sci-electronics/kicad/kicad-8.0.3.ebuild b/sci-electronics/kicad/kicad-8.0.3.ebuild
index 71443e470a09..3f805f18b507 100644
--- a/sci-electronics/kicad/kicad-8.0.3.ebuild
+++ b/sci-electronics/kicad/kicad-8.0.3.ebuild
@@ -80,11 +80,15 @@ fi
CHECKREQS_DISK_BUILD="1500M"
+PATCHES=(
+ "${FILESDIR}"/${PN}-8.0.3-gcc15-cstdint.patch
+)
+
pkg_setup() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
python-single-r1_pkg_setup
- setup-wxwidgets
+ #setup-wxwidgets
check-reqs_pkg_setup
}