Commit: patch 9.1.0696: installing runtime files fails when using SHADOWDIR

12 views
Skip to first unread message

Christian Brabandt

unread,
Aug 25, 2024, 2:30:11 PM8/25/24
to vim...@googlegroups.com
patch 9.1.0696: installing runtime files fails when using SHADOWDIR

Commit: https://github.com/vim/vim/commit/663950d700f496c1db09307253e6b1b2a56140d5
Author: James McCoy <jame...@jamessan.com>
Date: Sun Aug 25 20:22:11 2024 +0200

patch 9.1.0696: installing runtime files fails when using SHADOWDIR

Problem: installing runtime files fails when using SHADOWDIR
Solution: revert part of v9.1.0609, since runtime/doc/Makefile's default
value for VIMPROG does not work if vim was built in a SHADOWDIR.
(James McCoy)

closes: #15575

Signed-off-by: James McCoy <jame...@jamessan.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/Makefile b/src/Makefile
index 875a0de6a..257742f4c 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -2354,8 +2354,8 @@ installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(VIMTARGET) $(DEST_RT) \
cd $(HELPSOURCE); if test -z "$(CROSS_COMPILING)" -a -f tags; then \
mv -f tags tags.dist; fi
@echo generating help tags
- -@cd $(HELPSOURCE); if test -z "$(CROSS_COMPILING)"; then \
- $(MAKE) vimtags; fi
+ -@BUILD_DIR=`pwd`; cd $(HELPSOURCE); if test -z "$(CROSS_COMPILING)"; then \
+ $(MAKE) VIMPROG="$$BUILD_DIR/$(VIMTARGET)" vimtags; fi
cd $(HELPSOURCE); \
files=`ls *.txt tags`; \
files="$$files `ls *.??x tags-?? 2>/dev/null || true`"; \
diff --git a/src/version.c b/src/version.c
index 8252d9f30..b07964e2d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 696,
/**/
695,
/**/

Tony Mechelynck

unread,
Aug 25, 2024, 4:16:39 PM8/25/24
to Christian Brabandt, vim...@googlegroups.com
On Sun, Aug 25, 2024 at 8:30 PM Christian Brabandt <cbl...@256bit.org> wrote:
>
> patch 9.1.0696: installing runtime files fails when using SHADOWDIR
>
> Commit: https://github.com/vim/vim/commit/663950d700f496c1db09307253e6b1b2a56140d5
> Author: James McCoy <jame...@jamessan.com>
> Date: Sun Aug 25 20:22:11 2024 +0200
>
> patch 9.1.0696: installing runtime files fails when using SHADOWDIR
>
> Problem: installing runtime files fails when using SHADOWDIR
> Solution: revert part of v9.1.0609, since runtime/doc/Makefile's default
> value for VIMPROG does not work if vim was built in a SHADOWDIR.
> (James McCoy)
>
> closes: #15575
>
> Signed-off-by: James McCoy <jame...@jamessan.com>
> Signed-off-by: Christian Brabandt <c...@256bit.org>
>
> diff --git a/src/Makefile b/src/Makefile
[...]

Ah, so that's what it was.

I had recently noticed that "rm -v runtime/doc/tags" followed by "hg
fetch" in the top directory, build in several shadow directories
followed by "make install" in one of them didn't rebuild the tags file
anymore; I had also found out that "make tags" in the doc subrepo did
rebuild it. I said nothing because I thought it might be intentional
and I had found a workaround anyway. Today (after this patch) I built
in my usual way in my usual 5 shadow dirs followed by "make install"
in one of them and "make installvimbin" in the other four (but no
separate "make tags"), and checked my $VIMRUNTIME/doc/tags — it was
there, and dated "a few seconds ago".

Thanks James and Christian !

Best regards,
Tony.
Reply all
Reply to author
Forward
0 new messages