From 648dbba23467fe8ace4db8fcfb33fe0f46ac37c7 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 9 Dec 2024 10:11:45 +0100 Subject: [PATCH] As of Alpine 3.21 (Dec 2024), we need to patch the termcap library to include the standard headers as well as unistd.h for the write function Signed-off-by: DL6ER --- ftl-build/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ftl-build/Dockerfile b/ftl-build/Dockerfile index 9ad2e58..4d8f7c5 100644 --- a/ftl-build/Dockerfile +++ b/ftl-build/Dockerfile @@ -45,9 +45,12 @@ RUN apk add --no-cache \ ENV STATIC true ENV TEST true +# As of Alpine 3.21 (Dec 2024), we need to patch the termcap library to include +# the standard headers as well as unistd.h for the write function RUN curl -sSL https://ftl.pi-hole.net/libraries/termcap-${termcapversion}.tar.gz | tar -xz \ && cd termcap-${termcapversion} \ && ./configure --enable-static --disable-shared --disable-doc --without-examples \ + && sed -i '1i #define STDC_HEADERS 1\n#include ' termcap.c tparam.c \ && make -j $(nproc) \ && make install \ && ls /usr/local/lib/ \