From 88b23c54cc6f762b562d09d76dba990309dcdecf Mon Sep 17 00:00:00 2001 From: psykose Date: Fri, 12 Aug 2022 01:20:13 +0000 Subject: [PATCH] testing/pulsar-client-cpp: disable werror --- testing/pulsar-client-cpp/APKBUILD | 5 ++++- testing/pulsar-client-cpp/no-werror.patch | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 testing/pulsar-client-cpp/no-werror.patch diff --git a/testing/pulsar-client-cpp/APKBUILD b/testing/pulsar-client-cpp/APKBUILD index e8e53d376c6..6c751b33aed 100644 --- a/testing/pulsar-client-cpp/APKBUILD +++ b/testing/pulsar-client-cpp/APKBUILD @@ -25,7 +25,9 @@ makedepends=" snappy-dev zstd-dev " -source="apache-pulsar-$pkgver-src.tar.gz::https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-$pkgver/apache-pulsar-$pkgver-src.tar.gz" +source="apache-pulsar-$pkgver-src.tar.gz::https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-$pkgver/apache-pulsar-$pkgver-src.tar.gz + no-werror.patch + " builddir="$srcdir/apache-pulsar-$pkgver-src/pulsar-client-cpp" build() { @@ -61,4 +63,5 @@ _py3() { sha512sums=" 19c078f65b9105728adda3926a9a1527d6498f0e2337d37497a6d965a38acf94e217e58939bc5b0a8b8166511ae9ee176ee3d0c764d4777e285b7bcaeb2731e1 apache-pulsar-2.10.1-src.tar.gz +5ff3c7354530d933982e1d90769363001eeeff63f71fc2ae455f623f4cd0754422ce05b1a10be7e22edad020981a0f48a976f4949819760cb8de7bb09c4e50bc no-werror.patch " diff --git a/testing/pulsar-client-cpp/no-werror.patch b/testing/pulsar-client-cpp/no-werror.patch new file mode 100644 index 00000000000..daa128d5e2c --- /dev/null +++ b/testing/pulsar-client-cpp/no-werror.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4fd1808..9fc8e75 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -94,7 +94,7 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Intel") + # ?? Don't have this to test with + else() # GCC or Clang are mostly compatible: + # Turn on warnings and enable warnings-as-errors: +- add_compile_options(-Wall -Wformat-security -Wvla -Werror) ++ add_compile_options(-Wall -Wformat-security -Wvla) + # Turn off certain warnings that are too much pain for too little gain: + add_compile_options(-Wno-sign-compare -Wno-deprecated-declarations -Wno-error=cpp) + if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR APPLE)