From dfcb4df69c451dcaff4473c9aa3fb9bfb3250bc1 Mon Sep 17 00:00:00 2001 From: psykose Date: Wed, 21 Dec 2022 15:54:14 +0000 Subject: [PATCH] testing/pulsar-client-cpp: upgrade to 2.10.2 --- testing/pulsar-client-cpp/APKBUILD | 8 ++++--- testing/pulsar-client-cpp/py311.patch | 33 +++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 testing/pulsar-client-cpp/py311.patch diff --git a/testing/pulsar-client-cpp/APKBUILD b/testing/pulsar-client-cpp/APKBUILD index e9e9e09c4f2..3d842789ce8 100644 --- a/testing/pulsar-client-cpp/APKBUILD +++ b/testing/pulsar-client-cpp/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Alex Yam # Maintainer: Alex Yam pkgname=pulsar-client-cpp -pkgver=2.10.1 -pkgrel=5 +pkgver=2.10.2 +pkgrel=0 pkgdesc="Apache Pulsar C++ client" url="https://pulsar.apache.org/docs/en/client-libraries-cpp/" arch="" @@ -27,6 +27,7 @@ makedepends=" " 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 + py311.patch " builddir="$srcdir/apache-pulsar-$pkgver-src/pulsar-client-cpp" @@ -62,6 +63,7 @@ _py3() { } sha512sums=" -19c078f65b9105728adda3926a9a1527d6498f0e2337d37497a6d965a38acf94e217e58939bc5b0a8b8166511ae9ee176ee3d0c764d4777e285b7bcaeb2731e1 apache-pulsar-2.10.1-src.tar.gz +1fd10fbb48e734dbb95f20b0d396cb9f875a0a1c93f44b639dc730379ce93bc59ce20bfba137f28897c1e5b3351b08ca3341863c903cf2b6d3dc7108046f2f8f apache-pulsar-2.10.2-src.tar.gz 5ff3c7354530d933982e1d90769363001eeeff63f71fc2ae455f623f4cd0754422ce05b1a10be7e22edad020981a0f48a976f4949819760cb8de7bb09c4e50bc no-werror.patch +8152923932bdfe0babe3a063421a934064394d81030b05124c0eb91ad691a78211f08f867eb88c7a8c9ace84dc3396c692669dff502b4bd1a0b878159e2ce8d5 py311.patch " diff --git a/testing/pulsar-client-cpp/py311.patch b/testing/pulsar-client-cpp/py311.patch new file mode 100644 index 00000000000..c80a6c284c3 --- /dev/null +++ b/testing/pulsar-client-cpp/py311.patch @@ -0,0 +1,33 @@ +diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt +index ee4a6b2..56aea69 100644 +--- a/python/CMakeLists.txt ++++ b/python/CMakeLists.txt +@@ -64,6 +64,10 @@ if (NOT DEFINED ${Boost_PYTHON310-MT_LIBRARY}) + set(Boost_PYTHON310-MT_LIBRARY ${Boost_PYTHON310_LIBRARY}) + endif() + ++if (NOT DEFINED ${Boost_PYTHON311-MT_LIBRARY}) ++ set(Boost_PYTHON311-MT_LIBRARY ${Boost_PYTHON311_LIBRARY}) ++endif() ++ + # Try all possible boost-python variable namings + set(PYTHON_WRAPPER_LIBS ${Boost_PYTHON_LIBRARY} + ${Boost_PYTHON3_LIBRARY} +@@ -75,6 +79,7 @@ set(PYTHON_WRAPPER_LIBS ${Boost_PYTHON_LIBRARY} + ${Boost_PYTHON38_LIBRARY} + ${Boost_PYTHON39_LIBRARY} + ${Boost_PYTHON310_LIBRARY} ++ ${Boost_PYTHON311_LIBRARY} + ) + + if (APPLE) +@@ -93,6 +98,9 @@ if (APPLE) + if (Boost_PYTHON310-MT_LIBRARY_RELEASE) + set(PYTHON_WRAPPER_LIBS ${PYTHON_WRAPPER_LIBS} ${Boost_PYTHON310-MT_LIBRARY_RELEASE}) + endif () ++ if (Boost_PYTHON311-MT_LIBRARY_RELEASE) ++ set(PYTHON_WRAPPER_LIBS ${PYTHON_WRAPPER_LIBS} ${Boost_PYTHON311-MT_LIBRARY_RELEASE}) ++ endif () + endif() + + message(STATUS "Using Boost Python libs: ${PYTHON_WRAPPER_LIBS}")