Open tim1724 opened 2 months ago
Fedora 41 now hit by this bug, see also https://bugzilla.redhat.com/show_bug.cgi?id=2322518
Given that this wasn't actually doing anything I simply commented out the offending line in Amanda::Tapelist but it should probably just be removed entirely.
Looks like Amanda/Tapelist.pm
was the only file where qw ( :severity )
was still not removed, so far all other files contain only use Amanda::Message;
, so proposed diff would be
--- Amanda/Tapelist.pm.orig 2024-10-29 20:13:26.802470484 +0100
+++ Amanda/Tapelist.pm 2024-10-29 20:14:08.448755135 +0100
@@ -315,7 +315,7 @@
use Amanda::Config qw( config_dir_relative );
use File::Copy;
use Fcntl qw(:flock); # import LOCK_* constants
-use Amanda::Message qw( :severity );
+use Amanda::Message;
## package functions
Perl 5.40 has a few breaking changes that require Amanda to be updated.
I haven't done an exhaustive search, but here are the two issues I've found so far when running Amanda 3.54 under perl 5.40:
taper
dies with a fatal error:I believe this patch should fix it. I honestly don't understand how it ever worked before! It should have always been either
&$finished_cb()
or$finished_cb->()
. I think perl must have been silently ignoring the error. Perhaps this was somehow fixed as a side effect of this change toreturn
statements.amanda
produces a warning:It looks like
Amanda::Message
doesn't actually define animport
method so passing an argument list touse Amanda::Message
can't possibly work. But undefinedimport
methods were silently ignored that in older versions of perl. Starting with 5.40 it now complains about it.Given that this wasn't actually doing anything I simply commented out the offending line in
Amanda::Tapelist
but it should probably just be removed entirely.I wouldn't be surprised if there are other similar problems in parts of the code I haven't looked at yet. (I'm still in the middle of running my first dump after updating perl and I haven't tried restoring from backups yet. And of course I don't use every possible piece of Amanda in my setup.)