sys-apps/systemd: Guard deletion of hwdb.d folder behind use flag

Building systemd in the SDK bootstrap failed because the hwdb.d folder
did not exist. The upstream ebuild file has this guard:
https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-apps/systemd/systemd-245.5.ebuild#n390
This commit is contained in:
Kai Lüke 2020-07-28 14:47:10 +02:00
parent c0d4c41ae3
commit c66b25ccfe

View File

@ -379,7 +379,9 @@ multilib_src_install_all() {
rmdir "${ED}${rootprefix}"/sbin || die
fi
rm -r "${ED}${rootprefix}"/lib/udev/hwdb.d || die
if use hwdb; then
rm -r "${ED}${rootprefix}"/lib/udev/hwdb.d || die
fi
# Flatcar: Upstream uses keepdir commands to keep some empty
# directories.