Skip to content

Conversation

@mrserb
Copy link
Member

@mrserb mrserb commented May 23, 2025

This patch provides a workaround for a bug in the latest version of Cygwin. Only JDK 11 is affected; newer versions are not impacted because the makefiles were updated by JDK-8220383.

The issue is that:
ifneq ($(wildcard $(IMPORT_MODULES_CLASSES)/$(MODULE)), )
returns results even when IMPORT_MODULES_CLASSES is empty/unset. This causes the build to incorrectly search for a module like /jdk.crypto.ec/, which fails because the directory does not exist.

The fix is to first check whether IMPORT_MODULES_CLASSES is set. If it is, we define IMPORT_MODULE_DIR as $(IMPORT_MODULES_CLASSES)/$(MODULE) and use this property consistently throughout the build. This matches the approach introduced in JDK-8220383 for this codepath.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8357657 needs maintainer approval

Issue

  • JDK-8357657: [11u][windows] cannot stat '/jdk.crypto.ec/*': No such file or directory (Bug - P3 - Approved)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/3035/head:pull/3035
$ git checkout pull/3035

Update a local copy of the PR:
$ git checkout pull/3035
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/3035/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 3035

View PR using the GUI difftool:
$ git pr show -t 3035

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/3035.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented May 23, 2025

👋 Welcome back serb! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented May 23, 2025

@mrserb This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

8357657: [11u][windows] cannot stat '/jdk.crypto.ec/*': No such file or directory

Reviewed-by: shade

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 no new commits pushed to the master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 18, 2025

@mrserb This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@mrserb
Copy link
Member Author

mrserb commented Aug 12, 2025

/touch

@openjdk
Copy link

openjdk bot commented Aug 12, 2025

@mrserb The pull request is being re-evaluated and the inactivity timeout has been reset.

@mrserb mrserb marked this pull request as ready for review September 24, 2025 19:44
@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 24, 2025
@mlbridge
Copy link

mlbridge bot commented Sep 24, 2025

Webrevs

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 23, 2025

@mrserb This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@mrserb
Copy link
Member Author

mrserb commented Oct 23, 2025

/keepalive

@openjdk
Copy link

openjdk bot commented Oct 23, 2025

@mrserb The pull request is being re-evaluated and the inactivity timeout has been reset.

@shipilev
Copy link
Member

OK, so this effectively takes the first two hunks from openjdk/jdk@2af935c. I think it is reasonable to pull it in selectively into 11u. Have you considered backporting JDK-8220383 wholesale? I am guessing it is more risky?

@openjdk
Copy link

openjdk bot commented Nov 10, 2025

⚠️ @mrserb This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@mrserb
Copy link
Member Author

mrserb commented Nov 10, 2025

I am guessing it is more risky?

Correct.

@mrserb
Copy link
Member Author

mrserb commented Nov 10, 2025

/approval request
This patch adds a workaround for a bug in the latest Cygwin version. It has been tested on both new and old versions of Cygwin.

@openjdk
Copy link

openjdk bot commented Nov 10, 2025

@mrserb
8357657: The approval request has been created successfully.

@openjdk openjdk bot added approval Requires approval; will be removed when approval is received ready Pull request is ready to be integrated and removed approval Requires approval; will be removed when approval is received labels Nov 10, 2025
@mrserb
Copy link
Member Author

mrserb commented Nov 13, 2025

/integrate

@openjdk
Copy link

openjdk bot commented Nov 13, 2025

Going to push as commit 912a12b.

@openjdk openjdk bot added the integrated Pull request has been integrated label Nov 13, 2025
@openjdk openjdk bot closed this Nov 13, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Nov 13, 2025
@openjdk
Copy link

openjdk bot commented Nov 13, 2025

@mrserb Pushed as commit 912a12b.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@mrserb mrserb deleted the JDK-8357657 branch November 13, 2025 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

3 participants