keepalived: enable reproducible-build

Before keepalived version '2.3.0' the compilation was not reproducable
because the compile date and other information has been added to the binary.

Starting with version '2.3.0', there is a new compilation option
'--enable-reproducible-build' that makes the binary reproducible.

The data that prevented this has been moved to a separate file,
'/etc/keepalived/keepalived.config-opts'.

This commit enables the reproducable build.

[1] 30d2f75978

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert
2024-11-11 11:22:15 +01:00
committed by Florian Eckert
parent 5d8cf24665
commit 9db0eab9c5

View File

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=keepalived
PKG_VERSION:=2.3.3
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://www.keepalived.org/software
@@ -84,6 +84,7 @@ endef
CONFIGURE_ARGS+= \
--enable-json \
--enable-reproducible-build \
--with-init=SYSV \
--disable-track-process \
--runstatedir="/var/run"
@@ -216,6 +217,8 @@ endif
$(INSTALL_DIR) $(1)/etc/keepalived
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf.sample \
$(1)/etc/keepalived/keepalived.conf
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.config-opts \
$(1)/etc/keepalived/
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./files/etc/uci-defaults/keepalived \