Files
neovim/runtime/doc
Arnout Engelen cb757f2663 build: make generated source files reproducible #21586
Problem:
Build is not reproducible, because generated source files (.c/.h/) are not
deterministic, mostly because Lua pairs() is unordered by design (for security).

https://github.com/LuaJIT/LuaJIT/issues/626#issuecomment-707005671
https://www.lua.org/manual/5.1/manual.html#pdf-next
> The order in which the indices are enumerated is not specified [...]
>
>> The hardening of the VM deliberately randomizes string hashes. This in
>> turn randomizes the iteration order of tables with string keys.

Solution:
- Update the code generation scripts to be deterministic.
    - That is only a partial solution: the exported function
      (funcs_metadata.generated.h) and ui event
      (ui_events_metadata.generated.h) metadata have some mpack'ed
      tables, which are not serialized deterministically.
    - As a workaround, introduce `PRG_GEN_LUA` cmake setting, so you can
      inject a modified build of luajit (with LUAJIT_SECURITY_PRN=0)
      that preserves table order.
    - Longer-term we should change the mpack'ed data structure so it no
      longer uses tables keyed by strings.

Closes #20124

Co-Authored-By: dundargoc <gocdundar@gmail.com>
Co-Authored-By: Arnout Engelen <arnout@bzzt.net>
2023-01-23 01:26:46 -08:00
..
2022-12-11 18:41:26 -08:00
2022-11-10 09:05:25 +00:00
2022-12-08 16:33:38 +01:00
2021-09-10 08:48:27 +02:00
2022-02-27 11:56:30 +01:00
2023-01-01 15:05:13 +01:00
2023-01-01 15:05:13 +01:00
2023-01-01 15:05:13 +01:00
2023-01-03 10:07:43 +00:00
2023-01-01 15:05:13 +01:00
2023-01-03 10:07:43 +00:00
2023-01-01 15:05:13 +01:00
2023-01-01 15:05:13 +01:00
2023-01-01 15:05:13 +01:00
2022-10-14 08:01:13 -07:00
2023-01-01 15:05:13 +01:00
2022-12-11 18:41:26 -08:00
2018-10-29 09:55:07 +01:00
2023-01-03 10:07:43 +00:00
2018-10-29 09:55:07 +01:00
2022-11-10 09:05:25 +00:00
2015-08-15 15:25:30 -03:00
2022-12-11 18:41:26 -08:00
2023-01-04 07:38:48 +08:00
2019-03-26 19:55:33 +01:00
2022-12-31 13:25:26 +01:00
2022-11-02 21:45:26 +08:00
2023-01-01 15:05:13 +01:00
2022-11-10 09:05:25 +00:00
2023-01-01 15:05:13 +01:00
2022-09-26 17:43:23 +08:00
2023-01-01 15:05:13 +01:00
2022-10-15 17:42:45 +08:00
2022-12-31 13:25:26 +01:00
2022-07-26 11:26:23 +02:00
2023-01-10 11:02:00 +01:00
2022-11-10 09:05:25 +00:00
2023-01-03 10:07:43 +00:00
2021-09-08 07:24:12 -07:00
2021-05-01 22:29:02 -04:00
2021-05-02 12:53:49 -04:00
2022-09-26 17:43:23 +08:00
2021-05-01 22:29:03 -04:00
2021-04-27 09:21:33 -04:00
2018-10-29 10:01:44 +01:00
2021-04-29 09:27:19 -04:00
2018-10-29 10:01:44 +01:00
2021-04-29 20:42:16 -04:00
2019-03-26 19:55:33 +01:00
2021-04-27 09:21:34 -04:00
2023-01-03 10:07:43 +00:00
2023-01-03 10:07:43 +00:00
2023-01-03 10:07:43 +00:00
2023-01-03 10:07:43 +00:00
2022-11-10 09:05:25 +00:00