From 2cbe4d3d2f240b4d74b518b3137684d8b2b599f6 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Thu, 15 Oct 2020 16:19:31 +0200 Subject: sys-auth/yubico-piv-tool: remove -Werror from compiler flags Closes: https://bugs.gentoo.org/749165 Signed-off-by: Marek Szuba --- .../files/yubico-piv-tool-2.1.1-no-Werror.patch | 11 +++++++++++ sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r2.ebuild | 1 + 2 files changed, 12 insertions(+) create mode 100644 sys-auth/yubico-piv-tool/files/yubico-piv-tool-2.1.1-no-Werror.patch (limited to 'sys-auth/yubico-piv-tool') diff --git a/sys-auth/yubico-piv-tool/files/yubico-piv-tool-2.1.1-no-Werror.patch b/sys-auth/yubico-piv-tool/files/yubico-piv-tool-2.1.1-no-Werror.patch new file mode 100644 index 000000000000..a177395bc751 --- /dev/null +++ b/sys-auth/yubico-piv-tool/files/yubico-piv-tool-2.1.1-no-Werror.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -97,7 +97,7 @@ + find_package (PkgConfig REQUIRED) + + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") # -g -O2 +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wshadow") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wwrite-strings") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-prototypes") diff --git a/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r2.ebuild b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r2.ebuild index 1d8e72cde903..38068c17a3e7 100644 --- a/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r2.ebuild +++ b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r2.ebuild @@ -27,6 +27,7 @@ BDEPEND="dev-util/gengetopt PATCHES=( "${FILESDIR}"/${PN}-2.1.1-install-man-page.patch + "${FILESDIR}"/${PN}-2.1.1-no-Werror.patch "${FILESDIR}"/${PN}-2.1.1-tests-optional.patch "${FILESDIR}"/${PN}-2.1.1-ykcs11-threads.patch ) -- cgit v1.2.3-65-gdbad