From: Peter Korsgaard Date: Tue, 21 Apr 2009 15:10:39 +0000 (-0000) Subject: dbus: fix rebuild if /var/lib is a symlink to /tmp for target X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e493fc6ce5202ac008cb71ae9d5816ad11919d47;p=buildroot.git 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. --- 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