Browse Source

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.
Peter Korsgaard 16 years ago
parent
commit
e493fc6ce5
1 changed files with 5 additions and 0 deletions
  1. 5 0
      package/dbus/dbus.mk

+ 5 - 0
package/dbus/dbus.mk

@@ -50,6 +50,11 @@ endif
 
 
 $(eval $(call AUTOTARGETS,package,dbus))
 $(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)
 $(DBUS_HOOK_POST_INSTALL): $(DBUS_TARGET_INSTALL_TARGET)
 	rm -rf $(TARGET_DIR)/usr/lib/dbus-1.0
 	rm -rf $(TARGET_DIR)/usr/lib/dbus-1.0
 	rm -rf $(TARGET_DIR)/var/lib/dbus
 	rm -rf $(TARGET_DIR)/var/lib/dbus