From d3b2d1f56a3923de5dfa8970ec327e415e52f375 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 11 Mar 2025 17:35:54 -0700 Subject: keepalived: Make keepalived cross compile reproducible This should help with not emitting configure commandline into binaries, these may contain absolute build paths Signed-off-by: Khem Raj --- meta-networking/recipes-daemons/keepalived/keepalived_2.3.2.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'meta-networking') diff --git a/meta-networking/recipes-daemons/keepalived/keepalived_2.3.2.bb b/meta-networking/recipes-daemons/keepalived/keepalived_2.3.2.bb index c0a2e57bfb..6fb4886b96 100644 --- a/meta-networking/recipes-daemons/keepalived/keepalived_2.3.2.bb +++ b/meta-networking/recipes-daemons/keepalived/keepalived_2.3.2.bb @@ -21,10 +21,11 @@ DEPENDS = "libnfnetlink openssl" inherit autotools pkgconfig systemd -PACKAGECONFIG ??= "libnl snmp \ +PACKAGECONFIG ??= "libnl snmp reproducible \ ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ " PACKAGECONFIG[libnl] = "--enable-libnl,--disable-libnl,libnl" +PACKAGECONFIG[reproducible] = "--enable-reproducible-build,," PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp" PACKAGECONFIG[systemd] = "--with-init=systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--with-init=SYSV,systemd" @@ -45,6 +46,9 @@ do_install:append() { if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then install -D -m 0644 ${B}/${BPN}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service fi + if [ -n "${@bb.utils.filter('PACKAGECONFIG', 'reproducible', d)}" ]; then + sed -i -e 's|${WORKDIR}||g' ${D}${sysconfdir}/keepalived/keepalived.config-opts + fi } PACKAGE_BEFORE_PN = "${PN}-samples" -- cgit v1.2.3-54-g00ecf