Skip to content

deps: pin Homebrew libraries, pip and apt build inputs to deps 1.18.0-rc4 (task #114) - #280

Merged
StuartCameronCode merged 6 commits into
mainfrom
stuart/114-pin-the-deps-build-s-remaining-moving-in
Nov 28, 2026
Merged

StuartCameronCode merged 6 commits into
mainfrom
stuart/114-pin-the-deps-build-s-remaining-moving-in

Conversation

@StuartCameronCode

@StuartCameronCode StuartCameronCode commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Task #114 follows #110, which pinned the source clones. Even with those pins, a rebuild of the same deps version could still take different inputs. This PR pins the rest at the versions deps 1.18.0-rc4 shipped, so a rebuild should change nothing.

What changes

  • macOS (both arches)
    • zimg, boost (filesystem and atomic) and fftw are now built from release tarballs, each checked against its SHA-256 (fetch_verified, the srclib block).
    • Versions: arm64 zimg 3.0.6 and boost 1.92.0 (rc4 took these from Homebrew bottles); x64 zimg 3.0.5 and boost 1.85.0 (already source builds, now hash-checked); fftw 3.3.10 on both.
    • VapourSynth's meson setup is pointed at the pinned zimg, and the build fails unless meson reports zimg found: YES <pinned> and libvapoursynth links that copy.
    • This fixes an x64 skew: libvapoursynth was compiled against Homebrew's zimg 3.0.6 headers but shipped and loaded zimg 3.0.5.
    • BOOST_ROOT, FFTW_INC and the plugins' pkg-config path point at the pinned builds. BREW_DEPS is build tools only: zimg, fftw, boost and the unused ffmpeg are gone.
  • pip: Cython 3.3.2 and meson 1.12.1 now install from Scripts/pins/pip-*.txt with --require-hashes --only-binary :all:, and both scripts check the installed versions.
  • Linux
    • The new Scripts/install-apt-pins-linux.sh installs fftw, boost, libdvdread, ocl-icd, the OpenCL headers and cython3 at rc4's versions, from Ubuntu's archive snapshot 20261126T074400Z (Scripts/pins/apt-linux.txt).
    • download-deps-linux.sh refuses any other installed version. --allow-unpinned is there for local builds that will not ship.
    • build-deps-linux.yml installs through the new script.
  • Guard: the new push-gate test app/test/build_input_pin_test.dart fails if an unpinned brew install or pip install of a bundled library comes back.
  • Docs: CLAUDE.md, docs/BUILDING.md, ENGINEERING_NOTES and the deps version history are updated.

How it was tested

  • bash -n passes on all three scripts. build_input_pin_test, source_pin_test, zimg_pin_test, shell_line_continuation_test and attribution_test all pass.
  • Local arm64 build of the support libraries: zimg 3.0.6 and boost 1.92.0 export exactly what rc4's bottles did. Boost needed -std=c++17, as Homebrew builds it.
  • The pip pins resolve under --require-hashes to the wheels rc4 shipped, on all four platforms.
  • Every pinned apt version is in the snapshot for amd64 and arm64.
  • A wrong tarball hash stops the build.
  • Review fix: build_plugin now names the srclib pkg-config files, so a local re-run that skips VapourSynth still finds the pinned fftw.
  • Fix found by the A/B: the first Linux arm64 build failed when snapshot.ubuntu.com answered 503 for its command-not-found index. The runner's apt treats any failed index as fatal, so the installer now fetches only the Packages indexes (Targets: Packages) and retries (Acquire::Retries=5).

A/B against deps-v1.18.0-rc4

Builds from this branch, not published:

Build logs

  • macOS: Run-time dependency zimg found: YES 3.0.6 on arm64 and YES 3.0.5 on both x64 tiers, followed by VapourSynth compiles against zimg … (srclib).
  • macOS: Boost found: YES 1.92.0 (arm64) and 1.85.0 (x64), both from srclib. Cython 3.3.2 and meson 1.12.1, checked. No Pouring zimg|fftw|boost line.
  • Linux, all three jobs: Installed the pinned packages from snapshot 20261126T074400Z, meson 1.12.1, Cython compiler for the host machine: cython (cython 3.0.8).

Linux bundles (x64 and arm64): every lib/*.so* and vapoursynth/vapoursynth.abi3.so is byte-identical to rc4's. Other differences, none of them from this task:

macOS bundles

rc4 this branch
arm64 vapoursynth/libzimg.dylib Homebrew 3.0.6, cv 3.0.0, minos 15.0, 13 exports source 3.0.6, cv 3.0.0, minos 15.0, same 13 exports
arm64 lib/libboost_{filesystem,atomic} Homebrew 1.92.0, minos 15.0 source 1.92.0, minos 15.0, same exports (139 / 12)
x64 libzimg / libboost_* / libfftw3f* source 3.0.5 / 1.85.0 / 3.3.10, minos 12.0 same versions, minos and exports; boost and the code sections identical
  • arm64 zimg is a different compile of the same release: its code section is about 8% larger. I ran 7 resize and format conversions through each bundle's own vspipe on an M1: Bicubic, Spline36, Lanczos, Bilinear, Spline64 and Point; 8/10/16-bit, float and RGB; error-diffusion and ordered dither. All 7 outputs are identical to rc4's.
  • A skew this fixes: rc4's FFTW plugins (arm64 MVTools and BM3D; x64 BM3D, DCTFilter, DFTTest and FFT3DFilter) were compiled against Homebrew's fftw 3.3.11 headers and record compat version 11, but the bundle ships fftw 3.3.10. They now compile against 3.3.10. On x64, DCTFilter, DFTTest and FFT3DFilter have identical code; only the recorded version changed.
  • x64 libvapoursynth is now compiled against the zimg 3.0.5 it ships, where rc4 used Homebrew 3.0.6 headers. libvapoursynth and vapoursynth.abi3.so differ in under 2% of code bytes on both arches, with the same exports.
  • File lists are identical (2503 arm64, 2495 x64). The only other changed file is Retinex (feat(linux): ship an AppImage, with the tarball as the fallback #113's marker).

Tests with deps_run_id = these three runs

  • ci-test: 46018305567
  • nightly: 46018310484
  • Results:
    • ci-test 46018305567: passed. All 8 jobs passed: rust and flutter × macOS arm64, macOS x64, Windows x64 and Linux x64.
    • nightly 46018310484: failed.
      • Passed: all 7 sweep legs, and the heavy legs for macOS x64 and macOS x64-v2.
      • Linux x64, Linux x64-v2, Windows x64 and Windows x64-v2 heavy: each fails the same 3 tests, the 720x486 (task #92) group in integration_field_order_test.dart. The fixture's ffmpeg says "The bottom field has fewer chroma rows than its height requires". These tests already fail on main's scheduled nightly against rc4 (45867504513). The cause is BtbN's rolling FFmpeg, and task Auto shutdown upon job completion #123 covers it. This PR does not cause it.
      • macOS arm64 heavy: 1 test fails, noise reduction: BM3D runs end-to-end, chroma included, which hit the harness's 300 s job limit. The encode had finished all 79 frames (ffmpeg elapsed 4:49, 0.27 fps). On an M1, the template's BM3D block runs at the same speed through rc4's arm64 bundle and this one: 32.2 s vs 33.3 s for 24 frames at 720x576. The heavy step took 2h09, against 1h59–2h08 in earlier nightlies. The test sits close to the limit on this runner; task Improved RIFE Frame Interpolation for Apple Silicon Mac Users #128 follows it up. Not retried.

🤖 Generated with Claude Code

@StuartCameronCode
StuartCameronCode force-pushed the stuart/114-pin-the-deps-build-s-remaining-moving-in branch from e0c8f05 to 038b774 Compare November 27, 2026 21:46
StuartCameronCode and others added 6 commits November 28, 2026 11:54
…s 1.18.0-rc4 built (task #114)

Task #110 pinned every clone and download; three inputs still took
whatever a package manager had that day.

- macOS: zimg, boost and fftw are built from release tarballs checked
  by SHA-256 (fetch_verified) on both arches, at rc4's versions: arm64
  zimg 3.0.6 / boost 1.92.0 (were Homebrew bottles), x64 zimg 3.0.5 /
  boost 1.85.0 (were source builds pinned by version only), fftw 3.3.10
  (arm64 uses only its headers and .pc; 3.3.11's header only adds
  fftw_copy_plan). VapourSynth's meson setup gets the pinned zimg.pc
  and the build fails unless meson found it, did not fall back to R78's
  zimg.wrap, and libvapoursynth links the copy that ships; x64 no longer
  compiles against Homebrew's 3.0.6 headers. NNEDI3CL/KNLMeansCL take
  BOOST_ROOT=$SRCLIB on arm64 too; FFTW_INC and the plugins' pkg-config
  point at $SRCLIB. BREW_DEPS is build tools only: zimg, fftw, boost and
  ffmpeg (unused, and it pulled zimg in) are gone.
- pip: Cython 3.3.2 and meson 1.12.1 from Scripts/pins/pip-*.txt with
  --require-hashes --only-binary :all: (the four wheels rc4 shipped),
  checked after install, in both scripts and build-deps-linux.yml.
- Linux: Scripts/install-apt-pins-linux.sh installs fftw, boost,
  libdvdread, ocl-icd, the OpenCL headers and cython3 at rc4's versions
  from Ubuntu's archive snapshot 20261126T074400Z (Scripts/pins/
  apt-linux.txt); download-deps-linux.sh checks them and meson before it
  copies anything (--allow-unpinned for a local build). Linux's Cython
  follows task #111: apt's 3.0.8 compiles, pip's 3.3.2 ships; both
  pinned, so nothing changes.

build_input_pin_test.dart (push gate) holds it; it fails in 8 places on
main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…istory, engineering note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… its exports match rc4's (task #114)

Without it boost.system exports function-local category statics where the
bottle exported system_cat_holder<void>::instance (4 of 142 symbols); with
-std=c++17 both libraries export exactly what rc4's did. x64 keeps the
compiler default, as rc4's own x64 build had. Also: name an absent apt
package as 'not installed' in the Linux pin check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the engineering note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…without VapourSynth still finds the pinned fftw (task #114 review)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…task #114)

The first arm64 build failed when snapshot.ubuntu.com answered 503 for its
command-not-found metadata, which the install does not need: the runner's
apt fails the whole update on any index it cannot fetch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@StuartCameronCode
StuartCameronCode force-pushed the stuart/114-pin-the-deps-build-s-remaining-moving-in branch from 038b774 to 728c975 Compare November 28, 2026 00:54
@StuartCameronCode
StuartCameronCode merged commit 5f997f0 into main Nov 28, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant