Bundle Devel::CheckLib in inc/
Makefile.PL uses Devel::CheckLib to look for libcollocatordb, and cpanm runs
Makefile.PL to find out about the dependencies, so it has to be there before
anything else can be installed. That is what the "use lib qw(inc)" in
Makefile.PL is for, only that inc/Devel/CheckLib.pm was never committed, so it
existed on developer machines but in no clean checkout.
Version 1.16 as required by Makefile.PL, distributed under the same terms as
perl itself, with the package statement split the way Devel::CheckLib
documents it for bundling, so that it is not indexed.
CI and the docker image do not have to install it separately anymore. Verified
in the CI image without Devel::CheckLib installed: Makefile.PL writes its
Makefile and cpanm --installdeps resolves the dependencies.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Change-Id: I321954ce2db07dbead3a5322da0dc0385ba00c91
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6c275ec..b4ada36 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -55,9 +55,8 @@
script:
- start_section build_perl_dependencies "Installing Perl dependencies"
- cpanm -n -l $PERL_LOCAL_LIB_ROOT https://github.com/Akron/Mojolicious-Plugin-Localize.git
- # Makefile.PL uses Devel::CheckLib to look for libcollocatordb, so it has to
- # be there before --installdeps can determine the dependencies at all
- - cpanm -n -l $PERL_LOCAL_LIB_ROOT Devel::CheckLib
+ # Devel::CheckLib, which Makefile.PL needs to find libcollocatordb before it
+ # can tell anybody about the dependencies, comes bundled in inc/
- cpanm -n -l $PERL_LOCAL_LIB_ROOT --installdeps .
- end_section build_perl_dependencies