From 29bfa653bbd370b60e4666933d43b651b078831b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 17 Feb 2023 13:10:56 +0100 Subject: fix GCC 13 build using patch from https://github.com/couchbase/couchbase-php-client/pull/63 --- php-pecl-couchbase4.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'php-pecl-couchbase4.spec') diff --git a/php-pecl-couchbase4.spec b/php-pecl-couchbase4.spec index 5877d79..ea5d7e6 100644 --- a/php-pecl-couchbase4.spec +++ b/php-pecl-couchbase4.spec @@ -27,7 +27,7 @@ Summary: Couchbase Server PHP extension Name: %{?scl_prefix}php-pecl-couchbase4 Version: 4.1.0 -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} # Apache-2.0 # src # third_party/json/LICENSE.ryu @@ -50,6 +50,8 @@ License: Apache-2.0 AND BSD-3-Clause AND BSD-2-Clause AND MIT URL: https://pecl.php.net/package/couchbase Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Patch0: %{pecl_name}-gcc13.patch + BuildRequires: make %if 0%{?rhel} == 7 BuildRequires: cmake3 >= 3.17 @@ -136,9 +138,12 @@ cp NTS/src/deps/couchbase-cxx-client/third_party/spdlog/LICENSE cp NTS/src/deps/couchbase-cxx-client/LICENSE.txt lic/LICENSE.txt cd NTS +%patch0 -p1 -b.gcc13 + %if 0%{?rhel} == 7 sed -e 's/cmake/cmake3/' -i config.m4 %endif +sed -e 's/--verbose/%{?_smp_mflags} --verbose/' -i Makefile.frag # Sanity check, really often broken extver=$(sed -n '/#define PHP_COUCHBASE_VERSION/{s/.* "//;s/".*$//;p}' src/php_couchbase.hxx) @@ -269,6 +274,10 @@ fi %changelog +* Fri Feb 17 2023 Remi Collet - 4.1.0-2 +- fix GCC 13 build using patch from + https://github.com/couchbase/couchbase-php-client/pull/63 + * Mon Jan 23 2023 Remi Collet - 4.1.0-1 - update to 4.1.0 - drop patch merged upstream -- cgit