question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] Managing MSYS build require outside of the recipes

See original GitHub issue

Coming from https://github.com/conan-io/conan-center-index/pull/971#discussion_r384523076

To enable proper MinGW support in some of the recipes, we are repeating every time the code

def build_requirements(self):
    if tools.os_info.is_windows and "CONAN_BASH_PATH" not in os.environ and \
        tools.os_info.detect_windows_subsystem() != "msys2":
            self.build_requires("msys2/20190524")

I personally understand that it is very convenient to have the build require there, but this is clearly a pattern in all the recipes that enable support for MinGW.

My question is: Should we stop adding this code in the recipes and recommend people using the msys package in their mingw profiles as the cannonical way to create the packages?

I think having msys together with mingw should be a well-known pratice for all of those that are these creating packages

cc/ @SSE4 @uilianries @madebr

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
madebrcommented, Mar 6, 2020

No, the build requirement must be there.

It is often present for MSVC builds if there is only a autotools build system.

0reactions
danimtbcommented, Mar 16, 2020

Thanks a lot for the feedback guys!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I install MinGW-w64 and MSYS2? - Stack Overflow
I need a package management system to easily download the dependencies. At first I am using MinGW and MSYS. But the included packages...
Read more >
Compile error - ST Community - STMicroelectronics
I always show this message when I compile. I tried to reinstall the TouchGFX 4.18.0 many times but it always same happened.
Read more >
R Installation and Administration
6.1 Default packages; 6.2 Managing libraries; 6.3 Installing packages ... (or, when building outside the source, TOP_SRCDIR /configure , etc) have been ...
Read more >
C / C++ IDE (CDT) » MSys (CYGWIN?), CDT and ECLIPSE
My recipe is as follows. 1) Let the CDT manage the project. ... allows make to function properly outside the MSys environment.
Read more >
CCS/LAUNCHXL-CC1310: Code Composer Studio tirtos build ...
Take a close look at the CCS build console and ensure that the sh.exe used for the build is the one from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found