Skip to contentSkip to conversation

dbus: ensure directory exists before installing symlink

PATCH New Danomi Manchego 2 participants 2 messages Jun 29, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dbus: ensure directory exists before installing symlink

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.

---
 package/dbus/dbus.mk |    1 +
 1 file changed, 1 insertion(+)
package/dbus/dbus.mk +1 -0
index a855f05..57274a0 100644
@@ -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
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 dbus: ensure directory exists before installing symlink

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Danomi" == Danomi Manchego <[email protected]> writes:

Danomi> If you use a custom target skeleton with no /var/lib directory, Danomi> then the symlink installation in dbus.mk will fail. This patch Danomi> fixes this issue by creating /var/lib before creating a symlink Danomi> there.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard