Compare commits

..

No commits in common. 'i10cs' and 'c9' have entirely different histories.
i10cs ... c9

@ -1,31 +0,0 @@
From 7d36350f6398a2c4504c87db7128ef3ce47145d3 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Mon, 29 Jan 2024 14:12:23 +0100
Subject: [PATCH] Fix incompatible pointer types
---
rrd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rrd.c b/rrd.c
index 526f094..ab19b41 100644
--- a/rrd.c
+++ b/rrd.c
@@ -55,7 +55,7 @@ PHP_FUNCTION(rrd_fetch)
rrd_args *argv;
/* returned values if rrd_fetch doesn't fail */
time_t start, end;
- zend_ulong step,
+ unsigned long step,
ds_cnt; /* count of data sources */
char **ds_namv; /* list of data source names */
rrd_value_t *ds_data; /* all data from all sources */
@@ -396,7 +396,7 @@ PHP_FUNCTION(rrd_xport)
/* return values from rrd_xport */
int xxsize;
time_t start, end, time_index;
- zend_ulong step, outvar_count;
+ unsigned long step, outvar_count;
char **legend_v;
rrd_value_t *data, *data_ptr;
zval zv_data;

@ -1,7 +1,7 @@
# remirepo/fedora spec file for php-pecl-rrd # remirepo/fedora spec file for php-pecl-rrd
# #
# Copyright (c) 2011-2024 Remi Collet # Copyright (c) 2011-2021 Remi Collet
# License: CC-BY-SA-4.0 # 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
@ -10,22 +10,18 @@
# we don't want -z defs linker flag # we don't want -z defs linker flag
%undefine _strict_symbol_defs_build %undefine _strict_symbol_defs_build
%global with_zts 0%{?__ztsphp:1} %global with_zts 0%{?__ztsphp:1}
%global pecl_name rrd %global pecl_name rrd
%global ini_name 40-%{pecl_name}.ini %global ini_name 40-%{pecl_name}.ini
%global sources %{pecl_name}-%{version}
%global _configure ../%{sources}/configure
Summary: PHP Bindings for rrdtool Summary: PHP Bindings for rrdtool
Name: php-pecl-rrd Name: php-pecl-rrd
Version: 2.0.3 Version: 2.0.3
Release: 15%{?dist} Release: 3%{?dist}
License: BSD-2-Clause License: BSD
URL: https://pecl.php.net/package/rrd URL: https://pecl.php.net/package/rrd
Source0: https://pecl.php.net/get/%{sources}.tgz Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
Patch0: %{pecl_name}-build.patch
BuildRequires: make BuildRequires: make
BuildRequires: gcc BuildRequires: gcc
@ -52,14 +48,14 @@ system for time series data.
%prep %prep
%setup -c -q %setup -c -q
mv %{pecl_name}-%{version} NTS
# Don't install/register tests # Don't install/register tests
sed -e 's/role="test"/role="src"/' \ sed -e 's/role="test"/role="src"/' \
-e '/LICENSE/s/role="doc"/role="src"/' \ -e '/LICENSE/s/role="doc"/role="src"/' \
-i package.xml -i package.xml
cd %{sources} cd NTS
%patch -P0 -p1
# Sanity check, really often broken # Sanity check, really often broken
extver=$(sed -n '/#define PHP_RRD_VERSION/{s/.* "//;s/".*$//;p}' php_rrd.h) extver=$(sed -n '/#define PHP_RRD_VERSION/{s/.* "//;s/".*$//;p}' php_rrd.h)
if test "x${extver}" != "x%{version}%{?prever}"; then if test "x${extver}" != "x%{version}%{?prever}"; then
@ -73,27 +69,21 @@ cat > %{ini_name} << 'EOF'
extension=%{pecl_name}.so extension=%{pecl_name}.so
EOF EOF
mkdir NTS
%if %{with_zts} %if %{with_zts}
mkdir ZTS cp -r NTS ZTS
%endif %endif
%build %build
# See https://bugzilla.redhat.com/2264827 cd NTS
# only "const" issues %{_bindir}/phpize
export CFLAGS="%{optflags} -Wno-incompatible-pointer-types" %configure --with-php-config=%{_bindir}/php-config
cd %{sources}
%{__phpize}
cd ../NTS
%configure --with-php-config=%{__phpconfig}
make %{?_smp_mflags} make %{?_smp_mflags}
%if %{with_zts} %if %{with_zts}
cd ../ZTS cd ../ZTS
%configure --with-php-config=%{__ztsphpconfig} %{_bindir}/zts-phpize
%configure --with-php-config=%{_bindir}/zts-php-config
make %{?_smp_mflags} make %{?_smp_mflags}
%endif %endif
@ -114,25 +104,24 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
# Test & Documentation # Test & Documentation
for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//')
do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
done done
%check %check
%if %{with_zts} %if %{with_zts}
%{__ztsphp} --no-php-ini \ %{__ztsphp} --no-php-ini \
--define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ --define extension=ZTS/modules/%{pecl_name}.so \
--modules | grep '^%{pecl_name}$' --modules | grep %{pecl_name}
%endif %endif
cd NTS
%{__php} --no-php-ini \ %{__php} --no-php-ini \
--define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ --define extension=modules/%{pecl_name}.so \
--modules | grep '^%{pecl_name}$' --modules | grep %{pecl_name}
# See https://bugzilla.redhat.com/1224530 - segfault on ARM # See https://bugzilla.redhat.com/1224530 - segfault on ARM
%ifnarch %{arm} s390x %ifnarch %{arm}
cd %{sources}
if pkg-config librrd --atleast-version=1.5.0 if pkg-config librrd --atleast-version=1.5.0
then then
: ignore test failed with rrdtool > 1.5 : ignore test failed with rrdtool > 1.5
@ -144,20 +133,19 @@ then
rm tests/rrd_{012,017}.phpt rm tests/rrd_{012,017}.phpt
fi fi
cp ../NTS/tests/data/Makefile tests/data
cp ../NTS/tests/rrdtool-bin.inc tests
make -C tests/data clean make -C tests/data clean
make -C tests/data all make -C tests/data all
TEST_PHP_EXECUTABLE=%{__php} \ TEST_PHP_EXECUTABLE=%{_bindir}/php \
TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \ TEST_PHP_ARGS="-n -d extension_dir= -d extension=$PWD/modules/%{pecl_name}.so" \
NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \ REPORT_EXIT_STATUS=1 \
%{__php} -n run-tests.php -q --show-diff %{_bindir}/php -n run-tests.php --show-diff
%endif %endif
%files %files
%license %{sources}/LICENSE %license NTS/LICENSE
%doc %{pecl_docdir}/%{pecl_name} %doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml %{pecl_xmldir}/%{name}.xml
@ -171,56 +159,13 @@ REPORT_EXIT_STATUS=1 \
%changelog %changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.0.3-15 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.3-3
- Bump release for October 2024 mass rebuild: - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Resolves: RHEL-64018 Related: rhbz#1991688
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.0.3-14
- Rebuilt for MSVSphere 10
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.0.3-14
- Bump release for June 2024 mass rebuild
* Mon Feb 19 2024 Remi Collet <remi@remirepo.net> - 2.0.3-13
- ignore incompatible-pointer-types see #2264827
* Mon Jan 29 2024 Remi Collet <remi@remirepo.net> - 2.0.3-12
- fix incompatible pointer types using patch from
https://github.com/php/pecl-processing-rrd/pull/4
- build out of sources tree
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Oct 03 2023 Remi Collet <remi@remirepo.net> - 2.0.3-10
- rebuild for https://fedoraproject.org/wiki/Changes/php83
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Apr 20 2023 Remi Collet <remi@remirepo.net> - 2.0.3-8
- use SPDX license ID
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Oct 05 2022 Remi Collet <remi@remirepo.net> - 2.0.3-6
- rebuild for https://fedoraproject.org/wiki/Changes/php82
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Oct 28 2021 Remi Collet <remi@remirepo.net> - 2.0.3-3
- rebuild for https://fedoraproject.org/wiki/Changes/php81
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-2 * Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - Rebuilt for RHEL 9 BETA for openssl 3.0
Related: rhbz#1971065
* Wed Apr 28 2021 Remi Collet <remi@remirepo.net> - 2.0.3-1 * Wed Apr 28 2021 Remi Collet <remi@remirepo.net> - 2.0.3-1
- update to 2.0.3 - update to 2.0.3
@ -228,9 +173,8 @@ REPORT_EXIT_STATUS=1 \
* Mon Apr 19 2021 Remi Collet <remi@remirepo.net> - 2.0.2-1 * Mon Apr 19 2021 Remi Collet <remi@remirepo.net> - 2.0.2-1
- update to 2.0.2 - update to 2.0.2
* Fri Mar 5 2021 Remi Collet <remi@remirepo.net> - 2.0.1-17 * Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.1-17
- rebuild for https://fedoraproject.org/wiki/Changes/php80 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
- add upstream patch for PHP 8
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-16 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save