File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11ARG CONTAINER="alpine:edge"
22FROM ${CONTAINER} AS builder
33
4+ ARG TARGETPLATFORM
45ARG idnversion=1.41
56ARG readlineversion=8.1
67ARG termcapversion=1.3.1
78ARG nettleversion=3.9.1
8- ARG mbedtlsversion=3.4.1
9+ ARG mbedtlsversion=3.5.0
910
1011RUN apk add --no-cache \
1112 alpine-sdk \
@@ -74,10 +75,16 @@ RUN curl -sSL https://ftl.pi-hole.net/libraries/nettle-${nettleversion}.tar.gz |
7475 && rm -r nettle-${nettleversion}
7576
7677# Build static mbedTLS with pthread support
78+ # Disable AESNI on linux/386 asit would possibly result in an incompatible
79+ # binary in processors lacking the AESNI and SSE2 instruction sets
7780RUN curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.gz | tar -xz \
7881 && cd mbedtls-${mbedtlsversion} \
7982 && sed -i '/#define MBEDTLS_THREADING_C/s*^//**g' include/mbedtls/mbedtls_config.h \
8083 && sed -i '/#define MBEDTLS_THREADING_PTHREAD/s*^//**g' include/mbedtls/mbedtls_config.h \
84+ && ( [ "${TARGETPLATFORM}" = "linux/386" ] \
85+ && echo "BUILDING WITHOUT AESNI SUPPORT" \
86+ && sed -i '/#define MBEDTLS_AESNI_C/s*^*//*g' include/mbedtls/mbedtls_config.h \
87+ || echo "BUILDING WITH AESNI SUPPORT" ) \
8188 && make -j $(nproc) install \
8289 && cd .. \
8390 && rm -r mbedtls-${mbedtlsversion}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ARG idnversion=1.41
77ARG readlineversion=8.1
88ARG termcapversion=1.3.1
99ARG nettleversion=3.9.1
10- ARG mbedtlsversion=3.4.1
10+ ARG mbedtlsversion=3.5.0
1111
1212# Switch repositories to the archive server
1313RUN if [ "${CONTAINER}" = "debian:stretch-slim" ]; then \
You can’t perform that action at this time.
0 commit comments