Package: release.debian.org
Severity: normal
Tags: trixie
User: [email protected]
Usertags: pu
X-Debbugs-Cc: Debian Ruby Team <[email protected]>, 
[email protected]
Control: affects -1 + src:tdiary

[ Reason ]
tdiary 5.3.0-2+deb13u1 builds again on the Ruby in trixie-security. Ruby 3.3.13 
replaced PStore#on_windows? with a private constant, and trixie-security ships 
Ruby 3.3.14-0+deb13u1, which has no public method by that name. tdiary's Ruby 
1.8 PStore conversion still called it, so the specs in 
spec/core/compatible_spec.rb raised NoMethodError (#1154598).

Sid already dropped that wrapper. tdiary 5.6.1-1 does not call on_windows?, and 
Santiago Vila marked the bug fixed in 5.6.1-1. The Trixie change is local to 
the copy that is still in 5.3.0.

[ Impact ]
The source fails to build against the Ruby already in trixie-security. A diary 
still stored in the Ruby 1.8 PStore format fails to open on that Ruby.

[ Tests ]
I built the package and ran autopkgtest in a Trixie chroot with trixie-security 
and trixie-proposed-updates. The chroot installed Ruby 3.3.14-0+deb13u1. The 
rspec suite finished at 214 examples, 0 failures, and autopkgtest run-test 
passed. The compatible spec still opens the ASCII-8BIT fixture and reads the 
strings back as UTF-8.

[ Risks ]
lib/tdiary/compatible.rb now tests Windows with the same platform expression 
PStore#on_windows? used, /mswin|mingw|bccwin|wince/. A Windows save still uses 
the fast write. Every other platform still uses the atomic rename. The rest of 
the source is unchanged.

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

[ Changes ]
The debdiff adds debian/patches/pstore-without-on-windows.patch and a changelog 
entry to match.

Best regards,
Simon Quigley
[email protected]
diff -Nru tdiary-5.3.0/debian/changelog tdiary-5.3.0/debian/changelog
--- tdiary-5.3.0/debian/changelog       2025-03-10 10:33:10.000000000 -0500
+++ tdiary-5.3.0/debian/changelog       2026-11-21 11:19:16.000000000 -0600
@@ -1,3 +1,10 @@
+tdiary (5.3.0-2+deb13u1) trixie; urgency=medium
+
+  * Team upload.
+  * Replace the removed PStore#on_windows? call (Closes: #1154598).
+
+ -- Simon Quigley <[email protected]>  Sat, 21 Nov 2026 11:19:16 -0600
+
 tdiary (5.3.0-2) unstable; urgency=medium
 
   * Team upload.
diff -Nru tdiary-5.3.0/debian/patches/pstore-without-on-windows.patch 
tdiary-5.3.0/debian/patches/pstore-without-on-windows.patch
--- tdiary-5.3.0/debian/patches/pstore-without-on-windows.patch 1969-12-31 
18:00:00.000000000 -0600
+++ tdiary-5.3.0/debian/patches/pstore-without-on-windows.patch 2026-11-21 
11:05:29.000000000 -0600
@@ -0,0 +1,20 @@
+Description: Convert Ruby 1.8 PStore data without PStore#on_windows?
+ Ruby 3.3.13 replaced that method with a private constant. The Ruby 1.8
+ conversion path called it and raised NoMethodError, so the build fails.
+Author: Simon Quigley <[email protected]>
+Origin: vendor
+Forwarded: not-needed
+Bug-Debian: https://bugs.debian.org/1154598
+Last-Update: 2026-11-21
+---
+--- a/lib/tdiary/compatible.rb
++++ b/lib/tdiary/compatible.rb
+@@ -23,7 +23,7 @@
+                               obj
+                       })
+                       table[:__ruby_version] = RUBY_VERSION
+-                      if on_windows?
++                      if /mswin|mingw|bccwin|wince/ =~ RUBY_PLATFORM
+                               
save_data_with_fast_strategy(Marshal::dump(table), file)
+                       else
+                               
save_data_with_atomic_file_rename_strategy(Marshal::dump(table), file)
diff -Nru tdiary-5.3.0/debian/patches/series tdiary-5.3.0/debian/patches/series
--- tdiary-5.3.0/debian/patches/series  2025-03-10 10:33:10.000000000 -0500
+++ tdiary-5.3.0/debian/patches/series  2026-11-21 11:05:29.000000000 -0600
@@ -10,3 +10,4 @@
 0010-Use-rack-files-instead-of-rack-file.patch
 0011-Fix-for-Rackup-Handler-WEBrick-in-Rack-3.patch
 0012-rack.input-is-optional-now.patch
+pstore-without-on-windows.patch

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to