Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package php-psr for openSUSE:Factory checked 
in at 2026-11-30 14:27:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/php-psr (Old)
 and      /work/SRC/openSUSE:Factory/.php-psr.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "php-psr"

Mon Nov 30 14:27:30 2026 rev:6 rq:1401490 version:1.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/php-psr/php-psr.changes  2025-05-01 
15:23:50.176064378 +0200
+++ /work/SRC/openSUSE:Factory/.php-psr.new.1340718/php-psr.changes     
2026-11-30 14:30:15.682698871 +0100
@@ -1,0 +2,6 @@
+Sun Nov 29 19:53:09 UTC 2026 - Arjen de Korte <[email protected]>
+
+- Fix build with PHP 8.6
+  + psr-fix-build-PHP-8.6.patch
+
+-------------------------------------------------------------------

New:
----
  psr-fix-build-PHP-8.6.patch

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

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

Other differences:
------------------
++++++ php-psr.spec ++++++
--- /var/tmp/diff_new_pack.K9iiQW/_old  2026-11-30 14:30:17.506775860 +0100
+++ /var/tmp/diff_new_pack.K9iiQW/_new  2026-11-30 14:30:17.509775987 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package php-psr
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -41,6 +41,8 @@
 Source1:        php-%{pkg_name}-rpmlintrc
 # PATCH-FIX-UPSTREAM - 
https://github.com/jbboehr/php-psr/commit/4d959c5c006504379c68cdffac6fa0a2cae3bed4
 Patch1:         psr-explicit-nullable-types-php84.patch
+# PATCH-FIX-OPENSUSE - fix build with PHP 8.6
+Patch2:         psr-fix-build-PHP-8.6.patch
 BuildRequires:  %{php_name}-devel >= 7.3.0
 BuildRequires:  gcc
 Requires:       php(api) = %{php_core_api}
@@ -50,7 +52,11 @@
 This extension provides the accepted PSR interfaces, so they can be used in an 
extension.
 
 %prep
-%autosetup -p1 -n %{pkg_name}-%{version}
+%setup -q -n %{pkg_name}-%{version}
+%patch -p1 -P 1
+%if %{pkg_vcmp %{php_name}-devel >= 8.6}
+%patch -p1 -P 2
+%endif
 
 %build
 export CFLAGS="%{optflags} -fvisibility=hidden"

++++++ psr-fix-build-PHP-8.6.patch ++++++
diff -purN a/tests/PsrLogLoggerAwareTrait.phpt 
b/tests/PsrLogLoggerAwareTrait.phpt
--- a/tests/PsrLogLoggerAwareTrait.phpt 2021-12-11 19:27:48.000000000 +0100
+++ b/tests/PsrLogLoggerAwareTrait.phpt 2026-11-29 20:45:20.718531791 +0100
@@ -21,6 +21,6 @@ var_dump(class_uses($aware, false));
 --EXPECT--
 bool(true)
 array(1) {
-  ["PsrExt\Log\LoggerAwareTrait"]=>
-  string(27) "PsrExt\Log\LoggerAwareTrait"
+  ["Psr\Log\LoggerAwareTrait"]=>
+  string(24) "Psr\Log\LoggerAwareTrait"
 }
diff -purN a/tests/PsrLogLoggerTrait.phpt b/tests/PsrLogLoggerTrait.phpt
--- a/tests/PsrLogLoggerTrait.phpt      2021-12-11 19:27:48.000000000 +0100
+++ b/tests/PsrLogLoggerTrait.phpt      2026-11-29 20:45:36.533706285 +0100
@@ -84,6 +84,6 @@ string(10) "no context"
 array(0) {
 }
 array(1) {
-  ["PsrExt\Log\LoggerTrait"]=>
-  string(22) "PsrExt\Log\LoggerTrait"
+  ["Psr\Log\LoggerTrait"]=>
+  string(19) "Psr\Log\LoggerTrait"
 }

Reply via email to