Fix Libreswan 3.22 bug

- This bug causes Libreswan 3.22 fail to start on a Raspberry Pi
- Apply fix from Libreswan GitHub repo: libreswan/libreswan@e154ae7
- Ref: https://lists.libreswan.org/pipermail/swan/2017/002338.html
This commit is contained in:
hwdsl2
2017-11-13 00:06:02 -06:00
parent dccc2ead32
commit 2e9a0e286d
+1
View File
@@ -21,6 +21,7 @@ RUN apt-get -yqq update \
&& tar xzf "libreswan.tar.gz" \
&& rm -f "libreswan.tar.gz" \
&& cd "libreswan-${SWAN_VER}" \
&& sed -i '/^#define LSWBUF_CANARY/s/-2$/((char) -2)/' include/lswlog.h \
&& printf 'WERROR_CFLAGS =\nUSE_DNSSEC = false\nUSE_SYSTEMD_WATCHDOG = false\n' > Makefile.inc.local \
&& make -s base \
&& make -s install-base \