Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: [email protected]
Control: affects -1 + src:php-league-csv
User: [email protected]
Usertags: pu

[ Reason ]
Fix for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1137038
Because trixie now has PHP > 8.4.14 which requires a change.

[ Impact ]
No impact for the user. It only affects the test suite of the package making it
FTBFS is the patch is not applied.

[ Tests ]
autopkgtests
Autopkgtests succeeds. See: 
https://debusine.debian.net/debian/developers/work-request/797142/[1]


[ Risks ]
none, the change only affects the tests.

[ Checklist ]
  [*] *all* changes are documented in the d/changelog
  [*] I reviewed all changes and I approve them
  [*] attach debdiff against the package in (old)stable
  [*] the issue is verified as fixed in unstable

[ Changes ]
There was a fix in PHP8.4.14 around STDIN
So the test code had to be updated accordingly

[ Other info ]
n/a


--------
[1] https://debusine.debian.net/debian/developers/work-request/797142/
diff -Nru php-league-csv-9.23.0+dfsg/debian/changelog php-league-csv-9.23.0+dfsg/debian/changelog
--- php-league-csv-9.23.0+dfsg/debian/changelog	2025-03-29 06:48:21.000000000 +0100
+++ php-league-csv-9.23.0+dfsg/debian/changelog	2026-05-29 19:00:43.000000000 +0200
@@ -1,3 +1,9 @@
+php-league-csv (9.23.0+dfsg-1+deb13u1) trixie; urgency=medium
+
+  * Add upstream patch to fix failing test with PHP 8.4.14+ (Closes: #1137038)
+
+ -- Fab Stz <[email protected]>  Fri, 29 May 2026 19:00:43 +0200
+
 php-league-csv (9.23.0+dfsg-1) unstable; urgency=medium
 
   * New upstream version
diff -Nru php-league-csv-9.23.0+dfsg/debian/patches/0001-STDIN-is-now-seekable-572.patch php-league-csv-9.23.0+dfsg/debian/patches/0001-STDIN-is-now-seekable-572.patch
--- php-league-csv-9.23.0+dfsg/debian/patches/0001-STDIN-is-now-seekable-572.patch	1970-01-01 01:00:00.000000000 +0100
+++ php-league-csv-9.23.0+dfsg/debian/patches/0001-STDIN-is-now-seekable-572.patch	2026-05-29 18:52:34.000000000 +0200
@@ -0,0 +1,34 @@
+From: ignace nyamagana butera <[email protected]>
+Date: Thu, 1 Jan 2026 13:30:47 +0100
+Subject: STDIN is now seekable #572
+
+---
+ src/StreamTest.php | 9 +++++++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/src/StreamTest.php b/src/StreamTest.php
+index 0d7298b..c22d3bf 100644
+--- a/src/StreamTest.php
++++ b/src/StreamTest.php
+@@ -167,14 +167,19 @@ final class StreamTest extends TestCase
+     {
+         $this->expectException(UnavailableFeature::class);
+ 
+-        $stream = Stream::createFromResource(STDIN);
++        /** @var resource $filePointer */
++        $filePointer = fopen('php://stdout', 'w');
++        $stream = Stream::createFromResource($filePointer);
+         $stream->rewind();
+     }
+ 
+     public function testCreateStreamWithNonSeekableStream(): void
+     {
+         $this->expectException(UnavailableFeature::class);
+-        $stream = Stream::createFromResource(STDIN);
++
++        /** @var resource $filePointer */
++        $filePointer = fopen('php://stdout', 'w');
++        $stream = Stream::createFromResource($filePointer);
+         $stream->seek(3);
+     }
+ 
diff -Nru php-league-csv-9.23.0+dfsg/debian/patches/series php-league-csv-9.23.0+dfsg/debian/patches/series
--- php-league-csv-9.23.0+dfsg/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ php-league-csv-9.23.0+dfsg/debian/patches/series	2026-05-29 18:52:34.000000000 +0200
@@ -0,0 +1 @@
+0001-STDIN-is-now-seekable-572.patch

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to