]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
ci/deps: drop unnecessary mappings and add Inline
authorEric Wong <e@80x24.org>
Fri, 8 Sep 2023 13:09:07 +0000 (13:09 +0000)
committerEric Wong <e@80x24.org>
Fri, 8 Sep 2023 20:43:22 +0000 (20:43 +0000)
The automatic mapping can work for more packages, so redundant
entries in $non_auto are just clutter.

Unfortunately, `Inline::C' is part of `Inline' on CentOS 7.x and
OpenBSD 7.3, so we'll add $non_auto mappings for those.

We'll also depend on `IO::Compress' to simplify mappings since
that's the CPAN distribution which holds both IO::Compress::Gzip
and IO::Compress::Gunzip and I'm not aware of any packagers who
split them.

ci/deps.perl

index 119ef07ffa60093cc0a4193b102445d7a018ef30..e7d43cd9c17b82d46e18aa8dc442a96c9b5fa343 100755 (executable)
@@ -11,7 +11,9 @@ my $pkg_fmt = shift;
 
 my @test_essential = qw(Test::Simple); # we actually use Test::More
 
-# package profiles
+# package profiles.  Note we specify packages at maximum granularity,
+# which is typically deb for most things, but rpm seems to have the
+# highest granularity for things in the Prl standard library.
 my $profiles = {
        # the smallest possible profile for testing
        essential => [ qw(
@@ -20,7 +22,7 @@ my $profiles = {
                Digest::SHA
                Encode
                ExtUtils::MakeMaker
-               IO::Compress::Gzip
+               IO::Compress
                URI
                ), @test_essential ],
 
@@ -55,7 +57,7 @@ my $profiles = {
 # account for granularity differences between package systems and OSes
 my @precious;
 if ($^O eq 'freebsd') {
-       @precious = qw(perl curl Socket6 IO::Compress::Gzip);
+       @precious = qw(perl curl Socket6 IO::Compress);
 } elsif ($pkg_fmt eq 'rpm') {
        @precious = qw(perl curl);
 }
@@ -87,33 +89,26 @@ my $non_auto = {
        'Encode' => {
                deb => 'perl', # libperl5.XX, but the XX varies
                pkg => 'perl5',
-               rpm => 'perl-Encode',
        },
        'ExtUtils::MakeMaker' => {
                deb => 'perl', # perl-modules-5.xx
                pkg => 'perl5',
-               rpm => 'perl-ExtUtils-MakeMaker',
        },
-       'IO::Compress::Gzip' => {
+       'IO::Compress' => {
                deb => 'perl', # perl-modules-5.xx
                pkg => 'perl5',
-               rpm => 'perl-IO-Compress',
+       },
+       'Inline::C' => {
+               rpm => 'perl-Inline', # for CentOS 7.x, at least
        },
        'DBD::SQLite' => { deb => 'libdbd-sqlite3-perl' },
        'Plack::Test' => {
                deb => 'libplack-perl',
                pkg => 'p5-Plack',
-               rpm => 'perl-Plack-Test',
-       },
-       'URI' => {
-               deb => 'liburi-perl',
-               pkg => 'p5-URI',
-               rpm => 'perl-URI',
        },
        'Test::Simple' => {
                deb => 'perl', # perl-modules-5.XX, but the XX varies
                pkg => 'perl5',
-               rpm => 'perl-Test-Simple',
        },
        'highlight.pm' => {
                deb => 'libhighlight-perl',
@@ -131,7 +126,6 @@ my $non_auto = {
        # OS-specific
        'IO::KQueue' => {
                deb => [],
-               pkg => 'p5-IO-KQueue',
                rpm => [],
        },
 };