From 8a9b9fe46c4fad89e2adeea10b958b4832a67ad9 Mon Sep 17 00:00:00 2001 From: "Nicolas R." Date: Sun, 26 Apr 2026 23:48:10 +0300 Subject: [PATCH] Bump deps and install share/ via File::ShareDir Add IO::Socket::UNIX 1.55 to runtime prereqs in dist.ini and let Dist::Zilla regenerate cpanfile and Makefile.PL accordingly. The regenerated Makefile.PL also picks up new minimums for Atomic::Pipe (0.026) and IPC::Manager (0.000034), matching what the current codebase actually uses on this branch. Wire File::ShareDir::Install into Makefile.PL so the share/ directory is installed alongside the dist. Mark INCLUDE_DOTFILES and INCLUDE_DOTDIRS so dotfiles under share/ (e.g. .gitkeep) are not silently dropped, and add the standard MY::postamble hook that File::ShareDir::Install requires. File::ShareDir::Install 0.06 is declared as a configure-time dependency. Co-Authored-By: Claude Opus 4.7 (1M context) --- Makefile.PL | 22 ++++++++++++++++++---- cpanfile | 4 +++- dist.ini | 1 + 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 641ddffbd..e5c2fcf5d 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -22,11 +22,17 @@ if ($ENV{AUTOMATED_TESTING}) { if $is_njh; } +use File::ShareDir::Install; +$File::ShareDir::Install::INCLUDE_DOTFILES = 1; +$File::ShareDir::Install::INCLUDE_DOTDIRS = 1; +install_share dist => "share"; + my %WriteMakefileArgs = ( "ABSTRACT" => "Top-level test harness service.", "AUTHOR" => "Chad Granum ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0, + "File::ShareDir::Install" => "0.06", "Test2::Event::V2" => "1.302199", "Test2::Util::Term" => "0.000159" }, @@ -39,7 +45,7 @@ my %WriteMakefileArgs = ( "NAME" => "Test2::Harness2", "PREREQ_PM" => { "App::Yath::Script" => "2.000011", - "Atomic::Pipe" => "0.021", + "Atomic::Pipe" => "0.026", "B" => 0, "Capture::Tiny" => "0.48", "Carp" => 0, @@ -74,10 +80,11 @@ my %WriteMakefileArgs = ( "IO::Compress::Gzip" => 0, "IO::Handle" => "1.27", "IO::Select" => 0, + "IO::Socket::UNIX" => "1.55", "IO::Uncompress::Bunzip2" => 0, "IO::Uncompress::Gunzip" => 0, "IPC::Cmd" => 0, - "IPC::Manager" => "0.000032", + "IPC::Manager" => "0.000034", "Importer" => "0.025", "JSON::PP" => 0, "LWP" => 0, @@ -156,7 +163,7 @@ my %WriteMakefileArgs = ( my %FallbackPrereqs = ( "App::Yath::Script" => "2.000011", - "Atomic::Pipe" => "0.021", + "Atomic::Pipe" => "0.026", "B" => 0, "Capture::Tiny" => "0.48", "Carp" => 0, @@ -193,10 +200,11 @@ my %FallbackPrereqs = ( "IO::Compress::Gzip" => 0, "IO::Handle" => "1.27", "IO::Select" => 0, + "IO::Socket::UNIX" => "1.55", "IO::Uncompress::Bunzip2" => 0, "IO::Uncompress::Gunzip" => 0, "IPC::Cmd" => 0, - "IPC::Manager" => "0.000032", + "IPC::Manager" => "0.000034", "Importer" => "0.025", "JSON::PP" => 0, "LWP" => 0, @@ -274,3 +282,9 @@ delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); + +{ +package +MY; +use File::ShareDir::Install qw(postamble); +} diff --git a/cpanfile b/cpanfile index e88a329bc..63f818b41 100644 --- a/cpanfile +++ b/cpanfile @@ -1,4 +1,4 @@ -# This file is generated by Dist::Zilla::Plugin::CPANFile v6.033 +# This file is generated by Dist::Zilla::Plugin::CPANFile v6.037 # Do not edit this file directly. To change prereqs, edit the `dist.ini` file. requires "App::Yath::Script" => "2.000011"; @@ -37,6 +37,7 @@ requires "IO::Compress::Bzip2" => "0"; requires "IO::Compress::Gzip" => "0"; requires "IO::Handle" => "1.27"; requires "IO::Select" => "0"; +requires "IO::Socket::UNIX" => "1.55"; requires "IO::Uncompress::Bunzip2" => "0"; requires "IO::Uncompress::Gunzip" => "0"; requires "IPC::Cmd" => "0"; @@ -137,6 +138,7 @@ on 'test' => sub { on 'configure' => sub { requires "ExtUtils::MakeMaker" => "0"; + requires "File::ShareDir::Install" => "0.06"; requires "Test2::Event::V2" => "1.302199"; requires "Test2::Util::Term" => "0.000159"; }; diff --git a/dist.ini b/dist.ini index d40d26615..e08cc060f 100644 --- a/dist.ini +++ b/dist.ini @@ -111,6 +111,7 @@ IO::Compress::Bzip2 = 0 IO::Compress::Gzip = 0 IO::Handle = 1.27 IO::Select = 0 +IO::Socket::UNIX = 1.55 IO::Uncompress::Bunzip2 = 0 IO::Uncompress::Gunzip = 0 IPC::Cmd = 0