From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D9CFE1F513 for ; Wed, 30 Aug 2023 05:10:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1693372245; bh=X8ZregpQOoAUH1+hRj74Cmhci+jPwl5fgHNndH9bWDw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TaOV0sNwxIpANiX3ad99NvVrQfSUHZ0FneoTlyuwNb9K8I8+QwJNPh5nSxoD89Dc5 Eo3mGARxN8c0aN1Tqwl6vbGLnhJDBXPtTTw0maahEsykxbHvkH+WdChawUQMQ/ANUE 9MQJ0+Wqis6/D+5PzB+9M6nC6srlnE15tsjRJSMQ= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 3/7] Makefile.PL: depend on autodie, at least for tests Date: Wed, 30 Aug 2023 05:10:41 +0000 Message-Id: <20230830051045.330641-4-e@80x24.org> In-Reply-To: <20230830051045.330641-1-e@80x24.org> References: <20230830051045.330641-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 | 1 + Makefile.PL | 1 + 2 files changed, 2 insertions(+) diff --git a/INSTALL b/INSTALL index f5e14ebe..5f080f28 100644 --- 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 diff --git a/Makefile.PL b/Makefile.PL index d2309336..5a5628ba 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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,