summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2025-03-11 17:35:54 -0700
committerKhem Raj <raj.khem@gmail.com>2025-03-12 08:15:43 -0700
commitd3b2d1f56a3923de5dfa8970ec327e415e52f375 (patch)
tree79f50cb0dbdec27f3835990008b89a3f51afd537
parent1ba3aca0c5cc6def38514b086bc29d5166e148e0 (diff)
downloadmeta-openembedded-d3b2d1f56a3923de5dfa8970ec327e415e52f375.tar.gz
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 <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-daemons/keepalived/keepalived_2.3.2.bb6
1 files changed, 5 insertions, 1 deletions
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"
21 21
22inherit autotools pkgconfig systemd 22inherit autotools pkgconfig systemd
23 23
24PACKAGECONFIG ??= "libnl snmp \ 24PACKAGECONFIG ??= "libnl snmp reproducible \
25 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ 25 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
26" 26"
27PACKAGECONFIG[libnl] = "--enable-libnl,--disable-libnl,libnl" 27PACKAGECONFIG[libnl] = "--enable-libnl,--disable-libnl,libnl"
28PACKAGECONFIG[reproducible] = "--enable-reproducible-build,,"
28PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp" 29PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp"
29PACKAGECONFIG[systemd] = "--with-init=systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--with-init=SYSV,systemd" 30PACKAGECONFIG[systemd] = "--with-init=systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--with-init=SYSV,systemd"
30 31
@@ -45,6 +46,9 @@ do_install:append() {
45 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 46 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
46 install -D -m 0644 ${B}/${BPN}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service 47 install -D -m 0644 ${B}/${BPN}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service
47 fi 48 fi
49 if [ -n "${@bb.utils.filter('PACKAGECONFIG', 'reproducible', d)}" ]; then
50 sed -i -e 's|${WORKDIR}|<scrubbed>|g' ${D}${sysconfdir}/keepalived/keepalived.config-opts
51 fi
48} 52}
49 53
50PACKAGE_BEFORE_PN = "${PN}-samples" 54PACKAGE_BEFORE_PN = "${PN}-samples"