Problem with resolving OpenSSL version using version ranges mechanism
See original GitHub issueI have recently updated conan from version 0.24 to 0.27 Now I have problem with downloading OpenSSL package using version ranges [~=1.0.2] mechanism. Here is example of my conanfile.py:
from conans import ConanFile
class Test(ConanFile):
requires = "OpenSSL/[~=1.0.2]@conan/stable"
generators = "qmake", "txt"
default_options = "OpenSSL:shared=True"
settings = {"os": ["Windows", "Linux", "Macos"],
"compiler": {"Visual Studio": {"version": None, "runtime": None},
"gcc": {"version": None},
"apple-clang": {"version": None}},
"arch": ["x86", "x86_64"],
"build_type": ["Release", "Debug"]}
After calling command: conan install
I receive an error: ERROR: The version in '~=1.0.2' from requirement 'OpenSSL/[~=1.0.2]@conan/stable' could not be resolved
On conan 0.24 everything was running fine. Were there any changes with version ranges mechanism? I’ve checked with changelog and I couldn’t find anything about that.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:41 (27 by maintainers)
Top Results From Across the Web
Remediation for Bad OpenSSL Versions
Older versions of OpenSSL use this functionality incorrectly, causing crashes at runtime. This issue was resolved in OpenSSL 1.1.1i. Versions between 1.1.1b ...
Read more >migration_guide
This guide details the changes required to migrate to new versions of OpenSSL. ... Applications must resolve the error codes only using the...
Read more >Known Issues and Attacks Against SSL/TLS in OpenSSL ...
Protocol issue leading to an attack that takes advantage of an information leak resulting from the use of compression in the SSL/TLS. All...
Read more >Version ranges — conan 1.56.0 documentation
Version ranges ¶. Version range expressions are supported, both in conanfile.txt and in conanfile.py requirements. The syntax uses brackets.
Read more >Changelog
... maketgz: set the right version in lib/libcurl.plist ... asyn-ares: use consistent resolve error message; BUG-BOUNTY: removed the cooperation mention ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I recently updated from 0.26.1 to 0.27 as well, and our projects cannot resolve some version ranges with wildcards. When we downgrade to 0.26.1, everything works as intended.
Our packages were created using >0.25, so I’m confused as to what is happening as well.
Relevant discussion in https://github.com/openssl/openssl/issues/5042