diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-03-11 17:35:54 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-03-12 08:15:43 -0700 |
| commit | d3b2d1f56a3923de5dfa8970ec327e415e52f375 (patch) | |
| tree | 79f50cb0dbdec27f3835990008b89a3f51afd537 | |
| parent | 1ba3aca0c5cc6def38514b086bc29d5166e148e0 (diff) | |
| download | meta-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.bb | 6 |
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 | ||
| 22 | inherit autotools pkgconfig systemd | 22 | inherit autotools pkgconfig systemd |
| 23 | 23 | ||
| 24 | PACKAGECONFIG ??= "libnl snmp \ | 24 | PACKAGECONFIG ??= "libnl snmp reproducible \ |
| 25 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | 25 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ |
| 26 | " | 26 | " |
| 27 | PACKAGECONFIG[libnl] = "--enable-libnl,--disable-libnl,libnl" | 27 | PACKAGECONFIG[libnl] = "--enable-libnl,--disable-libnl,libnl" |
| 28 | PACKAGECONFIG[reproducible] = "--enable-reproducible-build,," | ||
| 28 | PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp" | 29 | PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp" |
| 29 | PACKAGECONFIG[systemd] = "--with-init=systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--with-init=SYSV,systemd" | 30 | PACKAGECONFIG[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 | ||
| 50 | PACKAGE_BEFORE_PN = "${PN}-samples" | 54 | PACKAGE_BEFORE_PN = "${PN}-samples" |
