diff options
author | Eric Wong <e@80x24.org> | 2023-09-13 09:12:40 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-09-14 10:06:24 +0000 |
commit | 8affa863b069186a367debcf695760a2df09d9ca (patch) | |
tree | e4504e120f272ed660fcc7d223f7bc5e58c7dd1e /install/deps.perl | |
parent | 7682d7645f579ba531717ba95c8f3d4ff63af53f (diff) | |
download | public-inbox-8affa863b069186a367debcf695760a2df09d9ca.tar.gz |
Add explicit dependencies on packages that are possible to remove without removing the `perl' RPM from CentOS 7.x. However, simplify deps.perl to avoid naming essential Perl modules (e.g. `perl-Exporter') that cannot be removed without removing the `perl' RPM entirely. We can also drop `Socket6' from deps.perl since it's pulled in as-needed by other packages and we try to avoid it in favor of the (now-standard) IO::Socket::IP.
Diffstat (limited to 'install/deps.perl')
-rwxr-xr-x | install/deps.perl | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/install/deps.perl b/install/deps.perl index e888cf30..a7b42607 100755 --- a/install/deps.perl +++ b/install/deps.perl @@ -35,12 +35,13 @@ my @test_essential = qw(Test::Simple); # we actually use Test::More my $profiles = { # the smallest possible profile for testing essential => [ qw( + autodie git perl Digest::SHA - Encode ExtUtils::MakeMaker IO::Compress + Text::ParseWords URI ), @test_essential ], @@ -58,7 +59,6 @@ my $profiles = { Plack::Test Plack::Middleware::ReverseProxy Xapian - Socket6 highlight.pm xapian-tools ) ], @@ -79,9 +79,9 @@ $profiles->{v2essential} = [ @{$profiles->{essential}}, qw(DBD::SQLite DBI) ]; # dependencies to prevent essential package removal: my $non_auto = { git => { - pkg => [ qw(curl p5-Socket6 p5-TimeDate git) ], + pkg => [ qw(curl p5-TimeDate git) ], rpm => [ qw(curl git) ], - pkg_add => [ qw(curl p5-Socket6 p5-Time-TimeDate git) ], + pkg_add => [ qw(curl p5-Time-TimeDate git) ], }, perl => { pkg => 'perl5', @@ -132,8 +132,14 @@ my $non_auto = { }, }; -# standard library stuff that CentOS 7.x (and presumably other RPM) split out: -for (qw(Digest::SHA Encode ExtUtils::MakeMaker IO::Compress Test::Simple)) { +# standard library stuff that CentOS 7.x (and presumably other RPM) +# split out and can be removed without removing the `perl' RPM: +for (qw(autodie Digest::SHA ExtUtils::MakeMaker IO::Compress Sys::Syslog + Test::Simple Text::ParseWords)) { + # n.b.: Compress::Raw::Zlib is pulled in by IO::Compress + # qw(constant Encode Getopt::Long Exporter Storable Time::HiRes) + # don't need to be here since it's impossible to have `perl' + # on CentOS 7.x without them. $non_auto->{$_} = { deb => 'perl', # libperl5.XX, but the XX varies pkg => 'perl5', |