Merged update from upstream sources
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/libfido2.git#41ddc5bf64a4ccbef3d25be956d2772bdd6a0e69
This commit is contained in:
parent
d816b1e0b9
commit
c668b7a42c
12
libfido2-gcc11.patch
Normal file
12
libfido2-gcc11.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index dbd5fa5..a5cdbbb 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -133,6 +133,7 @@ else()
|
||||
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} -Wno-stringop-overflow")
|
||||
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)
|
||||
@ -1,7 +1,7 @@
|
||||
Name: libfido2
|
||||
|
||||
Version: 1.5.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: FIDO2 library
|
||||
|
||||
License: BSD
|
||||
@ -13,6 +13,9 @@ Source2: gpgkey-7FBB6186957496D58C751AC20E777DD85755AA4A.gpg
|
||||
# Upstream patch for building on 32-bit platforms
|
||||
#
|
||||
Patch0001: 0001-add-two-casts-to-silence-warnings-on-32-bit.patch
|
||||
# Work around false positive from gcc-11 until its fixed upstream
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97631
|
||||
Patch0002: %{name}-gcc11.patch
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: hidapi-devel
|
||||
@ -88,6 +91,9 @@ find %{buildroot} -type f -name "*.a" -delete -print
|
||||
|
||||
|
||||
%changelog
|
||||
* Tuu Oct 29 2020 Jeff Law <law@redhat.com> 1.5.0-2
|
||||
- Work around false positive diagnostic in gcc-11
|
||||
|
||||
* Fri Sep 11 2020 Gary Buhrmaster <gary.buhrmaster@gmail.com> 1.5.0-1
|
||||
- 1.5.0 release (#1824326)
|
||||
- include upstream patch to fix 32-bit platform compile, reported at
|
||||
|
||||
Loading…
Reference in New Issue
Block a user