summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Smith <matthew@gentoo.org>2023-02-20 18:33:52 +0000
committerMatthew Smith <matthew@gentoo.org>2023-02-21 17:56:24 +0000
commit996b5c04c7f5fb478244ff8372db0af3eaa130bd (patch)
tree159cebcc8993560b52aa01f2c3e6c6ee5475bb07 /sci-electronics
parentsci-electronics/kicad: fix documentation install (diff)
downloadgentoo-996b5c04c7f5fb478244ff8372db0af3eaa130bd.tar.gz
gentoo-996b5c04c7f5fb478244ff8372db0af3eaa130bd.tar.bz2
gentoo-996b5c04c7f5fb478244ff8372db0af3eaa130bd.zip
sci-electronics/kicad: remove -Werror
Closes: https://bugs.gentoo.org/895014 Acked-by: Zoltan Puskas <zoltan@sinustrom.info> Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/kicad/files/kicad-7.0.0-werror.patch21
-rw-r--r--sci-electronics/kicad/kicad-7.0.0-r1.ebuild2
2 files changed, 23 insertions, 0 deletions
diff --git a/sci-electronics/kicad/files/kicad-7.0.0-werror.patch b/sci-electronics/kicad/files/kicad-7.0.0-werror.patch
new file mode 100644
index 000000000000..b5fa3b1ae15d
--- /dev/null
+++ b/sci-electronics/kicad/files/kicad-7.0.0-werror.patch
@@ -0,0 +1,21 @@
+From 04fc6081bd3d6575d00589f71150ab796778a9c9 Mon Sep 17 00:00:00 2001
+From: Matthew Smith <matthew@gentoo.org>
+Date: Mon, 20 Feb 2023 17:53:50 +0000
+Subject: [PATCH] build: Remove Werror flag from clipper2
+
+Bug: https://bugs.gentoo.org/895014
+
+--- a/thirdparty/clipper2/CMakeLists.txt
++++ b/thirdparty/clipper2/CMakeLists.txt
+@@ -27,7 +27,7 @@ target_compile_definitions(clipper2 PUBLIC USINGZ)
+ if (MSVC)
+ target_compile_options(clipper2 PRIVATE /W4 /WX)
+ else()
+- target_compile_options(clipper2 PRIVATE -Wall -Wextra -Wpedantic -Werror)
++ target_compile_options(clipper2 PRIVATE -Wall -Wextra -Wpedantic)
+ target_link_libraries(clipper2 PUBLIC -lm)
+ endif()
+
+--
+2.39.2
+
diff --git a/sci-electronics/kicad/kicad-7.0.0-r1.ebuild b/sci-electronics/kicad/kicad-7.0.0-r1.ebuild
index 6e1f702ce060..a6db98a4f37a 100644
--- a/sci-electronics/kicad/kicad-7.0.0-r1.ebuild
+++ b/sci-electronics/kicad/kicad-7.0.0-r1.ebuild
@@ -77,6 +77,8 @@ CHECKREQS_DISK_BUILD="900M"
PATCHES=(
# https://bugs.gentoo.org/895188
"${FILESDIR}"/${PN}-7.0.0-wxwidgets-version.patch
+
+ "${FILESDIR}"/${PN}-7.0.0-werror.patch
)
pkg_setup() {