From 5c5ab7302607eecae3caf49f591a3bdc0e6cf634 Mon Sep 17 00:00:00 2001 From: Origami Official <64251776+origamiofficial@users.noreply.github.com> Date: Thu, 4 May 2023 16:22:39 +0600 Subject: [PATCH] [Fix] Error: util/configlexer.c: No such file or directory The error happens because a recent code contribution removed the generated lexer and parser files from the code repository. With installed flex and bison, the files are created during the compile. Thanks to [@wcawijngaards](https://github.com/wcawijngaards) for the fix explained [here](https://github.com/NLnetLabs/unbound/issues/885#issuecomment-1534391750) --- dev/Dockerfile | 2 +- latest/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/Dockerfile b/dev/Dockerfile index a3d2118..0198cc1 100644 --- a/dev/Dockerfile +++ b/dev/Dockerfile @@ -33,7 +33,7 @@ WORKDIR /tmp/src COPY --from=openssl /opt/openssl /opt/openssl -RUN build_deps="curl gcc libc-dev libevent-dev libexpat1-dev libnghttp2-dev make bison" && \ +RUN build_deps="curl gcc libc-dev libevent-dev libexpat1-dev libnghttp2-dev make flex bison" && \ set -x && \ DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \ $build_deps \ diff --git a/latest/Dockerfile b/latest/Dockerfile index ce73dfa..fbc865c 100644 --- a/latest/Dockerfile +++ b/latest/Dockerfile @@ -33,7 +33,7 @@ WORKDIR /tmp/src COPY --from=openssl /opt/openssl /opt/openssl -RUN build_deps="curl gcc libc-dev libevent-dev libexpat1-dev libnghttp2-dev make bison" && \ +RUN build_deps="curl gcc libc-dev libevent-dev libexpat1-dev libnghttp2-dev make flex bison" && \ set -x && \ DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \ $build_deps \