-
Notifications
You must be signed in to change notification settings - Fork 60
8298459: Fix msys2 linking and handling out of tree build directory for source zip creation #9
Conversation
👋 Welcome back clanger! A progress list of the required criteria for merging this PR into |
@RealCLanger The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
@erikj79 I would like to use these make conditionals but somehow it doesn't work out. What am I doing wrong, any idea/hint? |
Sorry, I have been away from makefiles for too long. What I suggested will not work inside a macro body. You will need to define the whole macro differently based on conditionals. Not as neat, but certainly more performant, and easier to debug when reading command lines from make. Something like this (quick pseudo code):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
@RealCLanger This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 6 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Thanks for the review. In this GHA run one can see some traces that it works and effectively calls mklink for MSYS but ln in the other cases. /integrate |
Going to push as commit d624deb.
Your commit was automatically rebased without conflicts. |
@RealCLanger Pushed as commit d624deb. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This PR fixes two issues.
In ZipSource.gmk we don't account for the possibility of the build directory or
$(SUPPORT_OUTPUTDIR)
not being in the source directory tree ($(TOPDIR)
).It doesn't manifest in a build error though since link-file-relative will then fall back to absolute linking. But it results in awkward paths.
Furthermore, there's a lurking issue in msys2 builds on Windows. There, ln would create deep copies of a file system tree instead of linking. If the file system to be linked contains long paths, it could result in 'File name too long' errors, like can be seen here. We can avoid this by calling Windows mklink to create a file system junction. Presumably that would also help build performance (though not verified).
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk20 pull/9/head:pull/9
$ git checkout pull/9
Update a local copy of the PR:
$ git checkout pull/9
$ git pull https://git.openjdk.org/jdk20 pull/9/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 9
View PR using the GUI difftool:
$ git pr show -t 9
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk20/pull/9.diff