OpenJDK configure detects WSL2 as WSL1 #1646
-
|
I'm not sure where to discuss my issue but it seems that OpenDJK autoconf is detecting WSL2 as WSL1...i don't think this is good behavior since ideally it treats Debian in WSL2 as a Linux...forgive me if I am ignorant why OpenJDK wants to know about WSL1 in the first place... Google brought me this upstream issue: https://bugs.openjdk.java.net/browse/JDK-8226521 Can anyone share any tips, can I patch out that detection of WSL2 so that the configure scripts treats my WSL2 distro simply as a a Linux distro? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
We have a PR open for this right now: https://github.com/Homebrew/linuxbrew-core/pull/22620. On a related note, if you are using WSL, I'd strongly recommend using the default prefix of |
Beta Was this translation helpful? Give feedback.
We have a PR open for this right now: https://github.com/Homebrew/linuxbrew-core/pull/22620.
On a related note, if you are using WSL, I'd strongly recommend using the default prefix of
/home/linuxbrew/.linuxbrewfor Homebrew since you should havesudoaccess. This will allow you to use all of our Linux bottles, not just the ones withcellar :any. This would save you the trouble of having to build OpenJDK from source.