Skip to content

Commit 648dbba

Browse files
committed
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 <[email protected]>
1 parent 6f70cd5 commit 648dbba

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ftl-build/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ RUN apk add --no-cache \
4545
ENV STATIC true
4646
ENV TEST true
4747

48+
# As of Alpine 3.21 (Dec 2024), we need to patch the termcap library to include
49+
# the standard headers as well as unistd.h for the write function
4850
RUN curl -sSL https://ftl.pi-hole.net/libraries/termcap-${termcapversion}.tar.gz | tar -xz \
4951
&& cd termcap-${termcapversion} \
5052
&& ./configure --enable-static --disable-shared --disable-doc --without-examples \
53+
&& sed -i '1i #define STDC_HEADERS 1\n#include <unistd.h>' termcap.c tparam.c \
5154
&& make -j $(nproc) \
5255
&& make install \
5356
&& ls /usr/local/lib/ \

0 commit comments

Comments
 (0)