dbus: ensure directory exists before installing symlink
authorDanomi Manchego <danomimanchego123@gmail.com>
Sat, 29 Jun 2013 13:27:04 +0000 (09:27 -0400)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 29 Jun 2013 19:03:34 +0000 (21:03 +0200)
If you use a custom target skeleton with no /var/lib directory,
then the symlink installation in dbus.mk will fail.  This patch
fixes this issue by creating /var/lib before creating a symlink
there.

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/dbus/dbus.mk

index a855f059a71371185374683cba02fd525cef3cb9..57274a0cd9dc7f4e5533149db697cfd6c8b0cc52 100644 (file)
@@ -66,6 +66,7 @@ DBUS_POST_INSTALL_TARGET_HOOKS += DBUS_REMOVE_DEVFILES
 endif
 
 define DBUS_INSTALL_TARGET_FIXUP
+       mkdir -p $(TARGET_DIR)/var/lib
        rm -rf $(TARGET_DIR)/var/lib/dbus
        ln -sf /tmp/dbus $(TARGET_DIR)/var/lib/dbus
        $(INSTALL) -m 0755 -D package/dbus/S30dbus $(TARGET_DIR)/etc/init.d/S30dbus