- add patch for PHP 7.1
This commit is contained in:
Remi Collet 2016-11-14 09:57:52 +01:00
parent f7a91f9ae7
commit 1f32326a5a
2 changed files with 31 additions and 1 deletions

21
msgpack-php71.patch Normal file
View File

@ -0,0 +1,21 @@
diff --git a/msgpack_unpack.h b/msgpack_unpack.h
index 5dc9524..0851625 100644
--- a/msgpack_unpack.h
+++ b/msgpack_unpack.h
@@ -16,6 +16,16 @@ typedef enum
MSGPACK_UNPACK_PARSE_ERROR = -1,
} msgpack_unpack_return;
+#if PHP_VERSION_ID >= 70100
+typedef struct php_unserialize_data {
+ void *first;
+ void *last;
+ void *first_dtor;
+ void *last_dtor;
+ HashTable *allowed_classes;
+};
+#endif
+
typedef struct php_unserialize_data msgpack_unserialize_data_t;
typedef struct {

View File

@ -15,13 +15,16 @@
Summary: API for communicating with MessagePack serialization
Name: php-pecl-msgpack
Version: 2.0.1
Release: 1%{?dist}
Release: 2%{?dist}
License: BSD
Group: Development/Languages
URL: http://pecl.php.net/package/msgpack
Source: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
Patch0: %{pecl_name}-pr87.patch
# Temp for https://github.com/msgpack/msgpack-php/issues/100
Patch1: %{pecl_name}-php71.patch
BuildRequires: php-devel > 7
BuildRequires: php-pear
@ -73,6 +76,8 @@ mv %{pecl_name}-%{version} NTS
sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml
cd NTS
%patch0 -p1 -b .pr87
%patch1 -p1 -b .php71
%if %{with_msgpack}
# use system library
@ -206,6 +211,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
* Mon Nov 14 2016 Remi Collet <remi@fedoraproject.org> - 2.0.1-2
- rebuild for https://fedoraproject.org/wiki/Changes/php71
- add patch for PHP 7.1
* Mon Jun 27 2016 Remi Collet <remi@fedoraproject.org> - 2.0.1-1
- update to 2.0.1 (php 7, beta)
- add patch for PHP 7.1