[vim/vim] `configure --prefix=.. && make install` no longer respects the prefixed path (Issue #12882)

16 views
Skip to first unread message

William Ting

unread,
Aug 22, 2023, 3:01:49 AM8/22/23
to vim/vim, Subscribed

Steps to reproduce

  1. git clone --depth=1 https://github.com/vim/vim.git
  2. cd vim
  3. make distclean; ./configure --prefix="/tmp/vim-test" 1>/dev/null && make reconfig 1>/dev/null && make install

Expected behaviour

I expect all vim-related files to be installed in the --prefix=.. path, or /tmp/vim-test in the prior example.

Version of Vim

git commit sha 6909639

Environment

  • OS: Ubuntu 22.04.3 LTS
  • shell: zsh 5.8.1
  • $TERM: screen-256color-bce

Logs and stack traces

?─ting@sfo2-williamting ~/code/vim ?python3.10.12? ?master?6909639?
??  make distclean; ./configure --prefix="/tmp/vim-test" 1>/dev/null && make reconfig 1>/dev/null && make -j2 1>/dev/null && make install
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make distclean
make[1]: Entering directory '/home/ting/code/vim/src'
cd testdir; make -f Makefile clean
make[2]: Entering directory '/home/ting/code/vim/src/testdir'
rm -rf *.out *.failed *.res *.rej *.orig XfakeHOME Xdir1 Xfind
rm -f opt_test.vim test_result.log test.log messages starttime
rm -rf test.out X* viminfo test.ok benchmark.out
rm -f valgrind.*
rm -f asan.*
rm -f guidialog guidialogfile
make[2]: Leaving directory '/home/ting/code/vim/src/testdir'
if test -d po; then \
        cd po; make checkclean; \
fi
make[2]: Entering directory '/home/ting/code/vim/src/po'
rm -f *.ck
make[2]: Leaving directory '/home/ting/code/vim/src/po'
rm -f *.o core vim.core vim vim xxd/*.o
rm -rf objects
rm -f xxd/xxd auto/osdef.h auto/pathdef.c auto/if_perl.c auto/gui_gtk_gresources.c auto/gui_gtk_gresources.h auto/os_haiku.rdef
rm -f conftest* *~ auto/link.sed
rm -f testdir/opt_test.vim
rm -f json_test kword_test memfile_test message_test
rm -f runtime pixmaps
rm -f mzscheme_base.c
rm -rf libvterm/.libs libvterm/src/.libs libvterm/t/.libs libvterm/src/*.o libvterm/src/*.lo libvterm/t/*.o libvterm/t/*.lo libvterm/t/harness libvterm/libvterm.la
if test -d po; then \
        cd po; make prefix=/usr/local clean; \
fi
make[2]: Entering directory '/home/ting/code/vim/src/po'
rm -f *.ck
rm -f core core.* *.old.po *.mo *.pot sjiscorr
rm -f LINGUAS vim.desktop gvim.desktop tmp_*desktop
make[2]: Leaving directory '/home/ting/code/vim/src/po'
rm -f auto/config.status auto/config.cache config.log auto/config.log
rm -f auto/config.h auto/link.log auto/link.sed auto/config.mk
touch auto/config.h
cp config.mk.dist auto/config.mk
rm -f tags
make[1]: Leaving directory '/home/ting/code/vim/src'
make[1]: Entering directory '/home/ting/code/vim/runtime/indent'
rm -f testdir/*.fail testdir/*.out
make[1]: Leaving directory '/home/ting/code/vim/runtime/indent'
make[1]: Entering directory '/home/ting/code/vim/runtime/syntax'
rm -f testdir/failed/* testdir/done/* testdir/vimcmd testdir/messages
make[1]: Leaving directory '/home/ting/code/vim/runtime/syntax'

real    12.98s
user    8.73s
sys     4.62s

real    25.77s
user    18.62s
sys     7.43s
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make install
make[1]: Entering directory '/home/ting/code/vim/src'
/bin/sh install-sh -c -d /usr/local/bin
mkdir: cannot create directory '/usr/local/bin': Permission denied
mkdir: cannot create directory '/usr/local/bin': Permission denied
make[1]: *** [Makefile:2663: /usr/local/bin] Error 1
make[1]: Leaving directory '/home/ting/code/vim/src'
make: *** [Makefile:39: install] Error 2
?─ting@sfo2-williamting ~/code/vim ?python3.10.12? ?master?6909639?
??  g l                                                                                            2 ? 39s 2023.08.22 06:49:41 UTC
* 6909639 26 hours ago runtime(dosini): save and restore cpo value in syntax script - Christian Brabandt (grafted, HEAD -> master, origin/master, origin/HEAD)


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/12882@github.com>

Christian Brabandt

unread,
Aug 22, 2023, 6:28:00 AM8/22/23
to vim/vim, Subscribed

I find that hard to read. Where does the timing come from?

Can you please try without the make reconfig?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/12882/1687922488@github.com>

William Ting

unread,
Aug 22, 2023, 6:49:25 AM8/22/23
to vim/vim, Subscribed

The timing comes from some custom post-command shell hooks. I've skipped make reconfig and now it works!

I originally added make reconfig based on the instructions in the Makefile here, but I suppose that's not necessary. I was able to compile vim with Python support despite not running make reconfig:

╭─ting@sfo2-williamting ~/code/vim ‹python3.10.12› ‹master•6909639›
╰─➤  vim --version | grep python                                                                            2023.08.22 10:47:19 UTC
+cmdline_hist      +langmap           -python            +viminfo
+cmdline_info      +libcall           +python3           +virtualedit
Linking: gcc -L/usr/local/lib -Wl,--as-needed -o vim -lm -ltinfo -L/usr/lib/python3.10/config-3.10-x86_64-linux-gnu -lpython3.10 -lcrypt -ldl -lm -lm
╭─ting@sfo2-williamting ~/code/vim ‹python3.10.12› ‹master•6909639›
╰─➤                                                                                                         2023.08.22 10:47:21 UTC


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/12882/1687952677@github.com>

William Ting

unread,
Aug 22, 2023, 6:49:32 AM8/22/23
to vim/vim, Subscribed

Closed #12882 as completed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/12882/issue_event/10156948676@github.com>

K.Takata

unread,
Aug 22, 2023, 7:00:04 AM8/22/23
to vim/vim, Subscribed

Vim supports two ways of configuration:

  1. Normal ./configure way.
    make reconfig should not be used if you use this.
  2. Edit Makefile and running make reconfig.
    ./configure will be automatically executed in make reconfig based on the settings written in Makefile.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/12882/1687966855@github.com>

Reply all
Reply to author
Forward
0 new messages