From 1e9b17d789b7d0915c1104a75f9275bf99e47d01 Mon Sep 17 00:00:00 2001 From: James-Crowley Date: Wed, 10 Feb 2021 10:40:20 -0500 Subject: [PATCH] Replacing uname with dpkg --- Dockerfile-auth | 4 ++-- Dockerfile-dnsdist | 4 ++-- Dockerfile-recursor | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile-auth b/Dockerfile-auth index c5fa4a386b..fedab975c2 100644 --- a/Dockerfile-auth +++ b/Dockerfile-auth @@ -1,7 +1,7 @@ # our chosen base image FROM debian:10-slim AS builder -ENV NO_LUA_JIT="s390x aarch64" +ENV NO_LUA_JIT="s390x arm64" # TODO: make sure /source looks roughly the same from git or tar @@ -45,7 +45,7 @@ RUN if [ "${DOCKER_FAKE_RELEASE}" = "YES" ]; then \ # simplify repeated -C calls with SUBDIRS? RUN mkdir /build && \ - LUAVER=$([ -z "${NO_LUA_JIT##*$(uname -m)*}" ] && echo 'lua5.3' || echo 'luajit') && \ + LUAVER=$([ -z "${NO_LUA_JIT##*$(dpkg --print-architecture)*}" ] && echo 'lua5.3' || echo 'luajit') && \ ./configure \ --with-lua=${LUAVER} \ --sysconfdir=/etc/powerdns \ diff --git a/Dockerfile-dnsdist b/Dockerfile-dnsdist index ed636e45c1..521bc173db 100644 --- a/Dockerfile-dnsdist +++ b/Dockerfile-dnsdist @@ -1,7 +1,7 @@ # our chosen base image FROM debian:10-slim AS builder -ENV NO_LUA_JIT="s390x aarch64" +ENV NO_LUA_JIT="s390x arm64" # TODO: make sure /source looks roughly the same from git or tar @@ -41,7 +41,7 @@ RUN if [ "${DOCKER_FAKE_RELEASE}" = "YES" ]; then \ BUILDER_MODULES=dnsdist autoreconf -vfi RUN mkdir /build && \ - LUAVER=$([ -z "${NO_LUA_JIT##*$(uname -m)*}" ] && echo 'lua5.3' || echo 'luajit') && \ + LUAVER=$([ -z "${NO_LUA_JIT##*$(dpkg --print-architecture)*}" ] && echo 'lua5.3' || echo 'luajit') && \ ./configure \ --with-lua=${LUAVER} \ LDFLAGS=-rdynamic \ diff --git a/Dockerfile-recursor b/Dockerfile-recursor index ef8a56358f..beee2fd9ef 100644 --- a/Dockerfile-recursor +++ b/Dockerfile-recursor @@ -7,7 +7,7 @@ # Builder FROM debian:10-slim AS builder -ENV NO_LUA_JIT="s390x aarch64" +ENV NO_LUA_JIT="s390x arm64" # Reusable layer for base update RUN apt-get update && apt-get -y dist-upgrade && apt-get clean @@ -49,7 +49,7 @@ RUN if [ "${DOCKER_FAKE_RELEASE}" = "YES" ]; then \ BUILDER_MODULES=recursor autoreconf -vfi RUN mkdir /build && \ - LUAVER=$([ -z "${NO_LUA_JIT##*$(uname -m)*}" ] && echo 'lua5.3' || echo 'luajit') && \ + LUAVER=$([ -z "${NO_LUA_JIT##*$(dpkg --print-architecture)*}" ] && echo 'lua5.3' || echo 'luajit') && \ ./configure \ --with-lua=${LUAVER} \ LDFLAGS=-rdynamic \ -- 2.47.2