summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-11 06:55:14 +0100
committerSam James <sam@gentoo.org>2022-06-11 06:55:14 +0100
commit60a72592945b8287664100188338baebb5b54503 (patch)
tree07b8e903a6e3f26447ddf8c2acd302a33fd9f465 /dev-embedded
parentsys-kernel/kpatch: drop Werror (diff)
downloadgentoo-60a72592945b8287664100188338baebb5b54503.tar.gz
gentoo-60a72592945b8287664100188338baebb5b54503.tar.bz2
gentoo-60a72592945b8287664100188338baebb5b54503.zip
dev-embedded/stlink: drop Werror
Closes: https://bugs.gentoo.org/746770 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/stlink/files/stlink-1.7.0-no-werror.patch20
-rw-r--r--dev-embedded/stlink/stlink-1.7.0.ebuild6
2 files changed, 25 insertions, 1 deletions
diff --git a/dev-embedded/stlink/files/stlink-1.7.0-no-werror.patch b/dev-embedded/stlink/files/stlink-1.7.0-no-werror.patch
new file mode 100644
index 000000000000..79765787de52
--- /dev/null
+++ b/dev-embedded/stlink/files/stlink-1.7.0-no-werror.patch
@@ -0,0 +1,20 @@
+https://bugs.gentoo.org/746770
+--- a/cmake/modules/c_flags.cmake
++++ b/cmake/modules/c_flags.cmake
+@@ -50,5 +50,4 @@ if (${CMAKE_BUILD_TYPE} MATCHES "Debug")
+ add_cflag_if_supported("-O0")
+ else ()
+ add_cflag_if_supported("-O2")
+- add_cflag_if_supported("-Werror")
+ endif ()
+--- a/doc/dev/app-example/CMakeLists.txt
++++ b/doc/dev/app-example/CMakeLists.txt
+@@ -14,7 +14,7 @@ include_directories(${STLINK_INCLUDE_DIRS})
+ find_package(PkgConfig)
+ pkg_check_modules(STLINK REQUIRED stlink)
+
+-set(CMAKE_C_FLAGS " ${STLINK_CFLAGS_OTHER} -Wall -Werror")
++set(CMAKE_C_FLAGS " ${STLINK_CFLAGS_OTHER} -Wall")
+
+ add_executable(${PROJECT_NAME} ${SRCS})
+
diff --git a/dev-embedded/stlink/stlink-1.7.0.ebuild b/dev-embedded/stlink/stlink-1.7.0.ebuild
index e937418ed74f..6f33c17ee856 100644
--- a/dev-embedded/stlink/stlink-1.7.0.ebuild
+++ b/dev-embedded/stlink/stlink-1.7.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -24,6 +24,10 @@ RDEPEND="virtual/libusb:1
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.7.0-no-werror.patch
+)
+
src_configure() {
local mycmakeargs=(
-DSTLINK_UDEV_RULES_DIR="$(get_udevdir)"/rules.d