Skip to content

ci: fix Java Linux native glibc baseline#43

Merged
XiaoHongbo-Hope merged 1 commit into
apache:mainfrom
QuakeWang:fix-java-linux-glibc-baseline
May 25, 2026
Merged

ci: fix Java Linux native glibc baseline#43
XiaoHongbo-Hope merged 1 commit into
apache:mainfrom
QuakeWang:fix-java-linux-glibc-baseline

Conversation

@QuakeWang
Copy link
Copy Markdown
Contributor

What changed

This updates Java native release and snapshot workflows to build Linux GNU JNI artifacts with cargo-zigbuild using a fixed glibc baseline:

  • x86_64-unknown-linux-gnu.2.17
  • aarch64-unknown-linux-gnu.2.17

The workflows now also verify the generated Linux native library with readelf --version-info and fail if the required GLIBC_* version is higher than GLIBC_2.17.

Non-Linux artifacts continue to use regular cargo build --target.

Why

The previous workflows built Linux JNI libraries directly on the GitHub runner. On newer Ubuntu runners, this can produce .so artifacts requiring newer glibc symbols, making them fail to load on common enterprise Linux distributions with older glibc versions.

@XiaoHongbo-Hope
Copy link
Copy Markdown

nit: would be nice to document the glibc 2.17 baseline somewhere user-facing (e.g. release notes /
README) so users know the compatibility range. Not blocking

Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>
@QuakeWang QuakeWang force-pushed the fix-java-linux-glibc-baseline branch from c8c6009 to dae4c41 Compare May 24, 2026 14:34
@XiaoHongbo-Hope
Copy link
Copy Markdown

+1

@XiaoHongbo-Hope XiaoHongbo-Hope merged commit d7c8c3e into apache:main May 25, 2026
5 checks passed
XiaoHongbo-Hope pushed a commit that referenced this pull request May 25, 2026
Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.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.

2 participants