mirror of
https://github.com/NixOS/nix.git
synced 2025-11-24 11:19:35 +01:00
libstore: fix curl version check to allow 8.17.0
The single-string syntax '>=8.16.0 <8.17.0' only applied the lower bound, causing curl 8.17.0 to be incorrectly rejected. Split into two separate version_compare() calls for compatibility with Meson 1.1, since multi-argument syntax requires Meson 1.8+.
This commit is contained in:
parent
327e8babf7
commit
76ed967f79
1 changed files with 3 additions and 1 deletions
|
|
@ -114,7 +114,9 @@ boost = dependency(
|
|||
deps_other += boost
|
||||
|
||||
curl = dependency('libcurl', 'curl', version : '>= 7.75.0')
|
||||
if curl.version().version_compare('>=8.16.0 <8.17.0')
|
||||
if curl.version().version_compare('>=8.16.0') and curl.version().version_compare(
|
||||
'<8.17.0',
|
||||
)
|
||||
# Out of precaution, avoid building with libcurl version that suffer from https://github.com/curl/curl/issues/19334.
|
||||
error(
|
||||
'curl @0@ has issues with write pausing, please use libcurl < 8.16 or >= 8.17, see https://github.com/curl/curl/issues/19334'.format(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue