Source: remctl
Version: 3.18-3
Severity: important
Tags: ftbfs forky sid upstream patch
User: [email protected]
Usertags: perl-5.42-transition

This package fails to build with Perl 5.42 (currently in experimental.)

  
https://perl.debian.net/rebuild-logs/perl-5.42/remctl_3.18-3/remctl_3.18-3+b1_amd64-2025-08-23T07:37:05Z.build

  #   Failed test '...and correct error'
  #   at t/backend/options.t line 96.
  #          got: 'number: value "foo" invalid for option number (integer 
number expected)
  # '
  #     expected: 'number: value "foo" invalid for option number (number 
expected)
  # '
  # Looks like you failed 1 test of 13.

This is because Getopt-Long slightly changed its
diagnostics in version 2.58, bundled with Perl 5.42.0. See
https://github.com/sciurius/perl-Getopt-Long/issues/26

Proposed patch attached. I tested lightly that this passes with both
the old and the new Getopt-Long behaviour.

If you want to test changes against Perl 5.42 yourself and run into
uninstallability problems, there is a test repository of rebuilt Debian
sid packages available at <https://perl.debian.net/>.

Thanks for your work on Debian,
-- 
Niko Tyni   [email protected]
>From ff2f2dfe7efa9f7272185c62d1231e6f321940cf Mon Sep 17 00:00:00 2001
From: Niko Tyni <[email protected]>
Date: Sat, 23 Aug 2025 09:25:04 +0100
Subject: [PATCH] Adapt Perl options test to Getopt-Long 2.58 changes

Getopt-Long changed its diagnostics slightly in 2.58 with

  https://github.com/sciurius/perl-Getopt-Long/issues/26
---
 perl/t/backend/options.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/perl/t/backend/options.t b/perl/t/backend/options.t
index f5723e3..226ae53 100755
--- a/perl/t/backend/options.t
+++ b/perl/t/backend/options.t
@@ -93,8 +93,8 @@ $commands{number}{options} = ['number=i'];
 ($output, $error, $status) = run_wrapper($backend, 'number', '--number=foo');
 is($status, 255, 'unknown option returns 255');
 is($output, q{}, '...with no output');
-is(
+like(
     $error,
-    qq{number: value "foo" invalid for option number (number expected)\n},
+    qr{number: value "foo" invalid for option number},
     '...and correct error',
 );
-- 
2.49.0

Reply via email to