Skip to content

Comments

libstore: fix curl version check to allow 8.17.0#14627

Merged
xokdvium merged 1 commit intoNixOS:masterfrom
jonhermansen:libstore-curl-version-maximum
Nov 23, 2025
Merged

libstore: fix curl version check to allow 8.17.0#14627
xokdvium merged 1 commit intoNixOS:masterfrom
jonhermansen:libstore-curl-version-maximum

Conversation

@jonhermansen
Copy link
Member

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+.

Motivation

Meson wouldn't let me configure Nix with curl 8.17.0, even though the write pausing bug should be fixed in this version:

> Run-time dependency libcurl found: YES 8.17.0
>
> meson.build:119:2: ERROR: Problem encountered: curl 8.17.0 has issues with write pausing, please use libcurl < 8.16 or >= 8.17, see https://github.com/curl/curl/issues/19334

Context

The version check introduced in #14614 incorrectly rejects curl 8.17.0. The single-string version comparison syntax '>=8.16.0 <8.17.0' only applied the lower bound in Meson, causing builds with curl 8.17.0 to fail even though the bug (curl/curl#19334) was fixed in that version.

Split into two separate version_compare() calls to work correctly and maintain compatibility with Meson 1.1 (multi-argument syntax requires Meson 1.8+).


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

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+.
@xokdvium xokdvium force-pushed the libstore-curl-version-maximum branch from a604890 to 76ed967 Compare November 23, 2025 09:13
@xokdvium
Copy link
Contributor

Fixed formatting. LGTM

@xokdvium xokdvium enabled auto-merge November 23, 2025 09:14
@xokdvium xokdvium added this pull request to the merge queue Nov 23, 2025
Merged via the queue into NixOS:master with commit 2594e41 Nov 23, 2025
16 checks passed
@edolstra edolstra mentioned this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants