8000 foundationdb 8.0.1, built from packages with no network; msgpack-cxx 9.0.0 (new) by bryan-minimal · Pull Request #1791 · gominimal/pkgs · GitHub
[go: up one dir, main page]

Skip to content

foundationdb 8.0.1, built from packages with no network; msgpack-cxx 9.0.0 (new) - #1791

Draft
bryan-minimal wants to merge 3 commits into
mainfrom
foundationdb-8.0.1
Draft

bryan-minimal wants to merge 3 commits into
mainfrom
foundationdb-8.0.1

Conversation

@bryan-minimal
Copy link
Copy Markdown
Member

Draft: don't merge yet. FoundationDB 8.0 removed multitenancy, and minfs uses it (see "Breaking" below). Bryan is checking with the minfs owner.

foundationdb 7.3.81 → 8.0.1, built with no network, plus a new msgpack-cxx 9.0.0 package.

Why

FDB's CMake downloaded its third-party code during the build. On pkgs#1784, GitHub's release CDN answered the msgpack download with an HTTP 618, which failed an unrelated OpenSSL PR on arm64. The downloads were also unpinned code we shipped without scanning. In particular, FDB 7.3 compiled its own Boost 1.78, because it asked for exactly that version, so our boost build dep was never used.

What comes from where now

Dep Before Now
boost 1.78 downloaded + built (exact pin) our boost (shared); build.sh drops FDB's exact-1.89 + static-libs request and makes it REQUIRED
msgpack 3.3.0 (2020) downloaded new msgpack-cxx 9.0.0 (header-only, no Boost); 9.0.0 fixes unpacker/zone heap overflows and use-after-frees (msgpack-c#1183)
fmt 11.1.4, toml11 3.8.1 — / 3.4.0 downloaded pinned Sources (sha256 = upstream's own URL_HASH), via FETCHCONTENT_SOURCE_DIR_*
doctest 2.4.8 git clone pinned Source, file:// URL + hash
RocksDB, gRPC, Swift bindings, AWS, jemalloc (new in 8.0, on by default; RocksDB/Swift download) off
googlebenchmark — the EXCLUDE_FROM_ALL bench dirs still clone it at configure time, so they aren't configured

FETCHCONTENT_FULLY_DISCONNECTED=ON and needs.internet/dns dropped. Every sed is checked afterwards, and configure must have found our boost and msgpack-cxx (CMakeCache.txt), so an upstream change fails the build instead of quietly downloading again. I ran the rewrites and guards against the 8.0.1 tree locally.

Also

  • OpenSSL 4 patch ported (foundationdb-8.0.1-openssl4.patch). 7.3's TLSConfig.actor.cpp became TLSConfig.cpp (a PeerVerifier class), so the change there is const qualifiers only. MkCert is the same fix as before. It applies with GNU patch -F0, with sha256 checks before and after. The Boost-asio rfc2818 define is gone along with the bundled Boost.
  • The gcc 16 template-id constructor fix still applies (all four are still upstream).
  • Tests: crypto_unittests drops /fdbrpc/TokenSign/JWT, which 8.0 removed along with authz. tls_loopback reads 8.0's trace format, where a rule miss is TLSPolicyFailure00 with Reason="Rule.Cert.Subject.Name.NameMismatch[...]" and a chain failure is still TLSPolicyFailure "preverification failed".
  • runtime_deps gains subsetOf boost ["libs"].

Breaking (8.0.0 release notes)

  • Multitenancy and metacluster were removed. The tenant C symbols are stubs that abort. minfs uses tenants (fdb-7_3 + tenant-experimental, tenant_mode=optional_experimental). It's dormant since 04-22, but it would crash on 8.0.
  • Encryption at rest, blob granules, ChangeFeeds, the config database, authz/TokenSign: all removed.
  • API version is now 800. The client and the cluster must both be on 8.0.

Still open

  • The real test is the build-bot run. In particular, whether 8.0.1 builds against Boost 1.92 instead of 1.89. If not, the fallback is pinning 1.89 as a Source.
  • Why pkgmgr never offered 8.x.

🤖 Generated with Claude Code

…9.0.0 (new)

foundationdb 7.3.81 -> 8.0.1. Its CMake downloaded msgpack, toml11, boost and
doctest during the build, and a GitHub CDN 618 on the msgpack download failed
pkgs#1784's arm64 build. The build now has no network:

- boost: ours (shared). FDB asked for exactly 1.89 (7.3: 1.78) and fell back
  to downloading and building its own, so the boost build dep was never used.
- msgpack: new msgpack-cxx 9.0.0 package (header-only, no Boost) instead of
  msgpack 3.3.0 from 2020; 9.0.0 fixes unpacker/zone memory-safety bugs.
- fmt 11.1.4, toml11 3.8.1, doctest 2.4.8: pinned Sources (fmt/toml11 match
  upstream's URL_HASH), handed to FetchContent / ExternalProject.
- RocksDB, gRPC, Swift, AWS, jemalloc, microbenchmarks: off.
- FETCHCONTENT_FULLY_DISCONNECTED, needs.internet dropped; every rewrite is
  checked, and configure must find our boost and msgpack-cxx.

OpenSSL 4 patch ported (TLSConfig.actor.cpp became TLSConfig.cpp); the
Boost-asio define is gone with the bundled Boost. The gcc 16 template-id fix
still applies. Tests: TokenSign JWT tests are gone with authz in 8.0; the TLS
test reads 8.0's TLSPolicyFailure<NN> rule reasons.

8.0 removed multitenancy (tenant C symbols abort). minfs uses tenants.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai
coderabbitai Bot commented Dec 1, 2026
Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

bryan-minimal and others added 2 commits December 1, 2026 08:32
The 8.0.1 build found our Boost 1.92 at /usr/lib64/cmake/Boost-1.92.0;
the check only allowed /usr/lib.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ck-cxx check

The msgpack-cxx check failed with configure succeeding (find_package
REQUIRED passed), so the entry's shape differs from what it expected.
Print the entries so the log shows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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

0