[Libguestfs] [PATCH 1/2] builder: Allow 'make install' to be run twice.
Richard W.M. Jones
rjones at redhat.com
Sat Oct 24 11:55:28 UTC 2015
The error is:
ln -s xdg/virt-builder /tmp/p/etc/virt-builder
ln: failed to create symbolic link '/etc/virt-builder/virt-builder': File exists
There is no 'LN_SF' macro, but according to the documentation at
least, it should be safe to add a '-f' flag since it will work for
both the 'ln' and 'cp' variants of the macro.
---
builder/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builder/Makefile.am b/builder/Makefile.am
index 0d5ce3b..68b7176 100644
--- a/builder/Makefile.am
+++ b/builder/Makefile.am
@@ -320,7 +320,7 @@ repoconf_DATA = libguestfs.conf libguestfs.gpg \
opensuse.conf opensuse.gpg
install-exec-hook:
- $(LN_S) xdg/virt-builder $(DESTDIR)$(sysconfdir)/virt-builder
+ $(LN_S) -f xdg/virt-builder $(DESTDIR)$(sysconfdir)/virt-builder
# Build a small C index validator program.
bin_PROGRAMS += virt-index-validate
--
2.5.0
More information about the Libguestfs
mailing list