[Buildroot] [PATCH 2/2] package/dbus: remove /usr/lib/dbus-1.0 if empty
Norbert Lange
nolange79 at gmail.com
Fri Jun 5 22:52:46 UTC 2020
---
package/dbus/dbus.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index bb9f17a5e0..7a7762f537 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -80,7 +80,8 @@ endef
DBUS_PRE_INSTALL_TARGET_HOOKS += DBUS_REMOVE_VAR_LIB_DBUS
define DBUS_REMOVE_DEVFILES
- rm -rf $(TARGET_DIR)/usr/lib/dbus-1.0
+ rm -rf $(TARGET_DIR)/usr/lib/dbus-1.0/include
+ -rmdir $(TARGET_DIR)/usr/lib/dbus-1.0 2>/dev/null
endef
DBUS_POST_INSTALL_TARGET_HOOKS += DBUS_REMOVE_DEVFILES
--
2.26.2
More information about the buildroot
mailing list