From dfbef53ecaa26b7c689f41fa96cbd613147c8930 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 5 Aug 2022 15:51:02 +0200 Subject: fix build with PHP 8.2 using patch from https://github.com/nginx/unit/pull/713 --- unit-php.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'unit-php.spec') diff --git a/unit-php.spec b/unit-php.spec index 4d64bcd..11604d3 100644 --- a/unit-php.spec +++ b/unit-php.spec @@ -35,13 +35,16 @@ Requires: %{scl_prefix}php-embedded Name: %{?scl_prefix}%{project}-php Version: 1.27.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;')}} Summary: PHP module for NGINX Unit License: ASL 2.0 URL: https://unit.nginx.org/ Source0: https://github.com/%{gh_owner}/%{project}/archive/%{gh_commit}/%{project}-%{version}-%{gh_short}.tar.gz +# https://github.com/nginx/unit/pull/713 +Patch0: %{project}-php82.patch + BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel @@ -62,6 +65,7 @@ and NGINX unit %{version}. %prep %setup -qn %{project}-%{gh_commit} +%patch0 -p1 %build @@ -122,6 +126,10 @@ make %{modname}-install DESTDIR=%{buildroot} %changelog +* Thu Jun 2 2022 Remi Collet - 1.27.0-2 +- fix build with PHP 8.2 using patch from + https://github.com/nginx/unit/pull/713 + * Thu Jun 2 2022 Remi Collet - 1.27.0-1 - update to 1.27.0 -- cgit