From 1d0ea87cd4c5ba42d57e8fe4dfa0b71bb76a3b66 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 21 Dec 2023 08:36:19 +0100 Subject: [PATCH] rebase to 8.1.27 Related: RHEL-19093 --- .gitignore | 12 ++++----- ...v22.patch => php-8.1.0-systzdata-v23.patch | 3 ++- php.spec | 27 ++++++++++--------- sources | 4 +-- 4 files changed, 25 insertions(+), 21 deletions(-) rename php-8.1.0-systzdata-v22.patch => php-8.1.0-systzdata-v23.patch (99%) diff --git a/.gitignore b/.gitignore index b964728..416b0e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ -/php-8.1.6.tar.xz -/php-8.1.6.tar.xz.asc -/php-8.1.7.tar.xz -/php-8.1.7.tar.xz.asc -/php-8.1.8.tar.xz -/php-8.1.8.tar.xz.asc +/php-8.0.*.tar.xz +/php-8.0.*.tar.xz.asc +/php-8.2.*.tar.xz +/php-8.2.*.tar.xz.asc /php-8.1.14.tar.xz /php-8.1.14.tar.xz.asc +/php-8.1.27.tar.xz +/php-8.1.27.tar.xz.asc diff --git a/php-8.1.0-systzdata-v22.patch b/php-8.1.0-systzdata-v23.patch similarity index 99% rename from php-8.1.0-systzdata-v22.patch rename to php-8.1.0-systzdata-v23.patch index d1c8d90..3157660 100644 --- a/php-8.1.0-systzdata-v22.patch +++ b/php-8.1.0-systzdata-v23.patch @@ -5,6 +5,7 @@ Add support for use of the system timezone database, rather than embedding a copy. Discussed upstream but was not desired. History: +r23: fix possible buffer overflow r22: retrieve tzdata version from /usr/share/zoneinfo/tzdata.zi r21: adapt for timelib 2021.03 (in 8.1.0) r20: adapt for timelib 2020.03 (in 8.0.10RC1) @@ -456,7 +457,7 @@ index e41315efdb..4b6547c0a3 100644 + size_t n; + char *data, *p; + -+ data = malloc(3 * sysdb->index_size + 7); ++ data = malloc(3 * sysdb->index_size + sizeof(FAKE_HEADER) - 1); + + p = mempcpy(data, FAKE_HEADER, sizeof(FAKE_HEADER) - 1); + diff --git a/php.spec b/php.spec index ab04c7b..e1e2c51 100644 --- a/php.spec +++ b/php.spec @@ -64,7 +64,7 @@ %bcond_with imap %bcond_without lmdb -%global upver 8.1.14 +%global upver 8.1.27 #global rcver RC1 Summary: PHP scripting language for creating dynamic web sites @@ -111,7 +111,7 @@ Patch8: php-8.1.0-libdb.patch # Use system nikic/php-parser Patch41: php-8.1.0-parser.patch # use system tzdata -Patch42: php-8.1.0-systzdata-v22.patch +Patch42: php-8.1.0-systzdata-v23.patch # See http://bugs.php.net/53436 Patch43: php-7.4.0-phpize.patch # Use -lldap_r for OpenLDAP @@ -707,25 +707,25 @@ in pure PHP. %setup -q -n php-%{upver}%{?rcver} -%patch1 -p1 -b .mpmcheck -%patch5 -p1 -b .includedir -%patch6 -p1 -b .embed -%patch8 -p1 -b .libdb +%patch -P1 -p1 -b .mpmcheck +%patch -P5 -p1 -b .includedir +%patch -P6 -p1 -b .embed +%patch -P8 -p1 -b .libdb -%patch41 -p1 -b .syslib -%patch42 -p1 -b .systzdata -%patch43 -p1 -b .headers +%patch -P41 -p1 -b .syslib +%patch -P42 -p1 -b .systzdata +%patch -P43 -p1 -b .headers %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7 -%patch45 -p1 -b .ldap_r +%patch -P45 -p1 -b .ldap_r %endif -%patch47 -p1 -b .phpinfo +%patch -P47 -p1 -b .phpinfo # upstream patches # security patches # Fixes for tests -%patch300 -p1 -b .datetests +%patch -P300 -p1 -b .datetests # Prevent %%doc confusion over LICENSE files @@ -1539,6 +1539,9 @@ systemctl try-restart php-fpm.service >/dev/null 2>&1 || : %changelog +* Thu Dec 21 2023 Remi Collet - 8.1.27-1 +- rebase to 8.1.27 RHEL-19093 + * Fri Jan 13 2023 Remi Collet - 8.1.14-1 - rebase to 8.1.14 diff --git a/sources b/sources index 66c8177..bca9d3e 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (php-8.1.14.tar.xz) = 75a5dc3b0490cd8105d4f6c5446522b38953d78fe7b568798db749740f365c818b251d86aba72f5e555c5fe4e4a28e352a9510803bf3cdfe37d125824ae84d61 -SHA512 (php-8.1.14.tar.xz.asc) = 80322fce4f0557a506019fafd3e5d1f06021ae05a0855b594e6432a3b58d08f5856cf7bb33f2e75259a58795b8dc3323c101fe464c9c4facdff15d920f0bcde7 +SHA512 (php-8.1.27.tar.xz) = 07fb2b8e10e2487635e26bfd8a27949a26b85f76bc3984ad8599224bb7a7f9498d84299335ae5a0bba16599275e9747ab141f73f4f2076ddf49ebec8e76fd0ed +SHA512 (php-8.1.27.tar.xz.asc) = 2138f31f12e8353b14fb38d79b2a0ebe10f00d8b34cbbfc89baefa6efed32000ece0d48de815c3e14908d3bb160a162ad2beed14d71cf7b532932f97192bae55