]> quire.kejadlen.dev Git - quire.git/commitdiff
Install perl in git-builder stage so make can build git
authorClaude <noreply@anthropic.com>
Sun, 26 Apr 2026 01:56:08 +0000 (01:56 +0000)
committerAlpha Chen <alpha@kejadlen.dev>
Sun, 26 Apr 2026 03:06:42 +0000 (20:06 -0700)
debian:trixie-slim ships without perl, but git's Makefile invokes
/usr/bin/perl during the build to generate sources (command-list,
GIT-VERSION-FILE, perl/Makefile via ExtUtils::MakeMaker, etc.).
Without it, `make` aborts almost immediately with exit 2, which is
what run 24932667835's Build job hit.

The git INSTALL doc lists Perl 5.26+ as a required build dep.

Dockerfile

index c2ee439da96628d5ec2ee8ce2810506c6e79b4c8..8221c3a2f52573e14f7ab1e818f88b62264c84bc 100644 (file)
@@ -18,6 +18,7 @@ RUN apt-get update \
         libssl-dev \
         libz-dev \
         make \
+        perl \
     && rm -rf /var/lib/apt/lists/*
 
 RUN curl -fsSL https://github.com/git/git/archive/refs/tags/v${GIT_VERSION}.tar.gz \