From 16d34bfe82605e30f068c775671ae1dd0f178eeb Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 2 Jun 2014 13:16:34 +0200 Subject: [PATCH] build: fix installing network-online.target for existing link MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When reinstalling NM on the same location, it would fail with Making install in data make[1]: Entering directory `/home/data/src/NetworkManager/data' make[2]: Entering directory `/home/data/src/NetworkManager/data' install -d /opt/test/lib/systemd/system/network-online.target.wants ln -s /opt/test/lib/systemd/system/NetworkManager-wait-online.service /opt/test/lib/systemd/system/network-online.target.wants ln: failed to create symbolic link ‘/opt/test/lib/systemd/system/network-online.target.wants/NetworkManager-wait-online.service’: File exists make[2]: *** [install-exec-local] Error 1 https://bugzilla.gnome.org/show_bug.cgi?id=728965 Signed-off-by: Thomas Haller --- data/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/Makefile.am b/data/Makefile.am index 709dfe2076..e91361a71b 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -28,7 +28,7 @@ $(service_DATA): $(service_in_files) Makefile install-exec-local: install -d $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants - ln -s $(systemdsystemunitdir)/NetworkManager-wait-online.service $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants + ln -sf $(systemdsystemunitdir)/NetworkManager-wait-online.service $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants endif examplesdir = $(docdir)/examples