fix(build): use system zlib instead of missing vendored sources#10
Conversation
The dependency chain rocksdb -> librocksdb-sys (static) -> libz-sys (static) forces libz-sys 1.1.26 to compile vendored zlib from src/zlib/, but the crate does not ship those sources, causing build failure. LIBZ_SYS_STATIC=0 overrides the static feature flag so libz-sys links against system zlib (preinstalled on macOS and Linux) instead of attempting to compile nonexistent vendored sources. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
@claude review |
|
Claude finished @janx's task in 1m 32s —— View job PR Review
SummaryThe fix is correct and minimal. The dependency chain Verdict: Looks good with one CI concern noted below.
|
Make the implicit system zlib dependency explicit so the build does not silently depend on ubuntu-latest's pre-installed packages. Without this, a future runner image change or a minimal container build would fail with a missing -lz / zlib.h error even though LIBZ_SYS_STATIC=0 is set. Follow-up to PR #10 review feedback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
LIBZ_SYS_STATIC=0to.cargo/config.tomlto link system zlib instead of vendored sourcesrocksdb->librocksdb-sys(static) ->libz-sys(static) forceslibz-sys 1.1.26to compile vendored zlib fromsrc/zlib/, but the crate does not ship those sources, causing build failure