Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package php-imagick for openSUSE:Factory checked in at 2026-11-30 14:28:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/php-imagick (Old) and /work/SRC/openSUSE:Factory/.php-imagick.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "php-imagick" Mon Nov 30 14:28:02 2026 rev:14 rq:1401556 version:3.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/php-imagick/php-imagick.changes 2026-03-06 18:22:34.934098987 +0100 +++ /work/SRC/openSUSE:Factory/.php-imagick.new.1340718/php-imagick.changes 2026-11-30 14:31:30.187834251 +0100 @@ -1,0 +2,6 @@ +Sun Nov 29 18:28:51 UTC 2026 - Arjen de Korte <[email protected]> + +- XtOffsetOf removed in PHP 8.6 (gh#imagick/imagick#795) + + imagick-xtoffsetof-removed-PHP-8.6.patch + +------------------------------------------------------------------- New: ---- imagick-xtoffsetof-removed-PHP-8.6.patch ----------(New B)---------- New:- XtOffsetOf removed in PHP 8.6 (gh#imagick/imagick#795) + imagick-xtoffsetof-removed-PHP-8.6.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ php-imagick.spec ++++++ --- /var/tmp/diff_new_pack.xc41hu/_old 2026-11-30 14:31:31.475888546 +0100 +++ /var/tmp/diff_new_pack.xc41hu/_new 2026-11-30 14:31:31.480888757 +0100 @@ -47,6 +47,8 @@ Patch11: imagick-skip-test024.patch # PATCH-FIX-OPENSUSE - skip test for ImageMagick >= 7.1.2 due to changes in security policy `SVG' Patch12: imagick-skip-test243.patch +# PATCH-FIX-UPSTREAM - XtOffsetOf removed in PHP 8.6 +Patch13: imagick-xtoffsetof-removed-PHP-8.6.patch BuildRequires: %{php_name}-devel >= 7.0.1 BuildRequires: ImageMagick-devel >= 6.5.3.10 BuildRequires: ghostscript-fonts-std ++++++ imagick-xtoffsetof-removed-PHP-8.6.patch ++++++ >From b580a705e2c879924bfaee2e1ed3a93c9cb3fcfb Mon Sep 17 00:00:00 2001 From: Calvin Buckley <[email protected]> Date: Mon, 20 Jul 2026 14:29:03 -0300 Subject: [PATCH] XtOffsetOf is removed in 8.6, use standard C offsetof (#795) --- imagick.c | 10 +++++----- php_imagick_defs.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/imagick.c b/imagick.c index 68e63e13..ed5ad958 100644 --- a/imagick.c +++ b/imagick.c @@ -1057,7 +1057,7 @@ PHP_MINIT_FUNCTION(imagick) imagick_object_handlers.read_property = php_imagick_read_property; imagick_object_handlers.count_elements = php_imagick_count_elements; #if PHP_VERSION_ID >= 70000 - imagick_object_handlers.offset = XtOffsetOf(php_imagick_object, zo); + imagick_object_handlers.offset = offsetof(php_imagick_object, zo); imagick_object_handlers.free_obj = php_imagick_object_free_storage; #endif @@ -1077,7 +1077,7 @@ PHP_MINIT_FUNCTION(imagick) #endif imagickdraw_object_handlers.clone_obj = php_imagick_clone_imagickdraw_object; #if PHP_VERSION_ID >= 70000 - imagickdraw_object_handlers.offset = XtOffsetOf(php_imagickdraw_object, zo); + imagickdraw_object_handlers.offset = offsetof(php_imagickdraw_object, zo); imagickdraw_object_handlers.free_obj = php_imagickdraw_object_free_storage; #endif php_imagickdraw_sc_entry = zend_register_internal_class(&ce TSRMLS_CC); @@ -1095,7 +1095,7 @@ PHP_MINIT_FUNCTION(imagick) #endif imagickpixeliterator_object_handlers.clone_obj = NULL; #if PHP_VERSION_ID >= 70000 - imagickpixeliterator_object_handlers.offset = XtOffsetOf(php_imagickpixeliterator_object, zo); + imagickpixeliterator_object_handlers.offset = offsetof(php_imagickpixeliterator_object, zo); imagickpixeliterator_object_handlers.free_obj = php_imagickpixeliterator_object_free_storage; #endif php_imagickpixeliterator_sc_entry = zend_register_internal_class(&ce TSRMLS_CC); @@ -1114,7 +1114,7 @@ PHP_MINIT_FUNCTION(imagick) #endif imagickpixel_object_handlers.clone_obj = php_imagick_clone_imagickpixel_object; #if PHP_VERSION_ID >= 70000 - imagickpixel_object_handlers.offset = XtOffsetOf(php_imagickpixel_object, zo); + imagickpixel_object_handlers.offset = offsetof(php_imagickpixel_object, zo); imagickpixel_object_handlers.free_obj = php_imagickpixel_object_free_storage; #endif @@ -1136,7 +1136,7 @@ PHP_MINIT_FUNCTION(imagick) imagickkernel_object_handlers.get_debug_info = php_imagickkernel_get_debug_info; imagickkernel_object_handlers.clone_obj = php_imagick_clone_imagickkernel_object; #if PHP_VERSION_ID >= 70000 - imagickkernel_object_handlers.offset = XtOffsetOf(php_imagickkernel_object, zo); + imagickkernel_object_handlers.offset = offsetof(php_imagickkernel_object, zo); imagickkernel_object_handlers.free_obj = php_imagickkernel_object_free_storage; #endif diff --git a/php_imagick_defs.h b/php_imagick_defs.h index 2c5f990a..9ff83620 100644 --- a/php_imagick_defs.h +++ b/php_imagick_defs.h @@ -273,24 +273,24 @@ typedef struct _php_imagickkernel_object { #if PHP_VERSION_ID >= 70000 static inline php_imagick_object *php_imagick_fetch_object(zend_object *obj) { - return (php_imagick_object *)((char*)(obj) - XtOffsetOf(php_imagick_object, zo)); + return (php_imagick_object *)((char*)(obj) - offsetof(php_imagick_object, zo)); } static inline php_imagickdraw_object *php_imagickdraw_fetch_object(zend_object *obj) { - return (php_imagickdraw_object *)((char*)(obj) - XtOffsetOf(php_imagickdraw_object, zo)); + return (php_imagickdraw_object *)((char*)(obj) - offsetof(php_imagickdraw_object, zo)); } static inline php_imagickpixel_object *php_imagickpixel_fetch_object(zend_object *obj) { - return (php_imagickpixel_object *)((char*)(obj) - XtOffsetOf(php_imagickpixel_object, zo)); + return (php_imagickpixel_object *)((char*)(obj) - offsetof(php_imagickpixel_object, zo)); } static inline php_imagickpixeliterator_object *php_imagickpixeliterator_fetch_object(zend_object *obj) { - return (php_imagickpixeliterator_object *)((char*)(obj) - XtOffsetOf(php_imagickpixeliterator_object, zo)); + return (php_imagickpixeliterator_object *)((char*)(obj) - offsetof(php_imagickpixeliterator_object, zo)); } #ifdef IMAGICK_WITH_KERNEL static inline php_imagickkernel_object *php_imagickkernel_fetch_object(zend_object *obj) { - return (php_imagickkernel_object *)((char*)(obj) - XtOffsetOf(php_imagickkernel_object, zo)); + return (php_imagickkernel_object *)((char*)(obj) - offsetof(php_imagickkernel_object, zo)); } #endif
