From c66b25ccfeeb78032a4ef0295e25ad1e5c49c495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20L=C3=BCke?= Date: Tue, 28 Jul 2020 14:47:10 +0200 Subject: [PATCH] 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 --- .../coreos-overlay/sys-apps/systemd/systemd-9999.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-9999.ebuild index 0863aecf35..892e186242 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-9999.ebuild @@ -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.