-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8351029: IncludeCustomExtension does not work on cygwin with source code below /home #25100
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
Conversation
👋 Welcome back ihse! A progress list of the required criteria for merging this PR into |
@magicus 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 17 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
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.
Is it the cd $$(TOPDIR)
when calling make from DefineMakeTargets
that is causing the mismatch that you are correcting by including SPEC here?
No, it is the My first attempt was to re-create the TOPDIR in PreInit the same way as it is created in spec.gmk, but that would include mimicking the entire UTIL_FIXUP_PATH which seemed to be just too much work and too fragile. |
I just realized that it might be possible to pass the TOPDIR actually used down to MakeIncludeStart, and it might be a better solution... I'll check that. |
This seems like a much safer solution. It will allow us to have two different "spellings" for TOPDIR, one that configure puts in spec.gmk, and one that is calculated by the top-level |
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.
I think this looks ok, and better than the other solution. Should we add a comment somewhere describing what TOPDIR_ALT is and why it's needed for future archeologists?
There are no obvious place where to put that comment, and I don't want to sprinkle the code with comments about it everwhere it is used. I'd say that those future archaeologists will have to use |
/integrate |
Going to push as commit a091e2f.
Your commit was automatically rebased without conflicts. |
If you check out your source code in Cygwin, somewhere under /home/... (as opposed to /cygpath/...), IncludeCustomExtension does not work.
The problem is that TOPDIR gets a different lexical value from the spec.gmk file when setup in Makefile, even if this was the same directory. Since THIS_INCLUDE is calculated as a relative path by string substitution of $(TOPDIR), the path failed to relativize correctly.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25100/head:pull/25100
$ git checkout pull/25100
Update a local copy of the PR:
$ git checkout pull/25100
$ git pull https://git.openjdk.org/jdk.git pull/25100/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25100
View PR using the GUI difftool:
$ git pr show -t 25100
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25100.diff
Using Webrev
Link to Webrev Comment