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.

Problem with resolving OpenSSL version using version ranges mechanism

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:41 (27 by maintainers)

github_iconTop GitHub Comments

1reaction
zacklj89commented, Sep 22, 2017

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.

0reactions
probonopdcommented, Feb 25, 2018

I think this fits into a weird area of “you want to use semver semantics but your package doesn’t follow the semver specification”.

Relevant discussion in https://github.com/openssl/openssl/issues/5042

Read more comments on GitHub >

github_iconTop 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 >

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