From 6c21e4eb7d38e018b8759b38dced2bd42f23841a Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sun, 19 Dec 2010 14:42:18 -0500 Subject: [PATCH] systemd install: Use -f for "ln" We do want to overwrite an existing install; use case is "jhbuild" type setup. https://bugs.freedesktop.org/show_bug.cgi?id=32509 --- bus/Makefile.am | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bus/Makefile.am b/bus/Makefile.am index efa8ab5..a3ff315 100644 --- a/bus/Makefile.am +++ b/bus/Makefile.am @@ -228,12 +228,12 @@ endif if HAVE_SYSTEMD # Install dbus.socket as default implementation of a D-Bus stack $(mkinstalldirs) $(DESTDIR)$(systemdsystemunitdir)/dbus.target.wants - $(LN_S) ../dbus.socket $(DESTDIR)$(systemdsystemunitdir)/dbus.target.wants/dbus.socket + $(LN_S) -f ../dbus.socket $(DESTDIR)$(systemdsystemunitdir)/dbus.target.wants/dbus.socket # Unconditionally enable D-Bus on systemd installations $(mkinstalldirs) $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants - $(LN_S) ../dbus.socket $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/dbus.socket + $(LN_S) -f ../dbus.socket $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/dbus.socket $(mkinstalldirs) $(DESTDIR)$(systemdsystemunitdir)/multi-user.target.wants - $(LN_S) ../dbus.service $(DESTDIR)$(systemdsystemunitdir)/multi-user.target.wants/dbus.service + $(LN_S) -f ../dbus.service $(DESTDIR)$(systemdsystemunitdir)/multi-user.target.wants/dbus.service endif #### Init scripts fun -- 1.7.3.3