commit:     2cbe4d3d2f240b4d74b518b3137684d8b2b599f6
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 15 14:19:31 2020 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu Oct 15 14:19:31 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cbe4d3d

sys-auth/yubico-piv-tool: remove -Werror from compiler flags

Closes: https://bugs.gentoo.org/749165
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 .../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(+)

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 00000000000..a177395bc75
--- /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 1d8e72cde90..38068c17a3e 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
 )

Reply via email to