]> git.pld-linux.org Git - packages/libmongocrypt.git/commitdiff
- rel 2, disable Werror to allow building using deprecated openssl api master auto/th/libmongocrypt-1.0.4-2
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 6 Oct 2021 20:20:27 +0000 (22:20 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 6 Oct 2021 20:20:27 +0000 (22:20 +0200)
libmongocrypt.spec
no-Werror.patch [new file with mode: 0644]

index 5382c488dca84a0b3ed39e6cb0fd18e8e393c1f9..b41ae230c342fdc8d89a904f938d044b2d92918e 100644 (file)
@@ -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 (file)
index 0000000..41a8777
--- /dev/null
@@ -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
This page took 0.044068 seconds and 4 git commands to generate.