#acl PaulHowarth:read,write,admin,revert,delete All:read === Thursday 24th March 2022 === ==== Fedora Project ==== * Updated `perl-MouseX-App-Cmd` (0.30) in F-35 to fix FTBFS due to test failure in `t/build_emulates_new.t` . I added this patch, based on the change to fix the equivalent issue in `MooseX::App::Cmd` . {{{#!highlight diff Based on https://github.com/moose/MooseX-App-Cmd/commit/631fdba06b3ec24acc3c95d51e85f433063ac800 Soften test to handle changes in App::Cmd 0.332 (RT#134752) --- t/build_emulates_new.t +++ t/build_emulates_new.t @@ -15,4 +15,8 @@ use Test::More tests => 1; } -is_deeply( \%{ Bar->new }, \%{ Foo->new }, 'Internal hashes match' ); +my @attrs = qw(arg0 command full_arg0 show_version); +my $foo; @{$foo}{@attrs} = @{ Foo->new }{@attrs}; +my $bar; @{$bar}{@attrs} = @{ Bar->new }{@attrs}; + +is_deeply( $bar, $foo, 'Internal hashes match' ); }}} . That was in addition to this existing patch for compatibility with `App::Cmd` version 0.328: . {{{#!highlight diff App-Cmd-0.328 something changed and that broke MouseX::App::Cmd. This patch is similar to change in MooseX-App-Cmd-0.32. It adds dependency on MouseX::NonMoose. CPAN RT#107068 Petr Písař: Ported to 0.30. Signed-off-by: Petr Písař --- lib/MouseX/App/Cmd.pm | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/lib/MouseX/App/Cmd.pm b/lib/MouseX/App/Cmd.pm index d9bc2bc..30446bd 100644 --- a/lib/MouseX/App/Cmd.pm +++ b/lib/MouseX/App/Cmd.pm @@ -3,27 +3,11 @@ use 5.006; package MouseX::App::Cmd; # git description: v0.29-32-g69e2d04 use Mouse; use English '-no_match_vars'; -use File::Basename (); +use MouseX::NonMoose; +extends 'App::Cmd'; our $VERSION = '0.30'; # VERSION use namespace::autoclean; -extends 'Mouse::Object', 'App::Cmd'; - -sub BUILDARGS { - my ( undef, @arg ) = @_; - return {} if !@arg; - return { arg => $arg[0] } if 1 == @arg; - return {@arg}; -} - -sub BUILD { - my $self = shift; - my $class = blessed $self; - $self->{arg0} = File::Basename::basename($PROGRAM_NAME); - $self->{command} = $class->_command( {} ); - $self->{full_arg0} = $PROGRAM_NAME; - return; -} ## no critic (Modules::RequireExplicitInclusion) __PACKAGE__->meta->make_immutable(); -- 2.4.3 }}} . I did this so that the Fedora 35 FTBFS ([[RedHatBugzilla:1939439|Bug #1939439]]) and FTI ([[RedHatBugzilla:1964649|Bug #1964649]]) bugs could be closed; the package is retired in later Fedora releases and I have no interest in bringing it back (it has even disappeared from MetaCPAN so there's no upstream anyway) * Updated `perl-Net-SSH-Perl` (2.14) in Rawhide to drop the weak dependency on the `Crypt::RSA` module, which I also maintain but intend to retire in the near future * Branched and built `perl-Class-Accessor-Lite` (0.08) for EPEL-9 ----