]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon: fix broken build zzz_archive_boringssl
authorKo- <ko@cloudflare.com>
Thu, 16 Aug 2018 21:25:57 +0000 (22:25 +0100)
committerKo- <ko@cloudflare.com>
Thu, 16 Aug 2018 21:25:57 +0000 (22:25 +0100)
BoringSSL was not built automatically. Its dependencies (Go and Perl)
are not also added.

ci/debian-stable/Dockerfile
ci/debian-unstable/Dockerfile
daemon/daemon.mk

index d8789264668be7f3a9499c30c54dada86e66f100..a7a49a1bad209454c07ddd3ccc718631feaafa9f 100644 (file)
@@ -17,6 +17,9 @@ RUN apt-get install -y -qqq make cmake pkg-config build-essential bsdmainutils l
 # documentation dependecies
 RUN apt-get install -y -qqq doxygen python3-sphinx python3-breathe python3-sphinx-rtd-theme
 
+# Go and Perl dependencies for BoringSSL
+RUN apt-get install -y -qqq golang perl
+
 # Python packags required for Deckard CI
 # Python: grab latest versions from PyPi
 # (dnspython and Augeas binding in Debian packages are slow and buggy)
index 3c473e89aef4bc0105193db9e71973b18f165129..8c250abcfad3f1e71f8965dc0387a696b7bca3ec 100644 (file)
@@ -12,6 +12,9 @@ RUN apt-get upgrade -y -qqq
 # Knot and Knot Resolver dependecies
 RUN apt-get install -y -qqq make cmake pkg-config git build-essential bsdmainutils libtool autoconf liburcu-dev libgnutls28-dev libedit-dev liblmdb-dev libcap-ng-dev libsystemd-dev libidn11-dev protobuf-c-compiler libfstrm-dev libuv1-dev libcmocka-dev libluajit-5.1-dev lua-sec lua-socket lua-http
 
+# Go and Perl dependencies for BoringSSL
+RUN apt-get install -y -qqq golang perl
+
 # build and install latest version of Knot DNS
 # (kresd depends on libknot and libdnssec)
 RUN git clone --depth=1 --branch=$KNOT_BRANCH https://gitlab.labs.nic.cz/knot/knot-dns.git /tmp/knot
index f4fa035397bbed7937962880dc0060ad85b1a827..bb4be11db8de19d98f001a7f7e8a4686a0520304 100644 (file)
@@ -28,6 +28,17 @@ endif
 bindings-install: $(kresd_DIST) $(DESTDIR)$(MODULEDIR)
        $(INSTALL) -m 0644 $(kresd_DIST) $(DESTDIR)$(MODULEDIR)
 
+# BoringSSL
+.PHONY: boringssl boringssl-clean
+
+boringssl:
+       mkdir -p boringssl/build
+       cmake -Bboringssl/build -Hboringssl
+       make -C boringssl/build
+
+boringssl-clean:
+       @$(RM) -r boringssl/build
+
 LUA_HAS_SETFUNCS := \
        $(shell pkg-config luajit --atleast-version=2.1.0-beta3 && echo 1 || echo 0)
 
@@ -40,7 +51,7 @@ kresd_CFLAGS := -fPIE \
 
 boringssl_LIBS := -Lboringssl/build/ssl -lssl -Lboringssl/build/crypto -lcrypto
 
-kresd_DEPEND := $(libkres) $(contrib)
+kresd_DEPEND := $(libkres) $(contrib) boringssl
 kresd_LIBS := $(libkres_TARGET) $(contrib_TARGET) $(libknot_LIBS) \
               $(libzscanner_LIBS) $(libdnssec_LIBS) $(libuv_LIBS) $(lua_LIBS) \
               $(boringssl_LIBS)
@@ -66,7 +77,7 @@ ifneq ($(SED),)
        $(INSTALL) -d -m 0755 $(DESTDIR)$(MANDIR)/man8/
        $(INSTALL) -m 0644 doc/kresd.8 $(DESTDIR)$(MANDIR)/man8/
 endif
-daemon-clean: kresd-clean
+daemon-clean: kresd-clean boringssl-clean
        @$(RM) daemon/lua/*.inc daemon/lua/trust_anchors.lua
 
 daemon/lua/trust_anchors.lua: daemon/lua/trust_anchors.lua.in