[packages/libmongocrypt] - rel 2, disable Werror to allow building using deprecated openssl api
baggins
baggins at pld-linux.org
Wed Oct 6 22:20:54 CEST 2021
commit 2b2fd8313e22cefd91c21ea6cd8694334d1930e5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Oct 6 22:20:27 2021 +0200
- rel 2, disable Werror to allow building using deprecated openssl api
libmongocrypt.spec | 4 +++-
no-Werror.patch | 22 ++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/libmongocrypt.spec b/libmongocrypt.spec
index 5382c48..b41ae23 100644
--- a/libmongocrypt.spec
+++ b/libmongocrypt.spec
@@ -5,7 +5,7 @@
Summary: The companion C library for client side encryption in drivers
Name: libmongocrypt
Version: 1.0.4
-Release: 1
+Release: 2
# see kms-message/THIRD_PARTY_NOTICES
# kms-message/src/kms_b64.c is ISC
# everything else is ASL 2.0
@@ -13,6 +13,7 @@ License: ASL 2.0 and ISC
Group: Libraries
Source0: https://github.com/mongodb/libmongocrypt/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: e8939c3ed5c8b797dd8d4ea1290f7652
+Patch0: no-Werror.patch
URL: https://github.com/mongodb/libmongocrypt
BuildRequires: cmake >= 3.5
%{?with_apidocs:BuildRequires: doxygen}
@@ -36,6 +37,7 @@ This package contains the header files and development libraries for
%prep
%setup -q
+%patch0 -p1
echo "%{version}" > VERSION_CURRENT
%build
diff --git a/no-Werror.patch b/no-Werror.patch
new file mode 100644
index 0000000..41a8777
--- /dev/null
+++ b/no-Werror.patch
@@ -0,0 +1,22 @@
+--- libmongocrypt-1.0.4/CMakeLists.txt~ 2020-05-13 21:08:12.000000000 +0200
++++ libmongocrypt-1.0.4/CMakeLists.txt 2021-10-06 22:18:39.746913269 +0200
+@@ -93,7 +93,7 @@
+ # TODO: add support for clang-cl which is detected as MSVC
+ else()
+ # GNU, Clang, AppleClang
+- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wno-missing-braces")
++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-missing-braces")
+ endif()
+
+ # Choose a Crypto provider
+--- libmongocrypt-1.0.4/kms-message/CMakeLists.txt~ 2020-05-13 21:08:12.000000000 +0200
++++ libmongocrypt-1.0.4/kms-message/CMakeLists.txt 2021-10-06 22:19:10.140304513 +0200
+@@ -94,7 +94,7 @@
+ endif ()
+
+ if ( CMAKE_COMPILER_IS_GNUCC )
+- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-unused-function -Wsign-compare -Werror")
++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-unused-function -Wsign-compare")
+ endif()
+ if ( MSVC )
+ # W4273 - inconsistent dll linkage
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libmongocrypt.git/commitdiff/2b2fd8313e22cefd91c21ea6cd8694334d1930e5
More information about the pld-cvs-commit
mailing list