-
Notifications
You must be signed in to change notification settings - Fork 994
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
[bug] incomplete adaptation on subsytem install request #17680
Comments
Hi @herve0026 Thanks for your question.
This is not strictly necessary, and possibly not recommended, please let me explain:
Can you clarify which compiler do you intent to use, is it mingw? If you are using it, why not using the I use WSL in Windows, just as a native Linux system I install conan in it, etc, and everything works great. Also in docker containers, I'd like to understand better what is the challenge there. |
Hello and first of all thank you for your quick feedback. My development environment can be either Windows or Linux. I manage a C project using cmake, which is OS agnostic. I do not specifically need git-bash on windows, but I use it because it is easy to use as it can be called from the contextual menu. To be transparent, I mainly work with vscode and open a git-bash terminal from there. But the main idea is that I manage my project dependencies from a bash/sh terminal when I'm on windows or linux, not from a cmd or powershell when I'm on windows and a bash/sh when I'm on linux. Currently I only have tool dependencies that do not need to be built, but I do need the tools exe to be present in the path and possibly an environment variable associated with the tool. So it is very nice for me that conan allows to have conanrun.sh under windows thanks to the capacity of the windows subsystem. This way I have a set of scripts that work fine and are exactly the same whether I'm developing under Windows (under msys, under cygwin or under wsl) or under Linux. I have found that deactivate_conanrunenv-release-x86_64.sh is created correctly when I run conan install conanfile.txt with a new version of the tool, for example. So the question on this particular point is closed. For the the fact that only path and note define takes advantage of the automatic conversion, I have managed this on my side by implementing a "setenv.sh" associated with the tool. So I have removed the define from my recipe:
|
Many thanks for the feedback.
A perfectly valid scenario is to have a "build" profile with I think the initial issue with the |
Describe the bug
Hello,
I use conan 2.12.1 to install prebuild binaries package. Under windows I work in a git-bash console. Then I am interesting in the msys2 subsystem possibilities.
When I download a package with the following command:
conan install ./conanfile.txt --update --output scripts/conan -c=tools.microsoft.bash:subsystem=msys2 -c=tools.microsoft.bash:active=True
I do have shell scripts, which is good:
But I have the following observations:
PATH variable is correctly adapted but it is not the case of ELIXT_CONFIGURATION_PROPERTIES and script_folder.
Furthermore, deactivate_conanrunenv-release-x86_64.sh is not created whereas the bat file is correctly created if I simply use: conan install ./conanfile.txt --update --output scripts/conan
Same behavioir with wsl or cygwin subsystems.
Did I do something wrong ?
How to reproduce it
systematic using subsystem configurations
The text was updated successfully, but these errors were encountered: