aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/java.vim
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-09-20 14:50:32 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-09-20 22:16:34 +0200
commite268fcbdaa1e0e0cee3b513e62581d35bb937d40 (patch)
treeb3efbee766301c2e4c8a8022870fbab3cf69c47f /runtime/syntax/java.vim
parent100bb15d186ce855d064e86ff4630d9ad8d43a5e (diff)
downloadrneovim-e268fcbdaa1e0e0cee3b513e62581d35bb937d40.tar.gz
rneovim-e268fcbdaa1e0e0cee3b513e62581d35bb937d40.tar.bz2
rneovim-e268fcbdaa1e0e0cee3b513e62581d35bb937d40.zip
build: work around bug in make when PATH includes cmake as dir
There appears to be a bug in `make` where if a rule asks `make` to invoke a command called `foo`, and `foo` exists somewhere in `$PATH` as a directory (not an executable file), `make` will attempt to `execve` that directory instead of continuing to search in later parts of the `$PATH` for `foo` as a true executable. The cause can be traced back to a bug in Make 4.3 which stems from their use of the findprog function in Gnulib. This was reported to the Make maintainers here: https://savannah.gnu.org/bugs/index.php?57962 and then forwarded to the Gnulib maintainers here: https://github.com/coreutils/gnulib/commit/7b1de4a Make 4.4 does not have this bug, and I can confirm that I'm able to run make in the Neovim repo with no further modifications to my system than upgrading the version of make I'm using to 4.4 or 4.4.1. As the change is small enough, and it's unlikely that make version around the world is going to be updated in a timely manner, it makes sense to just add a workaround for this. Using `command -v` to resolve the `cmake` command, similar to what is already being done with `cmake3`, makes it work correctly in all cases. Continuing to include `... || echo cmake` at the end means that if neither `cmake3` nor `cmake` are installed, the user will still see a message about CMake being missing. Co-authored-by: Jake Zimmerman <zimmerman.jake@gmail.com>
Diffstat (limited to 'runtime/syntax/java.vim')
0 files changed, 0 insertions, 0 deletions