aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Danomi Manchego <danomimanchego123@gmail.com>2017-05-05 20:51:18 -0400
committerGravatar Peter Korsgaard <peter@korsgaard.com>2017-05-06 10:55:02 +0200
commitc2d6c4ac3277e545ef27b3d4f3e6d94e50d76256 (patch)
treefb5d028ae785655287c831b8ea785cb359da874f
parentcb9af5451cef12efba1e1602f3197415ceb1f1ee (diff)
downloadbuildroot-c2d6c4ac3277e545ef27b3d4f3e6d94e50d76256.tar.gz
buildroot-c2d6c4ac3277e545ef27b3d4f3e6d94e50d76256.tar.bz2
dbus: fix dbus symlink removal
There was already a post-build hook to delete the /var/lib/dbus symlink created by buildroot after the package's own installation, to prevent a dbus installation error during "make dbus-rebuild". However, this misses the case for when one might delete the .stamp_target_installed file manually, outside of dbus-rebuild. This can be fixed by changing the post-build hook to a pre-install hook. This seems appropriate, since it is really addressing an installation issue, not a build issue. Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/dbus/dbus.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index d333b203be..ce4032994b 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -82,7 +82,7 @@ define DBUS_REMOVE_VAR_LIB_DBUS
rm -rf $(TARGET_DIR)/var/lib/dbus
endef
-DBUS_POST_BUILD_HOOKS += DBUS_REMOVE_VAR_LIB_DBUS
+DBUS_PRE_INSTALL_TARGET_HOOKS += DBUS_REMOVE_VAR_LIB_DBUS
define DBUS_REMOVE_DEVFILES
rm -rf $(TARGET_DIR)/usr/lib/dbus-1.0