]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2031: Makefile: cannot run make installinks twice v9.1.2031
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 28 Dec 2025 14:26:52 +0000 (14:26 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 28 Dec 2025 14:26:52 +0000 (14:26 +0000)
Problem:  Makefile: cannot run make installinks twice
Solution: Change "ln -s" to "ln -sf" to force creation of the symlinks
          (Thomas Petazzoni)

Running "make installlinks" twice towards the same destination
directory will fail, as symlink will already exist. This is not really
expected as "make install" is normally expected to work again and
again towards the same destination directory.

Fix this by using ln -sf.

closes: #19035

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/Makefile
src/version.c

index 6fb1eb95e284019c0630a5c2f2fca040abf98da9..39f798260e2f4fd8dd7abd0ce84aec6679998539 100644 (file)
@@ -2746,40 +2746,40 @@ installvimdiff: $(DEST_BIN)/$(VIMDIFFTARGET)
 installgvimdiff: $(DEST_BIN)/$(GVIMDIFFTARGET)
 
 $(DEST_BIN)/$(EXTARGET): $(DEST_BIN)
-       cd $(DEST_BIN); ln -s $(VIMTARGET) $(EXTARGET)
+       cd $(DEST_BIN); ln -sf $(VIMTARGET) $(EXTARGET)
 
 $(DEST_BIN)/$(VIEWTARGET): $(DEST_BIN)
-       cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIEWTARGET)
+       cd $(DEST_BIN); ln -sf $(VIMTARGET) $(VIEWTARGET)
 
 $(DEST_BIN)/$(GVIMTARGET): $(DEST_BIN)
-       cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMTARGET)
+       cd $(DEST_BIN); ln -sf $(VIMTARGET) $(GVIMTARGET)
 
 $(DEST_BIN)/$(GVIEWTARGET): $(DEST_BIN)
-       cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIEWTARGET)
+       cd $(DEST_BIN); ln -sf $(VIMTARGET) $(GVIEWTARGET)
 
 $(DEST_BIN)/$(RVIMTARGET): $(DEST_BIN)
-       cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIMTARGET)
+       cd $(DEST_BIN); ln -sf $(VIMTARGET) $(RVIMTARGET)
 
 $(DEST_BIN)/$(RVIEWTARGET): $(DEST_BIN)
-       cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIEWTARGET)
+       cd $(DEST_BIN); ln -sf $(VIMTARGET) $(RVIEWTARGET)
 
 $(DEST_BIN)/$(RGVIMTARGET): $(DEST_BIN)
-       cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIMTARGET)
+       cd $(DEST_BIN); ln -sf $(VIMTARGET) $(RGVIMTARGET)
 
 $(DEST_BIN)/$(RGVIEWTARGET): $(DEST_BIN)
-       cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIEWTARGET)
+       cd $(DEST_BIN); ln -sf $(VIMTARGET) $(RGVIEWTARGET)
 
 $(DEST_BIN)/$(VIMDIFFTARGET): $(DEST_BIN)
-       cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIMDIFFTARGET)
+       cd $(DEST_BIN); ln -sf $(VIMTARGET) $(VIMDIFFTARGET)
 
 $(DEST_BIN)/$(GVIMDIFFTARGET): $(DEST_BIN)
-       cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMDIFFTARGET)
+       cd $(DEST_BIN); ln -sf $(VIMTARGET) $(GVIMDIFFTARGET)
 
 $(DEST_BIN)/$(EVIMTARGET): $(DEST_BIN)
-       cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIMTARGET)
+       cd $(DEST_BIN); ln -sf $(VIMTARGET) $(EVIMTARGET)
 
 $(DEST_BIN)/$(EVIEWTARGET): $(DEST_BIN)
-       cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIEWTARGET)
+       cd $(DEST_BIN); ln -sf $(VIMTARGET) $(EVIEWTARGET)
 
 # Create links for the manual pages with various names to vim. This is only
 # done when the links (or manpages with the same name) don't exist yet.
index 14628eed34b592d214b087f05654be5593981361..e2a7f32f44feb551e5305ceb26d41a60de2aa4ad 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2031,
 /**/
     2030,
 /**/