Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package php-gnupg for openSUSE:Factory 
checked in at 2026-12-04 15:24:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/php-gnupg (Old)
 and      /work/SRC/openSUSE:Factory/.php-gnupg.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "php-gnupg"

Fri Dec  4 15:24:16 2026 rev:5 rq:1402843 version:1.5.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/php-gnupg/php-gnupg.changes      2025-08-09 
20:05:53.353454676 +0200
+++ /work/SRC/openSUSE:Factory/.php-gnupg.new.1340718/php-gnupg.changes 
2026-12-04 15:25:01.411701961 +0100
@@ -1,0 +2,6 @@
+Tue Dec  1 20:00:34 UTC 2026 - Arjen de Korte <[email protected]>
+
+- Fix build with PHP 8.6
+  + gnupg-fix-build-with-PHP-8.6.patch
+
+-------------------------------------------------------------------

New:
----
  gnupg-fix-build-with-PHP-8.6.patch

----------(New B)----------
  New:- Fix build with PHP 8.6
  + gnupg-fix-build-with-PHP-8.6.patch
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ php-gnupg.spec ++++++
--- /var/tmp/diff_new_pack.pLaQOq/_old  2026-12-04 15:25:02.564750300 +0100
+++ /var/tmp/diff_new_pack.pLaQOq/_new  2026-12-04 15:25:02.566750383 +0100
@@ -39,6 +39,8 @@
 URL:            https://pecl.php.net/gnupg
 Source0:        https://pecl.php.net/get/%{pkg_name}-%{version}.tgz
 Source1:        php-%{pkg_name}-rpmlintrc
+# PATCH-FIX-UPSTREAM - fix build with PHP 8.6
+Patch1:         gnupg-fix-build-with-PHP-8.6.patch
 BuildRequires:  %{php_name}-devel
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(gpgme)
@@ -61,6 +63,9 @@
 %make_build
 
 %check
+%if %{pkg_vcmp %{php_name}-devel >= 8.6}
+export TEST_PHP_ARGS="$TEST_PHP_ARGS -j1"
+%endif
 %make_build PHP_EXECUTABLE=%{__php} NO_INTERACTION=1 test
 
 %install

++++++ gnupg-fix-build-with-PHP-8.6.patch ++++++
diff -purN a/phpc/phpc.h b/phpc/phpc.h
--- a/phpc/phpc.h       2025-08-08 15:06:23.000000000 +0200
+++ b/phpc/phpc.h       2026-11-29 21:58:43.762575783 +0100
@@ -992,7 +992,7 @@ typedef zend_resource * phpc_res_value_t
        PHPC_OBJ_STRUCT_MEMBER_LAST };
 
 #define PHPC_OBJ_FROM_ZOBJ(_name, _object) \
-       (PHPC_OBJ_STRUCT_NAME(_name) *)((char*)(_object) - 
XtOffsetOf(PHPC_OBJ_STRUCT_NAME(_name), std))
+       (PHPC_OBJ_STRUCT_NAME(_name) *)((char*)(_object) - 
offsetof(PHPC_OBJ_STRUCT_NAME(_name), std))
 #define PHPC_OBJ_FROM_ZVAL(_name, _zv) \
        PHPC_OBJ_FROM_ZOBJ(_name, Z_OBJ_P(_zv))
 #if PHP_MAJOR_VERSION < 8
@@ -1054,7 +1054,7 @@ typedef zend_resource * phpc_res_value_t
 
 /* handler setters */
 #define PHPC_OBJ_SET_SPECIFIC_HANDLER_OFFSET(_handlers, _name) \
-       (_handlers).offset = XtOffsetOf(PHPC_OBJ_STRUCT_NAME(_name), std)
+       (_handlers).offset = offsetof(PHPC_OBJ_STRUCT_NAME(_name), std)
 #define PHPC_OBJ_SET_SPECIFIC_HANDLER_FREE(_handlers, _name) \
        (_handlers).free_obj = PHPC_OBJ_GET_HANDLER_FCE(_name, free)
 

Reply via email to