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/Dockerfile b/Dockerfile
index caa9fb1..2f429a3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -33,9 +33,9 @@
COPY . .
-# Install dependencies
+# Install dependencies. Devel::CheckLib, which Makefile.PL needs to find
+# libcollocatordb, comes bundled in inc/
RUN cpm install -g https://github.com/Akron/Mojolicious-Plugin-Localize.git && \
- cpm install -g Devel::CheckLib && \
cpm install -g
# Build derekovecs