Bug 287215 - misc/amanda-server: three patches to let Amanda cope with Perl 5.40
Summary: misc/amanda-server: three patches to let Amanda cope with Perl 5.40
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL: https://github.com/zmanda/amanda/issu...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-01 13:46 UTC by Trond Endrestøl
Modified: 2026-08-05 11:08 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (fbsd)


Attachments
Patch for perl/Amanda/Tapelist.pm removing the unnecessary and non-exisistant qw( :severity ) (352 bytes, patch)
2025-06-01 13:46 UTC, Trond Endrestøl
no flags Details | Diff
Patch for perl/Amanda/Taper/Scribe.pm adding -> now mandatory in Perl 5.40 (319 bytes, patch)
2025-06-01 13:47 UTC, Trond Endrestøl
no flags Details | Diff
Patch for perl/Amanda/Tapelist.swg (352 bytes, patch)
2025-06-01 13:48 UTC, Trond Endrestøl
no flags Details | Diff
Patch for misc/amanda-server/Makefile adding NO_SHLIB_REQUIRES_GLOB and converters/p5-Encode-Locale for server-only (925 bytes, patch)
2025-08-04 06:44 UTC, Trond Endrestøl
no flags Details | Diff
Patch for common-src/bsdtcp-security.c fixing suppressed 1st char of error message in case of bsdtcp auth (555 bytes, patch)
2026-08-05 09:40 UTC, Trond Endrestøl
no flags Details | Diff
Patch for misc/amanda-server/Makefile adding NO_SHLIB_REQUIRES_GLOB and converters/p5-Encode-Locale for server-only and converters/p5-JSON et al. for client-only (1.33 KB, patch)
2026-08-05 09:44 UTC, Trond Endrestøl
no flags Details | Diff
Patch for common-src/bsdtcp-security.c fixing suppressed 1st char of error message in case of bsdtcp auth. (610 bytes, patch)
2026-08-05 09:55 UTC, Trond Endrestøl
no flags Details | Diff
Patch for perl/Amanda/Script_App.pm suppressing all informational output since amcheck(8) treats anything received as error messages (445 bytes, patch)
2026-08-05 11:08 UTC, Trond Endrestøl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2025-06-01 13:46:08 UTC
Created attachment 260867 [details]
Patch for perl/Amanda/Tapelist.pm removing the unnecessary and non-exisistant qw( :severity )

I have three patches that should be committed to allow Amanda 3.5.1 to coexist with Perl 5.40. See also https://github.com/zmanda/amanda/issues/262
Comment 1 Trond Endrestøl 2025-06-01 13:47:30 UTC
Created attachment 260868 [details]
Patch for perl/Amanda/Taper/Scribe.pm adding -> now mandatory in Perl 5.40
Comment 2 Trond Endrestøl 2025-06-01 13:48:36 UTC
Created attachment 260869 [details]
Patch for perl/Amanda/Tapelist.swg

This patch isn't necessary at this moment, but it might come handy down the road.
Comment 3 Trond Endrestøl 2025-06-01 13:54:29 UTC
I began dabbling in Amanda 3.5.4 yesterday, but it's giving some headache since we now have to deal with the source coming from GitHub and we have to run autotools before the configure phase. This clashes with the current patch set. Unless there's a better way, we must patch, possibly different files, before and after running the autotools.
Comment 4 Trond Endrestøl 2025-08-04 06:44:15 UTC
Created attachment 262694 [details]
Patch for misc/amanda-server/Makefile adding NO_SHLIB_REQUIRES_GLOB and converters/p5-Encode-Locale for server-only

Without NO_SHLIB_REQUIRES_GLOB it becomes impossible to depend on misc/amanda-server in other ports, leading to build-time error messages such as:

pkg-static: Missing shlib dependency: libamanda-3.5.1.so.

converters/p5-Encode-Locale was omitted by not testing this port on a system with no other packages installed.
Comment 5 Gert Doering 2026-05-15 12:04:23 UTC
Is there a way to help this move forward?  I installed amanda-server a few days ago, and struggled to get it to behave - finding all the issues that have patches in here...

Also, it still depends on 5.40, for whatever reason in ports I don't understand - so the system installed 5.40 in addition to the primary perl which is now 5.42 (this works, but is a python-esque evilness that should not be needed for perl)
Comment 6 Trond Endrestøl 2026-08-05 09:40:05 UTC
Created attachment 273474 [details]
Patch for common-src/bsdtcp-security.c fixing suppressed 1st char of error message in case of bsdtcp auth

See also https://github.com/zmanda/amanda/commit/6fc364280b0aa5dbfe45fe7448c33d5234611788
Comment 7 Trond Endrestøl 2026-08-05 09:44:31 UTC
Created attachment 273475 [details]
Patch for misc/amanda-server/Makefile adding NO_SHLIB_REQUIRES_GLOB and converters/p5-Encode-Locale for server-only and converters/p5-JSON et al. for client-only
Comment 8 Trond Endrestøl 2026-08-05 09:46:50 UTC
(In reply to Gert Doering from comment #5)
Make sure your make.conf doesn't lock Perl5 to 5.40. I've locked my builder to Perl 5.42, and I have no issues.
Comment 9 Trond Endrestøl 2026-08-05 09:55:38 UTC
Created attachment 273476 [details]
Patch for common-src/bsdtcp-security.c fixing suppressed 1st char of error message in case of bsdtcp auth.

I forgot the line above the call to strlen(3).
Comment 10 Trond Endrestøl 2026-08-05 11:08:53 UTC
Created attachment 273480 [details]
Patch for perl/Amanda/Script_App.pm suppressing all informational output since amcheck(8) treats anything received as error messages