[packages/php-pecl-imagick] Build with different php versions

arekm arekm at pld-linux.org
Fri May 9 22:38:20 CEST 2025


commit 2c51df371817ec936add83d787c9d07c7dce5b82
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri May 9 22:36:49 2025 +0200

    Build with different php versions

 build.patch           | 10 +++++++---
 php-pecl-imagick.spec |  2 +-
 2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/php-pecl-imagick.spec b/php-pecl-imagick.spec
index 05c5218..c210b38 100644
--- a/php-pecl-imagick.spec
+++ b/php-pecl-imagick.spec
@@ -10,7 +10,7 @@ Summary:	%{modname} - PHP wrapper to the Image Magick Library
 Summary(pl.UTF-8):	%{modname} - PHP-owy wrapper do biblioteki Image Magick
 Name:		%{php_name}-pecl-%{modname}
 Version:	3.7.0
-Release:	6
+Release:	7
 License:	PHP 3.01
 Group:		Development/Languages/PHP
 Source0:	https://pecl.php.net/get/%{modname}-%{version}.tgz
diff --git a/build.patch b/build.patch
index f158056..50d4cb9 100644
--- a/build.patch
+++ b/build.patch
@@ -1,11 +1,15 @@
---- php53-pecl-imagick-3.7.0/imagick_file.c~	2022-01-11 16:23:47.000000000 +0100
-+++ php53-pecl-imagick-3.7.0/imagick_file.c	2025-05-09 12:08:50.347959587 +0200
-@@ -89,7 +89,7 @@ zend_bool php_imagick_is_virtual_format(
+--- imagick-3.7.0/imagick_file.c~	2022-01-11 16:23:47.000000000 +0100
++++ imagick-3.7.0/imagick_file.c	2025-05-09 22:34:45.060940546 +0200
+@@ -89,7 +89,11 @@ zend_bool php_imagick_is_virtual_format(
  static
  zend_bool php_imagick_is_url(const char *filename TSRMLS_DC)
  {
 -	const char *path_for_open;
++#if PHP_VERSION_ID < 50600
 +	char *path_for_open;
++#else
++        const char *path_for_open;
++#endif
  
  	if (php_stream_locate_url_wrapper(filename, &path_for_open, STREAM_LOCATE_WRAPPERS_ONLY TSRMLS_CC)) {
  		return 1;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-imagick.git/commitdiff/2c51df371817ec936add83d787c9d07c7dce5b82



More information about the pld-cvs-commit mailing list