19e5716e30
While amanda-client 3.3 has been stable on NetBSD for a while, the server code has apparently never worked. This commit adds several patches: - include sys/{types,time}.h so autoconf tape drive checks pass - improve error messages when tape drive code is not compiled in - avoid perl crash in report generation These changes have been tested on NetBSD 6 kernel with NetBSD 5 userland, amd64 (for no good reason, but this was the machine with the tape drive), dumping many machines and writing to LTO. The first two patches are taken from an upstream patch committed to the 3.3 branch due to this problem being reported. The third patch is ad hoc based on perl debugging, and needs further investigation. (But it's better to get a report without a header line than an empty mail message.)
21 lines
822 B
Perl
21 lines
822 B
Perl
$NetBSD: patch-perl_Amanda_Report_human.pm,v 1.1 2015/03/27 23:45:29 gdt Exp $
|
|
|
|
On NetBSD 5 amd64, perl coredumps because of this call (or some
|
|
component of it), leading to not getting a report. For now, comment
|
|
it out to get most of the report. This has not yet been reported
|
|
upstream.
|
|
|
|
--- perl/Amanda/Report/human.pm.orig 2012-02-21 11:36:47.000000000 +0000
|
|
+++ perl/Amanda/Report/human.pm
|
|
@@ -319,7 +319,10 @@ sub print_human_amreport
|
|
$self->calculate_stats();
|
|
|
|
## print the basic info header
|
|
- $self->print_header();
|
|
+ # The next line crashes perl 5.20 on NetBSD 5 amd64. Hence it is
|
|
+ # commented out as reports without the header are better than no
|
|
+ # reports.
|
|
+ #$self->print_header();
|
|
|
|
## print out statements about past and predicted tape usage
|
|
$self->output_tapeinfo();
|