]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
Makefile.PL: depend on autodie, at least for tests
authorEric Wong <e@80x24.org>
Wed, 30 Aug 2023 05:10:41 +0000 (05:10 +0000)
committerEric Wong <e@80x24.org>
Wed, 30 Aug 2023 05:27:34 +0000 (05:27 +0000)
While using autodie everywhere is not appropriate[*], many of
our tests and FS access code can be easier-to-write and more
readable using autodie as we've started doing in XapHelperCxx.pm
and xap_helper.t

[*] - EAGAIN on non-blocking I/O shouldn't die, nor should
      certain cases of opening maybe-missing files for reading

INSTALL
Makefile.PL

diff --git a/INSTALL b/INSTALL
index f5e14ebe73d48bb63af7182be4bba7f1f0e8d85c..5f080f2889ce9e7534d36b66d7bf234be96efe9a 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -201,6 +201,7 @@ library.  Debian-based distros put them in "libperl5.$MINOR" or
 "perl-modules-5.$MINOR"; and FreeBSD puts them in "perl5".
 RPM-based distros split them out into separate packages:
 
+* autodie                          rpm: perl-autodie
 * Digest::SHA                      rpm: perl-Digest-SHA
 * Data::Dumper                     rpm: perl-Data-Dumper
 * Encode                           rpm: perl-Encode
index d23093365fc11309128e7dd6fa1079a39345c8ab..5a5628badc3eb5e4eb4dfb3fc617b2b8e9ec7582 100644 (file)
@@ -150,6 +150,7 @@ WriteMakefile(
 
                # perl-modules-5.xx or libperl5.xx in Debian-based
                # part of "perl5" on FreeBSD
+               'autodie' => 0,
                'Compress::Raw::Zlib' => 0,
                'Compress::Zlib' => 0,
                'Data::Dumper' => 0,