Repository: conan-io/conan-center-index

Issue:
[package] qwt/6.2.0: Unresolvable conflict between requires and build_requires
### Description

Using https://github.com/EstebanDugueperoux2/qwtExample example, today I get following error:

```
WARN: qt/5.15.5: requirement openssl/1.1.1s overridden by qwt/6.2.0 to openssl/1.1.1q 
WARN: libmysqlclient/8.0.30: requirement openssl/1.1.1s overridden by qt/5.15.5 to openssl/1.1.1q 
ERROR: Conflict in qt/5.15.5:
    'qt/5.15.5' requires 'openssl/1.1.1s' while 'cmake/3.23.2' requires 'openssl/1.1.1q'.
    To fix this conflict you need to override the package 'openssl' in your root package.
```

Even by overriding openssl dependency because it is a conflict between a require and a build_require.
See https://github.com/conan-io/conan/issues/4753.


### Package and Environment Details

* Package Name/Version: **qwt/6.2.0**
* Operating System+version: **conanio/gcc8**
* Compiler+version: **GCC 8**
* Docker image: **conanio/gcc8**
* Conan version: **conan 1.54.0**
* Python version: **Python 3.7.13**


### Conan profile

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=8
compiler.libcxx=libstdc++11
build_type=Release
# tests can be linked with gtest libraries only if using same build_type,
# see https://stackoverflow.com/questions/41408216/gtest-installed-with-conan-undefined-reference-to-testinginternalgetboolas/41409311#41409311
gtest:build_type=Debug
[options]
[build_requires]
[env]


### Steps to reproduce

docker run --rm -ti -v ${PWD}:/home/conan/project conanio/gcc8
cd project

export OPTIONS="--profile:build .conan/profiles/gcc8 --profile:host .conan/profiles/gcc8 -s qwt_example:build_type=Debug"
export PACKAGE_VERSION=`conan inspect . --raw version`
conan install    . --install-folder=build --build missing $OPTIONS

### Logs

<details><summary>Click to expand log</summary>

```
WARN: qt/5.15.5: requirement openssl/1.1.1s overridden by qwt/6.2.0 to openssl/1.1.1q 
WARN: libmysqlclient/8.0.30: requirement openssl/1.1.1s overridden by qt/5.15.5 to openssl/1.1.1q 
ERROR: Conflict in qt/5.15.5:
    'qt/5.15.5' requires 'openssl/1.1.1s' while 'cmake/3.23.2' requires 'openssl/1.1.1q'.
    To fix this conflict you need to override the package 'openssl' in your root package.
```

</details>



Discussion:

Resolving patch:
diff --git a/recipes/qwt/all/conanfile.py b/recipes/qwt/all/conanfile.py
--- a/recipes/qwt/all/conanfile.py
+++ b/recipes/qwt/all/conanfile.py
@@ -47,8 +47,8 @@ class QwtConan(ConanFile):
     }
 
     tool_requires  = (
-        "cmake/3.23.2",
-        "ninja/1.11.0"
+        "cmake/3.24.2",
+        "ninja/1.11.1"
     )
 
     def _patch_sources(self):
@@ -60,12 +60,12 @@ def export_sources(self):
 
 
     def requirements(self):
-        self.requires("qt/5.15.5")
+        self.requires("qt/5.15.7")
 
     def build_requirements(self):
         if self.settings.os == "Windows" and self.settings.compiler == "Visual Studio":
             self.build_requires("jom/1.1.3")
-        self.tool_requires("qt/5.15.5") 
+        self.tool_requires("qt/5.15.7") 
 
     def validate(self):
         if hasattr(self, "settings_build") and cross_building(self, skip_x64_x86=True):


Test patch: