Skip to content

Commit

Permalink
As of Alpine 3.21 (Dec 2024), we need to patch the termcap library to…
Browse files Browse the repository at this point in the history
… include the standard headers as well as unistd.h for the write function

Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Dec 9, 2024
1 parent 6f70cd5 commit 648dbba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ftl-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <unistd.h>' termcap.c tparam.c \
&& make -j $(nproc) \
&& make install \
&& ls /usr/local/lib/ \
Expand Down

0 comments on commit 648dbba

Please sign in to comment.