From 9d0439cc12d4766bf28d8e8d90e4d65130eac006 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 4 Nov 2019 13:22:38 +0100 Subject: [PATCH 1/2] keepalived: fix runtime error if kernel option CONFIG_PROC_EVENTS is not enabled This fixes a runtime startup error for system, which does not have enabled the kernel config option CONFIG_PROC_EVENTS. This workaround was published on github under the following URL. https://github.com/acassen/keepalived/issues/1119 Signed-off-by: Florian Eckert --- net/keepalived/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/keepalived/Makefile b/net/keepalived/Makefile index 86dca46a0..cc77c6520 100644 --- a/net/keepalived/Makefile +++ b/net/keepalived/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=keepalived PKG_VERSION:=2.0.19 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://www.keepalived.org/software @@ -86,7 +86,8 @@ endef CONFIGURE_ARGS+= \ --with-init=SYSV \ - --disable-nftables + --disable-nftables \ + --disable-track-process ifeq ($(CONFIG_KEEPALIVED_VRRP),) CONFIGURE_ARGS += \ From bc98aaa3f711f1cd6f7fa3a65da43411c2db98aa Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 4 Nov 2019 13:24:34 +0100 Subject: [PATCH 2/2] keepalived: set default run directory for pid file on build This fixes a runtime startup error on system which does not have a toplevel runtime directory for the pid file. On openwrt the pid is located at /var/run and not on /run. To fix that add a configure option to move the pid location to /var/run. Signed-off-by: Florian Eckert --- net/keepalived/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/keepalived/Makefile b/net/keepalived/Makefile index cc77c6520..bac2c5943 100644 --- a/net/keepalived/Makefile +++ b/net/keepalived/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=keepalived PKG_VERSION:=2.0.19 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://www.keepalived.org/software @@ -87,7 +87,8 @@ endef CONFIGURE_ARGS+= \ --with-init=SYSV \ --disable-nftables \ - --disable-track-process + --disable-track-process \ + --with-run-dir="/var/run" ifeq ($(CONFIG_KEEPALIVED_VRRP),) CONFIGURE_ARGS += \