This commit is contained in:
Remi Collet 2016-04-20 14:24:48 +02:00
parent 70f79ccb03
commit 5f9b29a31a
4 changed files with 12 additions and 74 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ clog
/apcu-4.0.7.tgz /apcu-4.0.7.tgz
/apcu-4.0.8.tgz /apcu-4.0.8.tgz
/apcu-4.0.10.tgz /apcu-4.0.10.tgz
/apcu-4.0.11.tgz

View File

@ -1,40 +0,0 @@
From c6812973fbc29d13368b2ad45a016f4839ee141e Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@famillecollet.com>
Date: Wed, 20 Apr 2016 09:18:38 +0200
Subject: [PATCH] fix #176 segfault when apc.preload_path contains bad data
---
apc_cache.c | 2 +-
tests/data/abc.data | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/apc_cache.c b/apc_cache.c
index af5b584..5118e77 100644
--- a/apc_cache.c
+++ b/apc_cache.c
@@ -391,7 +391,7 @@ static zval* data_unserialize(const char *filename TSRMLS_DC)
return NULL;
}
- MAKE_STD_ZVAL(retval);
+ ALLOC_INIT_ZVAL(retval);
PHP_VAR_UNSERIALIZE_INIT(var_hash);
From d9cbfab0bbcdf33a2b26a1c2382e882264835230 Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@famillecollet.com>
Date: Tue, 19 Apr 2016 17:35:31 +0200
Subject: [PATCH] fix test/data
---
tests/data/abc.data | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/data/abc.data b/tests/data/abc.data
index 0e386ce..ecdc6cf 100644
--- a/tests/data/abc.data
+++ b/tests/data/abc.data
@@ -1 +1 @@
-s:3:"123"
+s:3:"123";

View File

@ -1,35 +1,24 @@
# Fedora spec file for php-pecl-apcu # Fedora spec file for php-pecl-apcu
# #
# Copyright (c) 2013-2015 Remi Collet # Copyright (c) 2013-2016 Remi Collet
# License: CC-BY-SA # License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/ # http://creativecommons.org/licenses/by-sa/4.0/
# #
# Please, preserve the changelog entries # Please, preserve the changelog entries
# #
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
%{!?php_incldir: %global php_incldir %{_includedir}/php}
%{!?__pecl: %global __pecl %{_bindir}/pecl}
%{!?__php: %global __php %{_bindir}/php}
%global pecl_name apcu %global pecl_name apcu
%global with_zts 0%{?__ztsphp:1} %global with_zts 0%{?__ztsphp:1}
%if "%{php_version}" < "5.6"
%global ini_name %{pecl_name}.ini
%else
%global ini_name 40-%{pecl_name}.ini %global ini_name 40-%{pecl_name}.ini
%endif
Name: php-pecl-apcu Name: php-pecl-apcu
Summary: APC User Cache Summary: APC User Cache
Version: 4.0.10 Version: 4.0.11
Release: 4%{?dist} Release: 1%{?dist}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
Source1: %{pecl_name}.ini Source1: %{pecl_name}.ini
Source2: %{pecl_name}-panel.conf Source2: %{pecl_name}-panel.conf
Source3: %{pecl_name}.conf.php Source3: %{pecl_name}.conf.php
Patch0: %{pecl_name}-upstream.patch
License: PHP License: PHP
Group: Development/Languages Group: Development/Languages
URL: http://pecl.php.net/package/APCu URL: http://pecl.php.net/package/APCu
@ -46,11 +35,7 @@ Provides: php-apcu = %{version}
Provides: php-apcu%{?_isa} = %{version} Provides: php-apcu%{?_isa} = %{version}
Provides: php-pecl(apcu) = %{version} Provides: php-pecl(apcu) = %{version}
Provides: php-pecl(apcu)%{?_isa} = %{version} Provides: php-pecl(apcu)%{?_isa} = %{version}
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
Conflicts: php-pecl-apc < 4
%else
Obsoletes: php-pecl-apc < 4 Obsoletes: php-pecl-apc < 4
%endif
# Same provides than APC, this is a drop in replacement # Same provides than APC, this is a drop in replacement
Provides: php-apc = %{version} Provides: php-apc = %{version}
Provides: php-apc%{?_isa} = %{version} Provides: php-apc%{?_isa} = %{version}
@ -59,12 +44,6 @@ Provides: php-pecl-apc%{?_isa} = %{version}
Provides: php-pecl(APC) = %{version} Provides: php-pecl(APC) = %{version}
Provides: php-pecl(APC)%{?_isa} = %{version} Provides: php-pecl(APC)%{?_isa} = %{version}
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
# Filter shared private
%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
%{?filter_setup}
%endif
%description %description
APCu is userland caching: APC stripped of opcode caching in preparation APCu is userland caching: APC stripped of opcode caching in preparation
@ -92,11 +71,7 @@ Summary: APCu developer files (header)
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: php-devel%{?_isa} Requires: php-devel%{?_isa}
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
Conflicts: php-pecl-apc-devel < 4
%else
Obsoletes: php-pecl-apc-devel < 4 Obsoletes: php-pecl-apc-devel < 4
%endif
Provides: php-pecl-apc-devel = %{version}-%{release} Provides: php-pecl-apc-devel = %{version}-%{release}
Provides: php-pecl-apc-devel%{?_isa} = %{version}-%{release} Provides: php-pecl-apc-devel%{?_isa} = %{version}-%{release}
@ -112,11 +87,7 @@ Requires: %{name} = %{version}-%{release}
Requires: mod_php Requires: mod_php
Requires: php-gd Requires: php-gd
Requires: httpd Requires: httpd
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
Conflicts: apc-panel < 4
%else
Obsoletes: apc-panel < 4 Obsoletes: apc-panel < 4
%endif
Provides: apc-panel = %{version}-%{release} Provides: apc-panel = %{version}-%{release}
%description -n apcu-panel %description -n apcu-panel
@ -128,8 +99,9 @@ configuration, available on http://localhost/apcu-panel/
%setup -qc %setup -qc
mv %{pecl_name}-%{version} NTS mv %{pecl_name}-%{version} NTS
sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml
cd NTS cd NTS
%patch0 -p1
# Sanity check, really often broken # Sanity check, really often broken
extver=$(sed -n '/#define PHP_APCU_VERSION/{s/.* "//;s/".*$//;p}' php_apc.h) extver=$(sed -n '/#define PHP_APCU_VERSION/{s/.* "//;s/".*$//;p}' php_apc.h)
@ -228,6 +200,7 @@ REPORT_EXIT_STATUS=1 \
%files %files
%license NTS/LICENSE
%doc %{pecl_docdir}/%{pecl_name} %doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml %{pecl_xmldir}/%{name}.xml
@ -258,6 +231,10 @@ REPORT_EXIT_STATUS=1 \
%changelog %changelog
* Wed Apr 20 2016 Remi Collet <remi@fedoraproject.org> - 4.0.11-1
- Update to 4.0.11 (stable)
- fix license usage and spec cleanup
* Wed Apr 20 2016 Remi Collet <remi@fedoraproject.org> - 4.0.10-4 * Wed Apr 20 2016 Remi Collet <remi@fedoraproject.org> - 4.0.10-4
- add upstream patch, fix FTBFS with 5.6.21RC1, thanks Koschei - add upstream patch, fix FTBFS with 5.6.21RC1, thanks Koschei

View File

@ -1 +1 @@
e52d930a050066025095e2a448fd3cab apcu-4.0.10.tgz 13c0c0dd676e5a7905d54fa985d0ee62 apcu-4.0.11.tgz