From: Peter Kjellerstedt Date: Fri, 20 Sep 2019 07:25:27 +0000 (+0200) Subject: systemd: Make it build with hwdb disabled X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~13184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f9706d39713f967e10e3a41313ddacb03b0ca94;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git systemd: Make it build with hwdb disabled If hwdb is disabled, then systemd-hwdb-update.service does not exists. Do not try to modify it in this case. Signed-off-by: Peter Kjellerstedt Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/systemd/systemd_243.bb b/meta/recipes-core/systemd/systemd_243.bb index f0e8c569b81..d0f9d17dba8 100644 --- a/meta/recipes-core/systemd/systemd_243.bb +++ b/meta/recipes-core/systemd/systemd_243.bb @@ -299,9 +299,10 @@ do_install() { } do_install_append () { - # Mips qemu is extremely slow, allow more time for the hwdb update - # This is a workaround until https://github.com/systemd/systemd/issues/13581 is resolved - sed -i -e s#TimeoutSec=90s#TimeoutSec=180s# ${D}${systemd_unitdir}/system/systemd-hwdb-update.service + # Mips qemu is extremely slow, allow more time for the hwdb update + # This is a workaround until https://github.com/systemd/systemd/issues/13581 is resolved + [ ! -e ${D}${systemd_unitdir}/system/systemd-hwdb-update.service ] || + sed -i -e s#TimeoutSec=90s#TimeoutSec=180s# ${D}${systemd_unitdir}/system/systemd-hwdb-update.service } python populate_packages_prepend (){