-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Meson sets PATH rather than WINEPATH in run_exe() #10401
Comments
Hmm, from a quick test, it works for me. Can you provide exact steps to reproduce, ideally based on a docker image. Alternatively, you can debug that yourself by printing why it's not getting into the condition |
In
so we take the branch. Then we have:
...these are combined into one thing and pushed into
It seems that the
I'm not exactly sure what the .bat file trick is doing, but I don't think it works super well with more than one passed in |
I think it makes sense to short-circuit if we know that getting a shortpath isn't needed. This is in addition to fixing whatever is broken about the bat magic. |
I'm really confused about that; I'm running this in meson:
and I get zero output. Do it in something like this, and it works perfectly:
It makes no sense. The environment is basically the same in both cases. |
Maybe when wine_paths list is too long the BAT script returns success but does not print anything? In #10457 I added a check for empty stdout to print a warning but continue in the hope it goes well. |
Describe the bug
I have a subproject that defines a binary:
and defines it in the
gcab.wrap
file:and then a toplevel project (fwupd, but unimportant) that wants to use that binary:
...which is used like this:
...I'm also then using a cross build file, with needs_exe_wrapper = true:
It seems I'm not having
WINEPATH
set, justPATH
... e.g.'WINEPATH': ''
and'PATH': '/usr/x86_64-w64-mingw32/lib:/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/../../../../x86_64-w64-mingw32/lib/../lib:/usr/libexec/gcc/x86_64-w64-mingw32:/usr/x86_64-w64-mingw32/sys-root/mingw/bin:/usr/lib/gcc/x86_64-w64-mingw32:/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/../../../../x86_64-w64-mingw32/bin:/usr/x86_64-w64-mingw32/sys-root/mingw/lib:/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib:/home/hughsie/Code/fwupd-win32/build-win32/subprojects/gcab/src:/usr/x86_64-w64-mingw32/bin:/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/../../../../x86_64-w64-mingw32/lib:/usr/libexec/gcc/x86_64-w64-mingw32/11.2.1:/usr/lib/gcc/x86_64-w64-mingw32/11.2.1:/home/hughsie/Code/fwupd-win32/build-win32/subprojects/gcab/libgcab:/usr/lib/ccache:/usr/lib/ccache:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/hughsie/.local/bin:/home/hughsie/bin'
...Expected behavior
I expected wine to be detected and for
WINEPATH
to be set for thecustom_target()
.system parameters
w64-mingw32
Fedora 36
3.10.4
meson --version
git master
ninja --version
if it's a Ninja build1.10.2
The text was updated successfully, but these errors were encountered: