Changes between Version 9 and Version 10 of Ticket #70420, comment 9


Ignore:
Timestamp:
Aug 8, 2024, 1:16:18 AM (6 weeks ago)
Author:
wryfi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #70420, comment 9

    v9 v10  
    55`neovim` depends on `lua51-lpeg`, which depends on `lua-luarocks`, which depends on `lua` and `lua53-luarocks`, guaranteeing that `lua` and `lua53` ports will be installed when trying to install neovim.
    66
    7 `luajit` is used for much of the build process, and the neovim Portfile contains `configure.args-append -DLUA_PRG=${prefix}/bin/luajit`. `luajit` is its own thing and adheres only to the lua-5.1 language spec. `luajit` works regardless of the state of other lua packages on my system.
     7`luajit` is used for much of the build process. `luajit` is its own thing and adheres only to the lua-5.1 language spec. `luajit` works regardless of the state of other lua packages on my system.
    88
    99But neovim also uses some C, and builds a library, `nlua0`, from `src/nlua0.c` in its source tree, which `luajit` uses later in the build process. The first line of `nlua0.c` is `#include <lua.h>`.
     
    8282
    83831. The `lua` port decides for you what version of lua (currently 5.3) will be the default lua on your system.
    84   a. Note that all C libraries linking against `lua.h` will build against that version without extra care.
     84  a. Note that all C libraries including `lua.h` will build against that version without extra care.
    85851. There is no facility to manage which version of lua is used as the system default.
    86861. Any port that depends on `lua` installs and makes the `lua` port's version (currently 5.3) the default, even if the dependent port is incompatible with that version.