summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-upstream.patch26
-rw-r--r--php74.spec7
2 files changed, 32 insertions, 1 deletions
diff --git a/php-upstream.patch b/php-upstream.patch
new file mode 100644
index 0000000..f75d8d9
--- /dev/null
+++ b/php-upstream.patch
@@ -0,0 +1,26 @@
+From dc40332bb2276553ea10bca574f03a8dc9bea53d Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@php.net>
+Date: Fri, 20 Sep 2019 13:30:13 +0200
+Subject: [PATCH] Fixed bug #78574 (broken shared build)
+
+---
+ NEWS | 3 +++
+ ext/gmp/config.m4 | 2 +-
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/ext/gmp/config.m4 b/ext/gmp/config.m4
+index aa4936b3c3..fa55751cf1 100644
+--- a/ext/gmp/config.m4
++++ b/ext/gmp/config.m4
+@@ -10,7 +10,7 @@ if test "$PHP_GMP" != "no"; then
+ AC_MSG_ERROR([GNU MP Library version 4.2 or greater required.])
+ ])
+
+- PHP_ADD_LIBRARY(gmp, GMP_SHARED_LIBADD)
++ PHP_ADD_LIBRARY(gmp,,GMP_SHARED_LIBADD)
+ else
+ if test ! -f $PHP_GMP/include/gmp.h; then
+ AC_MSG_ERROR(Unable to locate gmp.h)
+--
+2.11.0
+
diff --git a/php74.spec b/php74.spec
index 240384d..5d43857 100644
--- a/php74.spec
+++ b/php74.spec
@@ -103,7 +103,7 @@
Summary: PHP scripting language for creating dynamic web sites
Name: php
Version: %{upver}%{?rcver:~%{lower}}
-Release: 3%{?dist}
+Release: 4%{?dist}
# All files licensed under PHP version 3.01, except
# Zend is licensed under Zend
# TSRM is licensed under BSD
@@ -168,6 +168,7 @@ Patch91: php-7.2.0-oci8conf.patch
Patch300: php-7.0.10-datetests.patch
# WIP
+Patch400: php-upstream.patch
BuildRequires: gnupg2
BuildRequires: bzip2-devel
@@ -1173,6 +1174,7 @@ in pure PHP.
%endif
# WIP patch
+%patch400 -p1
# Prevent %%doc confusion over LICENSE files
cp Zend/LICENSE Zend/ZEND_LICENSE
@@ -2146,6 +2148,9 @@ fi
%changelog
+* Fri Sep 20 2019 Remi Collet <remi@remirepo.net> - 7.4.0~RC2-4
+- fix broken gmp extension https://bugs.php.net/78574
+
* Tue Sep 17 2019 Remi Collet <remi@remirepo.net> - 7.4.0~RC2-3
- update to 7.4.0RC2 (new tag)