You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by "hangc0276 (via GitHub)" <gi...@apache.org> on 2026/05/29 01:09:20 UTC
[PR] Add cargo-zigbuild for release dockerfile [bookkeeper]
hangc0276 opened a new pull request, #4805:
URL: https://github.com/apache/bookkeeper/pull/4805
Descriptions of the changes in this PR:
<!-- Either this PR fixes an issue, -->
Fix #xyz
<!-- or this PR is one task of an issue -->
Main Issue: #xyz
<!-- If the PR belongs to a BP, please add the BP link here -->
BP: #xyz
### Motivation
When releasing BookKeeper with command `./dev/release/002-release-prepare.sh`, it build failed with following exception
```
[INFO] [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (cargo-zigbuild-amd64-gnu) on project native-io: Command execution failed.: Cannot run program "cargo" (in directory "/home/hangc/Downloads/tmp/bk-release/bookkeeper/native-io/src/main/native-io-jni/rust"): error=2, No such file or directory -> [Help 1]
[INFO] [ERROR]
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[INFO] [ERROR]
[INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[INFO] [ERROR]
[INFO] [ERROR] After correcting the problems, you can resume the build with the command
[INFO] [ERROR] mvn <args> -rf :native-io
```
### Changes
(Describe: what changes you have made)
> ---
> In order to uphold a high standard for quality for code contributions, Apache BookKeeper runs various precommit
> checks for pull requests. A pull request can only be merged when it passes precommit checks.
>
> ---
> Be sure to do all the following to help us incorporate your contribution
> quickly and easily:
>
> If this PR is a BookKeeper Proposal (BP):
>
> - [ ] Make sure the PR title is formatted like:
> `<BP-#>: Description of bookkeeper proposal`
> `e.g. BP-1: 64 bits ledger is support`
> - [ ] Attach the master issue link in the description of this PR.
> - [ ] Attach the google doc link if the BP is written in Google Doc.
>
> Otherwise:
>
> - [ ] Make sure the PR title is formatted like:
> `<Issue #>: Description of pull request`
> `e.g. Issue 123: Description ...`
> - [ ] Make sure tests pass via `mvn clean apache-rat:check install spotbugs:check`.
> - [ ] Replace `<Issue #>` in the title with the actual Issue number.
>
> ---
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add cargo-zigbuild for release dockerfile [bookkeeper]
Posted by "hangc0276 (via GitHub)" <gi...@apache.org>.
hangc0276 merged PR #4805:
URL: https://github.com/apache/bookkeeper/pull/4805
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add cargo-zigbuild for release dockerfile [bookkeeper]
Posted by "void-ptr974 (via GitHub)" <gi...@apache.org>.
void-ptr974 commented on PR #4805:
URL: https://github.com/apache/bookkeeper/pull/4805#issuecomment-4585879887
Thanks for working on this!
I tested this locally with Colima. The overall approach works, but the Docker image build currently misses one dependency: Zig is downloaded as a `.tar.xz` archive and extracted with `tar -xJ`, while the base image does not include `xz`.
Adding `xz-utils` to the `apt-get install` list fixes the image build for me. After that, I also verified `mvn -B -pl native-io -am -DskipTests package` inside the image, and both `linux-x86_64-gnu` and `linux-aarch64-gnu` native libraries were generated successfully.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add cargo-zigbuild for release dockerfile [bookkeeper]
Posted by "hangc0276 (via GitHub)" <gi...@apache.org>.
hangc0276 commented on code in PR #4805:
URL: https://github.com/apache/bookkeeper/pull/4805#discussion_r3337207945
##########
dev/release/Dockerfile:
##########
@@ -23,3 +23,22 @@ RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get install -y g++ cmake gnupg2 vim subversion less zip unzip
Review Comment:
addressed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add cargo-zigbuild for release dockerfile [bookkeeper]
Posted by "void-ptr974 (via GitHub)" <gi...@apache.org>.
void-ptr974 commented on code in PR #4805:
URL: https://github.com/apache/bookkeeper/pull/4805#discussion_r3329787728
##########
dev/release/Dockerfile:
##########
@@ -23,3 +23,22 @@ RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get install -y g++ cmake gnupg2 vim subversion less zip unzip
Review Comment:
apt-get install -y g++ cmake gnupg2 vim subversion less zip unzip xz-utils
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org