On Wed, Nov 20, 2024 at 10:27:29PM +0000, David Elsing wrote: > Hi, > > Andreas Enge writes: > > starting phase `build' > > error: failed to select a version for `core-graphics-types`. > > ... required by package `core-graphics v0.23.2` > > ... which satisfies dependency `core-graphics = "^0.23.2"` of package `kanata v1.7.0-prerelease-2 (/tmp/guix-build-kanata-1.7.0-prerelease-2.drv-0/kanata-1.7.0-prerelease-2)` > > versions that meet the requirements `^0.1` are: 0.1.1 > > > > the package `core-graphics` depends on `core-graphics-types`, with features: `link` but `core-graphics-types` does not have these features. > > > > failed to select a version for `core-graphics-types` which could resolve this conflict > > > > We do have core-graphics-types@0.23.2 and core-graphics-types@0.1.1, so the > > versions look okay to my untrained eye. > > it appears that the crates `core-graphics` and `core-graphics-types` are > developed in the same repository [1]. Looking at the commit where the > `core-graphics` version was set to 0.23.2 [2], the > corresponding `core-graphics-types` crate version (0.1.3) already has > the "link" feature, but version 0.1.1 (the version in Guix) does not. > This seems to be a mistake in the `core-graphics` crate. > > As `kanata` depends on `core-graphics` version 0.23.2, you should add > a package for rust-core-graphics-types with version 0.1.3 (the latest > 0.1.* version) and use that instead in the #:cargo-inputs of > rust-core-graphics-0.23. > > Cheers, > David > > [1] https://github.com/servo/core-foundation-rs > [2] https://github.com/servo/core-foundation-rs/blob/dd284a07f4aec3b78667462cd7ef56d0c6153c68 > Through some playing around I was able to build rust-core-graphics-types@0.1.3, but I had to disable the automatic linking. Since that crate is specifically for macOS I think the easiest option you have is to remove the dependency from Cargo.toml with a substitute* and just not include it. -- Efraim Flashner אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted