From e493fc6ce5202ac008cb71ae9d5816ad11919d47 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 21 Apr 2009 15:10:39 +0000 Subject: [PATCH] dbus: fix rebuild if /var/lib is a symlink to /tmp for target /tmp/dbus will end up being a recursive symlink to itself on the build host. --- package/dbus/dbus.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk index b987b1c261..7326b419bb 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 -- 2.30.2