Idea: a record of how each tools.lock package we build ourselves was made #3264

Open
opened 2026-12-05 17:22:18 +00:00 by llun · 0 comments
Member

The idea

For each tools.lock package we build ourselves, record how it was made, so anyone can check it later. That means ffmpeg (with dav1d), shaderc, llvm and llvm-ar (Linux), sysroot, and the repacks.

  • Next to each package version, keep the CI run that built it, the commit of the recipe, and the SHA-256 of every upstream source archive it used.
  • Better still, make those builds reproducible: the same recipe gives the same bytes, so a second machine can confirm a package.

Why

While checking the download chain for LongshotLauncher issue 379, every package with an upstream original matched it file for file:

  • llvm-mingw, Rust, glslang, SDL and the Vulkan headers were identical;
  • the repacked llvm-mingw was identical to the official release in all 4,712 files.

The packages we compile ourselves have nothing to compare with. The best I could do was check that the FFmpeg, dav1d and shaderc libraries call no network or process functions. Those libraries are linked into the game, so they deserve the same proof as the rest.

Done when

Every package in tools.lock either names an upstream file we can compare it with, or names the run, recipe and source hashes it was built from. docs/dev/reference/releases.md (Bumping a tool) says how to check one.

### The idea For each `tools.lock` package we build ourselves, record how it was made, so anyone can check it later. That means `ffmpeg` (with dav1d), `shaderc`, `llvm` and `llvm-ar` (Linux), `sysroot`, and the repacks. - Next to each package version, keep the CI run that built it, the commit of the recipe, and the SHA-256 of every upstream source archive it used. - Better still, make those builds reproducible: the same recipe gives the same bytes, so a second machine can confirm a package. ### Why While checking the download chain for [LongshotLauncher issue 379](https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/issues/379), every package with an upstream original matched it file for file: - llvm-mingw, Rust, glslang, SDL and the Vulkan headers were identical; - the repacked llvm-mingw was identical to the official release in all 4,712 files. The packages we compile ourselves have nothing to compare with. The best I could do was check that the FFmpeg, dav1d and shaderc libraries call no network or process functions. Those libraries are linked into the game, so they deserve the same proof as the rest. ### Done when Every package in `tools.lock` either names an upstream file we can compare it with, or names the run, recipe and source hashes it was built from. `docs/dev/reference/releases.md` (*Bumping a tool*) says how to check one.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot#3264
No description provided.