diff options
author | Remi Collet <remi@remirepo.net> | 2020-05-31 07:59:22 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-05-31 07:59:22 +0200 |
commit | d46ba64e1acd03746b91d1d05a6216fa803ecf32 (patch) | |
tree | d63f7a06c0f8b0df7abc1dd636db489d0edea812 | |
parent | 60b25188efaf2ae2b8d240b94148c52985b6ec27 (diff) |
update to 1.18.0
drop patches merged upstream
-rw-r--r-- | 0001-fix-lib-name-for-PHP-8.patch | 29 | ||||
-rw-r--r-- | 0002-define-TSRMLS_-macro-dropped-in-PHP-8.patch | 30 | ||||
-rw-r--r-- | unit-php.spec | 15 |
3 files changed, 7 insertions, 67 deletions
diff --git a/0001-fix-lib-name-for-PHP-8.patch b/0001-fix-lib-name-for-PHP-8.patch deleted file mode 100644 index 45c6479..0000000 --- a/0001-fix-lib-name-for-PHP-8.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 9d99f33602237f7ee189efc7056ba4c6205699b3 Mon Sep 17 00:00:00 2001 -From: Remi Collet <remi@remirepo.net> -Date: Fri, 17 Apr 2020 09:14:43 +0200 -Subject: [PATCH 1/2] fix lib name for PHP 8 - ---- - auto/modules/php | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/auto/modules/php b/auto/modules/php -index e2e5498..dd31a52 100644 ---- a/auto/modules/php -+++ b/auto/modules/php -@@ -100,7 +100,11 @@ if /bin/sh -c "${NXT_PHP_CONFIG} --version" >> $NXT_AUTOCONF_ERR 2>&1; then - `${NXT_PHP_CONFIG} --libs`" - - else -- NXT_PHP_LIB="-lphp${NXT_PHP_VERSION%%.*}" -+ if [ ${NXT_PHP_MAJOR_VERSION} -ge 8 ]; then -+ NXT_PHP_LIB="-lphp" -+ else -+ NXT_PHP_LIB="-lphp${NXT_PHP_VERSION%%.*}" -+ fi - - if [ "$NXT_PHP_LIB_PATH" != "" ]; then - # "php-config --ldflags" does not contain path to libphp, but --- -2.25.2 - diff --git a/0002-define-TSRMLS_-macro-dropped-in-PHP-8.patch b/0002-define-TSRMLS_-macro-dropped-in-PHP-8.patch deleted file mode 100644 index 430ad21..0000000 --- a/0002-define-TSRMLS_-macro-dropped-in-PHP-8.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 3ef107ac8bea3043e493786e2f8ad20366b0ad7d Mon Sep 17 00:00:00 2001 -From: Remi Collet <remi@remirepo.net> -Date: Fri, 17 Apr 2020 09:16:03 +0200 -Subject: [PATCH 2/2] define TSRMLS_* macro dropped in PHP 8 - ---- - src/nxt_php_sapi.c | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c -index f505365..b059146 100644 ---- a/src/nxt_php_sapi.c -+++ b/src/nxt_php_sapi.c -@@ -29,6 +29,13 @@ - #define NXT_PHP7 1 - #endif - -+#ifndef TSRMLS_CC -+#define TSRMLS_CC -+#define TSRMLS_DC -+#define TSRMLS_D void -+#define TSRMLS_C -+#endif -+ - typedef struct { - char *cookie; - nxt_str_t path_info; --- -2.25.2 - diff --git a/unit-php.spec b/unit-php.spec index 647766c..be1835c 100644 --- a/unit-php.spec +++ b/unit-php.spec @@ -9,7 +9,7 @@ %global gh_owner nginx %global project unit -%global gh_commit 4d62989f5c2329bb4a6174e4b7fb4ab6d8d9ec9f +%global gh_commit d3ca5fb47a52322b48737d21d55bf1d6d0aa446a %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %undefine _debugsource_packages @@ -34,17 +34,14 @@ Requires: %{scl_prefix}php-embedded %endif Name: %{?scl_prefix}%{project}-php -Version: 1.17.0 -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 1.18.0 +Release: 1%{?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 -Patch0: 0001-fix-lib-name-for-PHP-8.patch -Patch1: 0002-define-TSRMLS_-macro-dropped-in-PHP-8.patch - BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel BuildRequires: %{?scl_prefix}php-embedded @@ -63,8 +60,6 @@ and NGINX unit %{version}. %prep %setup -qn %{project}-%{gh_commit} -%patch0 -p1 -%patch1 -p1 %build @@ -123,6 +118,10 @@ make %{modname}-install DESTDIR=%{buildroot} %changelog +* Sun May 31 2020 Remi Collet <remi@remirepo.net> - 1.18.0-1 +- update to 1.18.0 +- drop patches merged upstream + * Fri Apr 17 2020 Remi Collet <remi@remirepo.net> - 1.17.0-2 - fix build with PHP 8 using patches from https://github.com/nginx/unit/pull/425 |