From 9ef2e6e4dac5db5905ff3fb525d9dfe73476de83 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 18 Sep 2023 11:29:22 +0200 Subject: [PATCH] vim: avoid calling `make install` twice It is unclear from looking at 22f186c9f5 (Add vim package., 2013-11-05) why its `package` function needed to invoke `make install` twice. Whatever reason there might have been, it does not look as if it should be necessary anymore. So let's drop the first one, assuming that the second invocation would have fixed whatever the first invocation got wrong. Incidentally, this patch fixes the build of newer `vim` versions that would otherwise fail like this: [...] cd /C/_/vim/pkg/vim/usr/bin; ln -s vim.exe ex ln: failed to create symbolic link 'ex': File exists make[1]: *** [Makefile:2693: /C/_/vim/pkg/vim/usr/bin/ex] Error 1 make[1]: Leaving directory '/C/_/vim/src/vim-9.0.1907/src' make: *** [Makefile:39: install] Error 2 ==> ERROR: A failure occurred in package(). Aborting... Signed-off-by: Johannes Schindelin --- vim/PKGBUILD | 1 - 1 file changed, 1 deletion(-) diff --git a/vim/PKGBUILD b/vim/PKGBUILD index f6b413d3..9ebadf13 100644 --- a/vim/PKGBUILD +++ b/vim/PKGBUILD @@ -92,7 +92,6 @@ check() { package() { cd "${srcdir}"/${pkgname}-${pkgver} - make -j1 VIMRCLOC=/etc DESTDIR="${pkgdir}" install make install -j1 \ VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/vim${_topver/\.} \