From 34ec887da5b1e66f2af54c50506fecb1eeb28095 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 16 Oct 2026 22:53:28 -1000 Subject: Say how to build cgit on musl Git's code there needs the kernel headers and its bundled regex, and the build failed with nothing to say so. --- README.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.txt b/README.txt index 4d3ab51..998c072 100644 --- a/README.txt +++ b/README.txt @@ -34,6 +34,12 @@ by providing a cgit.conf file, see the Makefile for details. The only required library is zlib. cgit builds without OpenSSL, libcurl, gettext or Tcl, so no development packages for those are needed. +On a musl system such as Alpine, Git's code also needs the Linux kernel headers, +packaged there as linux-headers, and its bundled regex in place of musl's, which +lacks REG_STARTEND. make test takes the same setting. + + $ make NO_REGEX=YesPlease + Lua is optional and only powers the lua: filter extensions, the filters in custom/extensions/. A plain build auto-detects a Lua through pkg-config, preferring LuaJIT, and falls back to a Lua-less binary when none is found. To -- cgit