-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amanda needs to be updated to work with Perl 5.40 #262
Comments
Fedora 41 now hit by this bug, see also https://bugzilla.redhat.com/show_bug.cgi?id=2322518 |
Looks like
|
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.)
The text was updated successfully, but these errors were encountered: