Skip to content

+cockroachdb/cockroach#13123

Open
tannevaled wants to merge 2 commits into
pkgxdev:mainfrom
tannevaled:worktree-agent-a1c24f423a9a28a8a
Open

+cockroachdb/cockroach#13123
tannevaled wants to merge 2 commits into
pkgxdev:mainfrom
tannevaled:worktree-agent-a1c24f423a9a28a8a

Conversation

@tannevaled
Copy link
Copy Markdown
Contributor

Summary

New pantry recipe for CockroachDB — distributed SQL database (BSL 1.1, open-source core).

  • Source-built via the legacy make buildoss path (matches the arch AUR recipe).
  • Capped at the v23.1.x branch:
    • v23.2+ replaced the GNUmakefile with a ./dev shim that requires bazel + docker, neither of which is realistic for pantry builders.
    • v22.x and earlier need the separate cockroachdb/vendored git submodule (~1 GB) which we'd have to clone per build.
  • The recipe uses git+https:// (not the GitHub archive tarball) because it needs:
    • The c-deps/{jemalloc,krb5,geos,proj,libedit} git submodules — not present in the tarball.
    • A real .git directory (Makefile probes git describe; we still seed .buildinfo/tag manually to handle shallow clones).
  • The Makefile enforces that \$(CURDIR) is inside \$(GOPATH), so the script sets up a fake \$PWD/.gopath/src/github.com/cockroachdb/cockroach symlink and chdirs into it before invoking make.
  • make vendor_rebuild regenerates vendor/ from go.mod (v23.1 stopped shipping it as a submodule).
  • The OSS binary lands at ./cockroachoss; we install it as bin/cockroach and ship the runtime GEOS shared libraries under lib/.

Storage engine is Pebble (pure-Go RocksDB-alike), so there is no rust-rocksdb/bundled-C++ pain — the cgo surface is just jemalloc + libgeos + libproj + libedit, all built in-tree via cmake.

Test plan

  • CI bottles the recipe on linux/x86-64, linux/aarch64, darwin/aarch64
  • cockroach version reports Build Tag: v23.1.30 (or whichever v23.1.x is current)
  • cockroach start-single-node --insecure boots a node and accepts SQL connections via cockroach sql
  • lib/libgeos*.{so,dylib} are present and dlopened correctly when a geospatial query is issued

🤖 Generated with Claude Code

tannevaled and others added 2 commits May 30, 2026 23:22
Distributed SQL database (BSL 1.1, open-source core). Source-built via
the legacy `make buildoss` path. Capped at v23.1.x — newer cockroach
branches replaced the Makefile with a bazel-only `./dev` shim, and
older branches need the cockroachdb/vendored submodule which is too
big to clone per build.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
cockroach publishes git tags but no GitHub Releases — the default
`releases/tags` API call returns `[]` for this repo, so the versions
list came back empty and the build failed before even cloning.

Co-Authored-By: Claude Opus 4.7 <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