summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/dbus/dbus.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index b987b1c26..7326b419b 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -50,6 +50,11 @@ endif
$(eval $(call AUTOTARGETS,package,dbus))
+# fix rebuild if /var/lib is a symlink to /tmp
+$(DBUS_HOOK_POST_BUILD): $(DBUS_TARGET_BUILD)
+ rm -rf /tmp/dbus
+ touch $@
+
$(DBUS_HOOK_POST_INSTALL): $(DBUS_TARGET_INSTALL_TARGET)
rm -rf $(TARGET_DIR)/usr/lib/dbus-1.0
rm -rf $(TARGET_DIR)/var/lib/dbus