From b3779c360818cb475b420d04e7d0a96cffa49b37 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mar 04 2021 10:55:27 +0000 Subject: rebuild for https://fedoraproject.org/wiki/Changes/php80 --- diff --git a/9.patch b/9.patch new file mode 100644 index 0000000..762cfc9 --- /dev/null +++ b/9.patch @@ -0,0 +1,22 @@ +From d48a944c053084382b2b0a914cb1058cda89d99c Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Mon, 21 Sep 2020 15:48:01 +0200 +Subject: [PATCH] fix format, used is unsigned long + +--- + src/php_raphf_api.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/php_raphf_api.c b/src/php_raphf_api.c +index 004fd66..d71ce36 100644 +--- a/src/php_raphf_api.c ++++ b/src/php_raphf_api.c +@@ -624,7 +624,7 @@ static int php_persistent_handle_apply_info_ex(zval *p, int argc, + zend_hash_key *super_key = va_arg(argv, zend_hash_key *); + char used[21], free[21]; + +- slprintf(used, sizeof(used), "%u", list->used); ++ slprintf(used, sizeof(used), "%lu", list->used); + slprintf(free, sizeof(free), "%d", zend_hash_num_elements(&list->free)); + + php_info_print_table_row(4, super_key->key->val, key->key->val, used, free); diff --git a/php-pecl-raphf.spec b/php-pecl-raphf.spec index 2d4ce76..9d0755c 100644 --- a/php-pecl-raphf.spec +++ b/php-pecl-raphf.spec @@ -1,6 +1,6 @@ # Fedora spec file for php-pecl-raphf # -# Copyright (c) 2013-2019 Remi Collet +# Copyright (c) 2013-2021 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -20,11 +20,13 @@ Summary: Resource and persistent handles factory Name: php-pecl-%{pecl_name} Version: 2.0.1 -Release: 4%{?dist} +Release: 5%{?dist} License: BSD URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +Patch0: https://patch-diff.githubusercontent.com/raw/m6w6/ext-raphf/pull/9.patch + BuildRequires: php-devel > 7 BuildRequires: php-pear %if %{with_tests} @@ -59,6 +61,8 @@ These are the files needed to compile programs using %{name}. mv %{pecl_name}-%{version} NTS cd NTS +%patch0 -p1 -b .pr9 + # Sanity check, really often broken extver=$(sed -n '/#define PHP_RAPHF_VERSION/{s/.* "//;s/".*$//;p}' php_raphf.h) if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then @@ -187,6 +191,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Thu Mar 4 2021 Remi Collet - 2.0.1-5 +- rebuild for https://fedoraproject.org/wiki/Changes/php80 +- add minor fix from https://github.com/m6w6/ext-raphf/pull/9 + * Wed Jan 27 2021 Fedora Release Engineering - 2.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild