mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-12 05:11:59 +00:00
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>
This commit is contained in:
@@ -21,10 +21,11 @@ DEPENDS = "libnfnetlink openssl"
|
|||||||
|
|
||||||
inherit autotools pkgconfig systemd
|
inherit autotools pkgconfig systemd
|
||||||
|
|
||||||
PACKAGECONFIG ??= "libnl snmp \
|
PACKAGECONFIG ??= "libnl snmp reproducible \
|
||||||
${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
|
${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
|
||||||
"
|
"
|
||||||
PACKAGECONFIG[libnl] = "--enable-libnl,--disable-libnl,libnl"
|
PACKAGECONFIG[libnl] = "--enable-libnl,--disable-libnl,libnl"
|
||||||
|
PACKAGECONFIG[reproducible] = "--enable-reproducible-build,,"
|
||||||
PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp"
|
PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp"
|
||||||
PACKAGECONFIG[systemd] = "--with-init=systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--with-init=SYSV,systemd"
|
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
|
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
|
install -D -m 0644 ${B}/${BPN}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service
|
||||||
fi
|
fi
|
||||||
|
if [ -n "${@bb.utils.filter('PACKAGECONFIG', 'reproducible', d)}" ]; then
|
||||||
|
sed -i -e 's|${WORKDIR}|<scrubbed>|g' ${D}${sysconfdir}/keepalived/keepalived.config-opts
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGE_BEFORE_PN = "${PN}-samples"
|
PACKAGE_BEFORE_PN = "${PN}-samples"
|
||||||
|
|||||||
Reference in New Issue
Block a user