8000 or-tools fetches 8 dependencies live at build time (FetchContent, BUILD_DEPS=ON): pin + mirror them · Issue #1146 · gominimal/pkgs · GitHub
[go: up one dir, main page]

Skip to content

or-tools fetches 8 dependencies live at build time (FetchContent, BUILD_DEPS=ON): pin + mirror them #1146

Closed

Description

@bryan-minimal

packages/or-tools builds with -DBUILD_DEPS=ON and needs.internet, so CMake FetchContent git-clones its dependencies live at build time: zlib, bzip2 (plus its test-files submodule from gitlab.com), abseil, protobuf, re2, eigen (gitlab.com/libeigen/eigen), SCIP and HiGHS.

What happened (10-28): the OpenSSL 4.1 world build (#1140) failed in or-tools. Every clone of https://gitlab.com/libeigen/eigen.git returned "GitLab is currently unable to handle this request due to load" (3 attempts), and the build stopped. Nothing in it was related to OpenSSL.

Why it matters beyond flakiness:

  • Supply chain: these inputs aren't pinned in our recipe by sha256. Upstream decides which commits come down, so the bytes aren't verified, mirrored or scanned. Every other source in pkgs is fetched as a pinned Source (often a gs:// mirror) before the sandbox runs.
  • Reproducibility and availability: any upstream outage fails our build, and a world rebuild loses its place.

Fix: pin each FetchContent dependency as a Source, with a url (mirrored create-only to gs://minimal-staging-archives) and sha256, at the exact commit or tag or-tools' cmake/dependencies/CMakeLists.txt requests. Point CMake at them with -DFETCHCONTENT_FULLY_DISCONNECTED=ON and -DFETCHCONTENT_SOURCE_DIR_<NAME>=…. Where we already ship a dependency (zlib, bzip2, abseil, protobuf, re2), prefer -DBUILD_DEPS=OFF per dependency and link ours. Then drop needs.internet.

🤖 Generated with Claude Code

Activity

  1. bryan-minimal commented on Nov 17, 2026

    @bryan-minimal
    MemberAuthor

    Triage, 2026-11-17: partly done. Eigen and BZip2 have been pinned through FETCHCONTENT_SOURCE_DIR_* since #1140. #1541, open and now green on both arches, moves zlib, bzip2, abseil-cpp, protobuf, re2 and boost to the registry's packages. HiGHS, SCIP, SoPlex and the COIN-OR solvers are still fetched at build time, so needs.internet stays. That is what remains here once #1541 merges.

    🤖 Generated with Claude Code

  2. bryan-minimal commented on Nov 18, 2026

    @bryan-minimal
    MemberAuthor

    Fixed by #1541 (merged 2026-11-18): or-tools now uses the registry's zlib, bzip2, abseil-cpp, protobuf, re2 and the rest instead of fetching them with FetchContent/BUILD_DEPS at build time — and builds much faster for it. The follow-up sweep for other recipes that build bundled copies is in #1573 (rizin), #1574 (ghostscript) and #1575 (opencv).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0