Split MacOS binaries into amd64 and x64 versions to allow each to be shipped separately (feature request)

Open
#125 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, macos

Research direction

The issue names the DuckDB JAR and the libduckdb_java.so_osx_universal native artifact; start by locating the JAR/native-library packaging and macOS build entry points. Done means arm64 and x64 macOS binaries are emitted as separate files and the JAR can include only the selected architecture.

Written by the indexing model from the issue text.

Description

The DuckDB JAR file is currently 73.3MB, which is a bit large for embedding into downloadable applications. Most of this comes from the four platform-dependent binaries inside:

  • libduckdb_java.so_linux_amd64 (54.6MB)
  • libduckdb_java.so_linux_arm64 (50.9MB)
  • libduckdb_java.so_osx_universal (98.6MB)
  • libduckdb_java.so_windows_amd64 (28.3MB)

It's easy enough to delete all of these but the one relevant to the architecture actually targeted in the bundle. But for the MacOS case, the arm64 and x64 binaries are combined into a single large "universal" executable. It would be helpful if the architectures were kept in separate files, so that only the relevant one could be included.

Dominant language
C++
Stars
127
Forks
80
Avg merge
13h 41m
Merged PRs (30d)
44

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from duckdb/duckdb-java

All issues in duckdb/duckdb-java

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.