[packages/php/PHP_7_0] Rel 11; fix openssl 3 build
arekm
arekm at pld-linux.org
Sat Oct 23 19:54:46 CEST 2021
commit f0fc7beb9799593ed6652a25bbcef4f73ded5c01
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Oct 23 19:53:48 2021 +0200
Rel 11; fix openssl 3 build
openssl.patch | 12 ++++++++++++
php.spec | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/php.spec b/php.spec
index f4cf4dd..b7c1348 100644
--- a/php.spec
+++ b/php.spec
@@ -150,7 +150,7 @@ Summary(ru.UTF-8): PHP Версии 7 - язык препроцессирова
Summary(uk.UTF-8): PHP Версії 7 - мова препроцесування HTML-файлів, виконувана на сервері
Name: %{orgname}%{php_suffix}
Version: 7.0.33
-Release: 10
+Release: 11
Epoch: 4
# All files licensed under PHP version 3.01, except
# Zend is licensed under Zend
@@ -219,6 +219,7 @@ Patch72: phar-hash-shared.patch
Patch73: php-icu64.patch
Patch74: php-CVE-2019-11043.patch
Patch75: icu69.patch
+Patch76: openssl.patch
URL: http://php.net/
%{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
%{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
@@ -2025,6 +2026,7 @@ cp -p php.ini-production php.ini
%patch73 -p1
%patch74 -p1
%patch75 -p1
+%patch76 -p1
sed -E -i -e '1s,#!\s*/usr/bin/env\s+(.*),#!%{__bindir}\1,' \
run-tests.php
diff --git a/openssl.patch b/openssl.patch
new file mode 100644
index 0000000..d696980
--- /dev/null
+++ b/openssl.patch
@@ -0,0 +1,12 @@
+--- php-5.3.29/ext/openssl/openssl.c~ 2021-10-23 19:18:21.000000000 +0200
++++ php-5.3.29/ext/openssl/openssl.c 2021-10-23 19:19:01.483125024 +0200
+@@ -1044,7 +1044,9 @@ PHP_MINIT_FUNCTION(openssl)
+ REGISTER_LONG_CONSTANT("PKCS7_NOSIGS", PKCS7_NOSIGS, CONST_CS|CONST_PERSISTENT);
+
+ REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_PADDING", RSA_PKCS1_PADDING, CONST_CS|CONST_PERSISTENT);
++#ifdef RSA_SSLV23_PADDING
+ REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);
++#endif
+ REGISTER_LONG_CONSTANT("OPENSSL_NO_PADDING", RSA_NO_PADDING, CONST_CS|CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_OAEP_PADDING", RSA_PKCS1_OAEP_PADDING, CONST_CS|CONST_PERSISTENT);
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/f0fc7beb9799593ed6652a25bbcef4f73ded5c01
More information about the pld-cvs-commit
mailing list