-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help building Bazel 7.2.0 under Alpine - build succeeds but need help with ijar #22761
Comments
I think this just needs to use a java_toolchain that uses the ijar/singlejar tools compiled from source as discussed in the linked issue. So an additional patch with these changes should do it:
|
Thanks @hvadehra this was incredibly useful to me! Bazel 7.2.0 now builds successfully and is available as an Alpine package here: https://pkgs.alpinelinux.org/package/edge/testing/x86_64/bazel7 I'll try to add arm64 support next when I get time. Would some of the changes in the Alpine patch be upstreamable, specifically bumping |
Thanks, I've subscribed to #22719. Let's close this issue, I'll open a new one referencing the others if I get stuck again. |
Description of the bug:
I'm trying to package Bazel 7.2.0 for Alpine Linux: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/67730
Compilation passes through the
Building Bazel from scratch......
andBuilding Bazel with Bazel.
steps successfully but fails with something related to rules_java and ijar afterwards. Can anyone familiar with Java help me get over this last hurdle? My previous work packaging Bazel 6 modified a number of files relating to ijar but these seem to have moved since, where can I make similar changes in Bazel 7.2.0? Possibly also related #12961Build error below:
Which category does this issue belong to?
Core, Java Rules
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Check out https://gitlab.alpinelinux.org/strophy/aports/-/tree/bazel7-7.2.0 then
Which operating system are you running Bazel on?
Alpine Linux 3.19/3.20/edge
What is the output of
bazel info release
?No response
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: