File 4713-Fix-CLASSPATH-with-wsl.patch of Package erlang
From e54bfe245bb4693d20f9885300cd48dded2f27d6 Mon Sep 17 00:00:00 2001
From: Dan Gudmundsson <dgud@erlang.org>
Date: Tue, 21 Jan 2020 07:49:40 -0800
Subject: [PATCH 03/11] Fix CLASSPATH with wsl
CLASSPATH must be in WSLENV and is converted by that,
so remove conversion code.
---
erts/etc/win32/wsl_tools/javac.sh | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/erts/etc/win32/wsl_tools/javac.sh b/erts/etc/win32/wsl_tools/javac.sh
index a37dc9450d..b1f142adfd 100755
--- a/erts/etc/win32/wsl_tools/javac.sh
+++ b/erts/etc/win32/wsl_tools/javac.sh
@@ -23,21 +23,7 @@
# basically means running the command wslpath on whatever is a path...
CMD=""
-save_IFS=$IFS
-IFS=":"
-NEWCLASSPATH=""
-for x in $CLASSPATH; do
- TMP=`wslpath -m $x`
- if [ -z "$NEWCLASSPATH" ]; then
- NEWCLASSPATH="$TMP"
- else
- NEWCLASSPATH="$NEWCLASSPATH;$TMP"
- fi
-done
-IFS=$save_IFS
-CLASSPATH="$NEWCLASSPATH"
-export CLASSPATH
-#echo "CLASSPATH=$CLASSPATH"
+
SAVE="$@"
while test -n "$1" ; do
x="$1"
@@ -63,4 +49,5 @@ while test -n "$1" ; do
shift
done
#echo javac.exe "$CMD"
+export WSLENV=CLASSPATH/l
eval javac.exe "$CMD"
--
2.16.4