Skip to content

Commit

Permalink
(conan-io#23603) Add expat and libxml2 to list of allowed version ranges
Browse files Browse the repository at this point in the history
* Add expat and libxml2 to list of allowed version ranges

* Typo

* Update docs/adding_packages/dependencies.md
  • Loading branch information
RubenRBS authored and franramirez688 committed Apr 23, 2024
1 parent 193d30f commit fe1f8e0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/adding_packages/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,16 @@ for consumer, we do impose some limits on Conan features to provide a smoother f

Version ranges are a useful Conan feature, [documentation here](https://docs.conan.io/2/tutorial/versioning/version_ranges.html).
With the introduction of Conan 2.0, we are currently working to allow the use of version ranges and are allowing this for a handful of dependencies.
Currently, these are:
Currently, these are (except if the recipe needs a newer lower version for specific reasons):

* OpenSSL: `[>=1.1 <4]` for libraries known to be compatible with OpenSSL 1.x and 3.x
* CMake: `[>3.XX <4]`, where `3.XX` is the minimum version of CMake required by the relevant build scripts. Note that CCI recipes assume 3.15 is installed in the system, so add this
version range only when a requirement for a newer version is needed.
* Libcurl: `[>=X.YY <9]`, where `X.YY` is the minimum version of Libcurl required, starting from `7.78`
* Zlib: `[>=1.2.11 <2]` expect if the recipe needs a newer lower version for specific reasons
* Libpng: `[>=1.6 <2]` expect if the recipe needs a newer lower version for specific reasons
* Libcurl: `[>=7.78 <9]`
* Zlib: `[>=1.2.11 <2]`
* Libpng: `[>=1.6 <2]`
* Expat: `[>=2.6.2 <3]`
* Libxml2: `[>=2.12.5 <3]`

> **Warning**: With Conan 1.x, [version ranges](https://docs.conan.io/1/versioning/version_ranges.html) adhere to a much more strict sematic version spec,
> OpenSSL 1.1.x does not follow this so the client will not resolve to that range and will pick a 3.x version. In order to select a lower version you
Expand Down

0 comments on commit fe1f8e0

Please sign in to comment.