Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: Porting astral-sh/uv
To:
Laurent Cheylus <foxy@free.fr>
Cc:
ports@openbsd.org
Date:
Fri, 4 Jul 2025 13:01:38 +0100

Download raw body.

Thread
  • Laurent Cheylus:

    Porting astral-sh/uv

  • On 2025/07/04 10:36, Laurent Cheylus wrote:
    > I read the replies from tb@ and Suart. Unfortunately, upstream project 
    > uses frequently patched Rust crates: some permanently (rs-async, pubgrub, 
    > tl), other only for some releases (now, patchs for reqwest-middleware).
    
    It's in their control whether they decide to do it like that, or make
    actual releases that OS packagers can use.
    
    I looked at ruff and uv a few months ago and came to the conclusion that
    between upstream's decision about that, resulting in a bunch of extra
    work for updates, combined with the very frequent release cadence, that
    they aren't really essential, and that pipx works for both, it probably
    wasn't worth the contortions to get them into ports.
    
    > I think it' better to download patched crates from GH and uses SUBST_CMD 
    > to patch Cargo.toml as in my port.
    
    SUBST_CMD is a bit of a pain for update-patches as you can only update
    at the right point during build. tb's approach that doesn't include the
    hash in the dir name, resulting in replacement Cargo.toml lines that
    don't need to change dir name each time, does make this a little easier.
    
    -+version-ranges = { path = "../pubgrub-${PUBGRUB}/version-ranges" }
    ++version-ranges = { path = "../pubgrub/version-ranges" }
    
    
    
    > PS: I have also a port for the other main Astral-sh project, ruff (Python 
    > linter in Rust) => ttps://github.com/jasperla/openbsd-wip/tree/master/
    > devel/ruff
    > 
    > Laurent
    > 
    
    
  • Laurent Cheylus:

    Porting astral-sh/uv