Skip to content

[Java] Add native library support for Linux musl (Alpine)#347

Merged
teodordelibasic-db merged 2 commits into
mainfrom
java/musl
Jun 15, 2026
Merged

[Java] Add native library support for Linux musl (Alpine)#347
teodordelibasic-db merged 2 commits into
mainfrom
java/musl

Conversation

@teodordelibasic-db

@teodordelibasic-db teodordelibasic-db commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

What changes are proposed in this pull request?

Adds native library support for Linux musl (Alpine) on x86_64 and aarch64. The libc flavor is detected automatically at runtime; override with -Dzerobus.libc=musl|glibc.

How is this tested?

@teodordelibasic-db teodordelibasic-db self-assigned this Jun 4, 2026
@teodordelibasic-db teodordelibasic-db changed the title [Java] Add native library support for Linux must (Alpine) [Java] Add native library support for Linux musl (Alpine) Jun 4, 2026
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>

@danilonajkov-db danilonajkov-db left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, maybe just link the job execution to the PR https://github.com/databricks/zerobus-sdk/actions/runs/26958303643

@teodordelibasic-db
teodordelibasic-db added this pull request to the merge queue Jun 15, 2026
Merged via the queue into main with commit 3c6a10f Jun 15, 2026
15 checks passed
@teodordelibasic-db
teodordelibasic-db deleted the java/musl branch June 15, 2026 16:04
@zlata-stefanovic-db zlata-stefanovic-db linked an issue Jun 23, 2026 that may be closed by this pull request
zlata-stefanovic-db added a commit that referenced this pull request Jun 23, 2026
Add x86_64-unknown-linux-musl and aarch64-unknown-linux-musl matrix rows
to release-ffi.yml, cross-compiled with cargo-zigbuild on the existing
linux-ubuntu-latest runners. Uses RUSTFLAGS=-C target-feature=-crt-static
so the libs link musl dynamically, correct for Alpine hosts. Document the
musl cross-compile in the FFI README. Mirrors the JNI musl support from #347.

Fixes #411

Signed-off-by: Zlata Stefanovic <zlata.stefanovic@databricks.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.

Linux Alpine compatibility - Support fo musl

2 participants