Skip to content

Conversation

@Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Dec 22, 2025

Which issue does this PR close?

Closes #7086

Rationale for this change

This PR will add musl platform support for binding java.

What changes are included in this PR?

Are there any user-facing changes?

AI Usage Statement

Parts of this PR were drafted with assistance from Codex (with gpt-5.2) and fully reviewed and edited by me. I take full responsibility for all changes.

@Xuanwo Xuanwo requested a review from tisonkun as a code owner December 22, 2025 13:06
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. releases-note/feat The PR implements a new feature or has a title that begins with "feat" labels Dec 22, 2025
@Xuanwo Xuanwo requested a review from tisonkun December 22, 2025 16:03
]
print("$ " + subprocess.list2cmdline(link_cmd))
subprocess.run(link_cmd, cwd=basedir, check=True)
raise SystemExit(0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why always raise here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a weird AI code. It's actually sys.exit(0) here. Refactored.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it looks still incorrect. We need the following lines to move the output artifacts.

if (loader == null) {
return false;
}
return Files.exists(Paths.get("/lib", loader)) || Files.exists(Paths.get("/usr/lib", loader));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test this line works?

I suspect that with bundled jar the file doesn't exist on /lib but in the JAR package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/feat The PR implements a new feature or has a title that begins with "feat" size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: opendal-java is not available on musl

2 participants