chore: Update bundled native libs to aiken-jna-wrapper v0.8.0 (unreleased)#27
Draft
matiwinnetou wants to merge 1 commit into
Draft
chore: Update bundled native libs to aiken-jna-wrapper v0.8.0 (unreleased)#27matiwinnetou wants to merge 1 commit into
matiwinnetou wants to merge 1 commit into
Conversation
8e40d91 to
02b4ba0
Compare
Bumps download_libs.sh to v0.8.0 (the next, not-yet-released wrapper release) and adds the new linux-aarch64 platform it introduces. native/ is packaged as resources and JNA selects the right library per platform at runtime, so this script change is all that is needed on the Java side — no Java or build.gradle changes, and the wrapper's exported FFI functions are unchanged. Gated on upstream: the v0.8.0 release (incl. the linux-aarch64 artifact) comes from bloxbean/aiken-jna-wrapper#33. Do not merge until that release exists, or the downloads (linux-aarch64 in particular) will 404. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
02b4ba0 to
2c34ec6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Preparation PR to move the bundled native libraries to the next
aiken-jna-wrapperrelease,v0.8.0, which brings that crate's maintenance/cleanup work and adds a newlinux-aarch64platform.Two phases
download_libs.shhelper so it targetsv0.8.0and knows about thelinux-aarch64platform. No native binaries change here../download_libs.shto download the releasedv0.8.0libraries intonative/(including the newnative/linux-aarch64/libaiken_jna_wrapper.so) and updatenative/version, then commit those binaries. The repo bundles the committednative/*files as resources, so that commit is what actually ships v0.8.0.What changed in this PR (
download_libs.sh)tagv0.7.0→v0.8.0— points the helper at the upcoming wrapper release. (v0.6.0/v0.7.0are already released;v0.8.0is the next one, carrying the cleanup + the new ARM-Linux target.)linux-aarch64platform —native/linux-aarch64/+ a download forlinux-aarch64_libaiken_jna_wrapper.so.Scoped as a "refresh the native libs to latest" change —
linux-aarch64is the notable addition this round, with room for more as the wrapper evolves.Why no Java / Gradle changes are needed
native/is already a packaged resource root (build.gradle:srcDirs "src/main/resources", "native"), so a newnative/linux-aarch64/dir is bundled automatically.LibraryUtil.getAikenWrapperLib()is arch-agnostic for Linux, and JNA selects the correctnative/<resource-prefix>/per platform at runtime — the bundledPlatform/NativeUtilsalready handleaarch64.eval_phase_two,apply_params_to_plutus_script,dropCharPointer) are unchanged inv0.8.0, so no interface changes are required.Upstream dependency
The
v0.8.0wrapper release (incl. thelinux-aarch64artifact) comes from bloxbean/aiken-jna-wrapper#33.Merge checklist
aiken-jna-wrapperv0.8.0released, with alinux-aarch64_libaiken_jna_wrapper.soasset./download_libs.shrun; refreshednative/*binaries +native/versioncommitted to this branch🤖 Generated with Claude Code