aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Daniel Salzman <daniel.salzman@nic.cz>2019-02-11 16:59:22 +0100
committerGravatar jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2019-02-11 07:59:22 -0800
commit685ded7e0a2f245f2ffecade61fb94ede11c8462 (patch)
tree1751ee03aab0226d9220a26716c5e31019c2ee64
parent6d1247c377f20a3c4282a5be0a75a09b5f3b751e (diff)
[knot-dns] fix issue 13050 + tiny script cleanup (#2157)
Signed-off-by: Daniel Salzman <daniel.salzman@nic.cz>
-rw-r--r--projects/knot-dns/Dockerfile20
-rwxr-xr-xprojects/knot-dns/build.sh4
2 files changed, 18 insertions, 6 deletions
diff --git a/projects/knot-dns/Dockerfile b/projects/knot-dns/Dockerfile
index 9084bfcb..22b10396 100644
--- a/projects/knot-dns/Dockerfile
+++ b/projects/knot-dns/Dockerfile
@@ -16,14 +16,26 @@
FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER jonathan.foote@gmail.com
-RUN apt-get update && \
- apt-get install -y autoconf autogen automake autopoint bison flex gettext \
- gperf libtool make pkg-config texinfo wget
+RUN apt-get update && apt-get install -y \
+ autoconf \
+ autogen \
+ automake \
+ autopoint \
+ bison \
+ gettext \
+ gperf \
+ libtool \
+ make \
+ pkg-config \
+ texinfo \
+ wget
+ENV GNULIB_TOOL $SRC/gnulib/gnulib-tool
+RUN git clone git://git.savannah.gnu.org/gnulib.git
RUN git clone --depth=1 --recursive https://git.savannah.gnu.org/git/libunistring.git
RUN git clone --depth=1 https://git.lysator.liu.se/nettle/nettle.git
RUN git clone --depth=1 https://gitlab.com/gnutls/gnutls.git
-
RUN git clone --depth=1 https://gitlab.labs.nic.cz/knot/knot-dns
+
WORKDIR knot-dns
COPY build.sh $SRC/
diff --git a/projects/knot-dns/build.sh b/projects/knot-dns/build.sh
index 653d89b4..05fe8366 100755
--- a/projects/knot-dns/build.sh
+++ b/projects/knot-dns/build.sh
@@ -22,9 +22,9 @@
export DEPS_PATH=$SRC/knot_deps
export PKG_CONFIG_PATH=$DEPS_PATH/lib/pkgconfig
export CPPFLAGS="-I$DEPS_PATH/include"
-export CXXFLAGS="$CPPFLAGS -std=c++11 $CXXFLAGS"
-export CFLAGS="$CPPFLAGS $CFLAGS"
export LDFLAGS="-L$DEPS_PATH/lib"
+export GNULIB_SRCDIR=$SRC/gnulib
+export GNULIB_TOOL=$SRC/gnulib/gnulib-tool
cd $SRC/libunistring
./autogen.sh