]> git.pld-linux.org Git - packages/libfido2.git/commitdiff
- rel 3, disable warnnings to build using deprecated openssl api auto/th/libfido2-1.5.0-3
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 6 Oct 2021 20:33:45 +0000 (22:33 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 6 Oct 2021 20:33:45 +0000 (22:33 +0200)
libfido2.spec
no-Werror.patch [new file with mode: 0644]

index 4437d30e1efc8ec948fbc0a18f57a53c27ec5296..8bde2e0eb0e652f0305c088aa8b037d900bf5e82 100644 (file)
@@ -2,12 +2,13 @@ Summary:      Library functionality for FIDO 2.0, including communication with a devi
 Summary(pl.UTF-8):     Biblioteka funkcji dla FIDO 2.0, wraz z komunikacją z urządzeniem po USB
 Name:          libfido2
 Version:       1.5.0
-Release:       2
+Release:       3
 License:       BSD
 Group:         Libraries
 #Source0Download: https://github.com/Yubico/libfido2/releases
 Source0:       https://github.com/Yubico/libfido2/archive/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: 0ec7d4a249eec0982576c0dbf8f1ffad
+Patch0:                no-Werror.patch
 URL:           https://developers.yubico.com/libfido2/
 BuildRequires: cmake >= 3.0
 BuildRequires: hidapi-devel
@@ -54,6 +55,7 @@ Biblioteka statyczna FIDO2.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 install -d build
diff --git a/no-Werror.patch b/no-Werror.patch
new file mode 100644 (file)
index 0000000..2c9499d
--- /dev/null
@@ -0,0 +1,26 @@
+--- libfido2-1.5.0/CMakeLists.txt~     2020-09-01 09:17:43.000000000 +0200
++++ libfido2-1.5.0/CMakeLists.txt      2021-10-06 22:29:32.451948931 +0200
+@@ -128,13 +128,11 @@
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
+-      set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
+       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")
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wbad-function-cast")
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic")
+-      set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic-errors")
+       check_c_compiler_flag("-fstack-protector-all" HAVE_STACK_PROTECTOR_ALL)
+       if(HAVE_STACK_PROTECTOR_ALL)
+               set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector-all")
+@@ -280,9 +280,6 @@
+       add_definitions(-DHAVE_GETOPT)
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wcast-qual")
+ else()
+-      if(CMAKE_COMPILER_IS_GNUCC)
+-              set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-discarded-qualifiers")
+-      endif()
+       if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
+               set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-incompatible-pointer-types-discards-qualifiers")
+       endif()
This page took 0.169388 seconds and 4 git commands to generate.