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: Support building on Windows without sh #2962
Comments
We need to call the script from autotools, and dependence on Python is overkill in this case. The script uses Or you can write a meson function to replace the script and use it only if the original script cannot be executed. |
Thanks! That sounds good. For reference, I found a related issue mesonbuild/meson#688. |
Did you test that it actually works after replacing the There should at least also be issues with If bash is fine, maybe |
Nope, I haven't gotten that far yet. This is just the first hurdle, but I'll try to test out how far I get with the project version hard-coded.
These should be fine as is since those two tools are just used to generate two header files, which are only used by a couple of executables,
It would be ideal to avoid any extra dependencies on Windows, such as Bash. |
So, I've delved into the details a bit further on this. There's a couple different approaches that could be taken. Unfortunately, the
|
The testsuite also needs bash. Using util-linux on Windows without having run the testsuite is not something that seems advisable. |
The question is, why do you want to use util-linux if you do not have other essential utilities like bash or coreutils? It sounds like an academic exercise :-) Note that I do not have a problem with supporting non-Linux platforms, but the support must not negatively impact usability on Linux, as it is our primary audience. |
I'm mostly just ignorant of the current support for Windows, since I know that it is possible to build There was just a Conan package submitted to package |
Does it work on Windows when bash is available during build? |
Apparently it should using MSYS and a non-MVSC compiler, but I haven't tested myself. |
Using Meson to build
util-linux
on Windows requires/bin/sh
to run thetools/git-version-gen
script to determine the project's version.This results in the following error on Windows.
Converting this script to Python or perhaps even Meson, assuming that is possible, would make it possible to build with Meson on Windows.
The text was updated successfully, but these errors were encountered: