config_host.mk.in |    6 +++---
 configure.ac      |   12 +++++++-----
 2 files changed, 10 insertions(+), 8 deletions(-)

New commits:
commit e6cc677b75fd4981ddb65cf09205e8eaa7737132
Author:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
AuthorDate: Fri Apr 26 13:03:49 2024 +0200
Commit:     Balazs Varga <balazs.varga.ext...@allotropia.de>
CommitDate: Wed Oct 2 19:47:15 2024 +0200

    fix some hardcoded use of wsl.exe and fix some typos
    
    Change-Id: I6152ee61913638f828eeb201ecb26312de5f8572
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166737
    Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
    Tested-by: Jenkins
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174252
    Reviewed-by: Balazs Varga <balazs.varga.ext...@allotropia.de>
    Tested-by: Balazs Varga <balazs.varga.ext...@allotropia.de>

diff --git a/config_host.mk.in b/config_host.mk.in
index 0a1bc2950504..707dc94f7768 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -789,8 +789,8 @@ include @SRC_ROOT@/download.lst
 
 KEEP_AWAKE_CMD=@KEEP_AWAKE_CMD@
 
-# prep for WSL-as-helper-builds where build runs from within git-bash/MSYS 
that would otherwise
-# messes with anything that looks like a path (starts with /) but it cannot 
resolve
+# used for WSL-as-helper-builds where the build runs from within git-bash/MSYS 
that otherwise would
+# mess with anything that looks like a path (starts with a /) but cannot be 
resolved to a target
 export MSYS_NO_PATHCONV=1
 STRAWBERRY_PERL=@STRAWBERRY_PERL@
-WSL=@WSL@
\ No newline at end of file
+WSL=@WSL@
diff --git a/configure.ac b/configure.ac
index 040d3b9f2fe5..d9250aad5626 100644
--- a/configure.ac
+++ b/configure.ac
@@ -337,7 +337,8 @@ if test -n "$WSL_DISTRO_NAME" && $(echo $PATH |grep -q 
mingw64); then
     STRAWBERRY_PERL="$formatted_path/perl/bin/perl.exe"
     AC_ARG_WITH([wsl-command],
         [AS_HELP_STRING([--with-wsl-command],
-            [Specify your wsl distro command if it isn't the default/the one 
used with just wsl.exe])],
+            [Specify your wsl distro command if it isn't the default/the one 
used with just wsl.exe –
+             for example: wsl.exe -d MyDistro -u NonDefaultUser])],
         [],
         [with_wsl_command="wsl.exe"])
     WSL="$with_wsl_command"
@@ -15301,10 +15302,11 @@ if test -n "$WSL_ONLY_AS_HELPER"; then
     PERL="perl.exe"
     # use flex, gperf and nasm from wsl-container
     # if using absolute path, would need to use double-leading slash for the 
msys path mangling
-    FLEX="wsl.exe $FLEX"
-    NASM="wsl.exe $NASM"
-    # some externals (libebook) checks with AC_PATH_PROGS, and that requires 
argument to begin with slash...
-    GPERF="/c/Windows/system32/wsl.exe gperf"
+    FLEX="$WSL $FLEX"
+    NASM="$WSL $NASM"
+    # some externals (libebook) check for it with AC_PATH_PROGS, and that only 
accepts overrides
+    # with an absolute path/requires the value to begin with a slash
+    GPERF="/c/Windows/system32/$WSL gperf"
     # append strawberry tools dir to PATH (for e.g. windres, ar)
     LO_PATH="$LO_PATH:$STRAWBERRY_TOOLS"
     # temp-dir needs to be in windows realm, hardcode for now

Reply via email to