Skip to content

pixi-ros-build can't process crypto++ dependency #6287

Closed

Description

@VRichardJP

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

crypto++ is a valid ROS dependency: https://index.ros.org/d/crypto++/
But pixi-build-ros can't process it because of the + character:

$ pixi lock
Error:   × failed to solve requirements of environment 'default' for platform 'linux-64'
  ╰─▶   × the build backend (pixi-build-ros) exited prematurely.
        │ Build backend output:
        │
        │
        │ thread 'main' (595803) panicked at /home/conda/feedstock_root/build_artifacts/bld/
        │ rattler-build_pixi-build-ros_1780393469/build_env/.cargo/git/checkouts/rattler-build-
        │ 5c6d2407a545b614/22f5d08/crates/rattler_build_recipe/src/stage0/match_spec.rs:64:18:
        │ Invalid MatchSpec: InvalidPackageNameMatcher(PackageName { name: "ros-humble-crypto++", source:
        │ InvalidCharacters("ros-humble-crypto++") })
        │ note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Minimal example:

  1. Create pixi workspace and edit pixi.toml:
[workspace]
authors = ["Vincent Richard <[email protected]>"]
channels = ["conda-forge", "robostack-humble"]
name = "pixi_crypto"
platforms = ["linux-64"]
version = "0.1.0"
preview = ["pixi-build"]

[tasks]

[dependencies]
ros-humble-desktop = ">=0.10.0,<0.11"

[dev]
ros-package-with-cryptopp = { path = "ros_package_with_cryptopp" }
  1. Run pixi run ros2 pkg create ros_package_with_cryptopp
  2. Add <depend>crypto++</depend> to ros_package_with_cryptopp/package.xml
  3. Create ros_package_with_cryptopp/pixi.toml:
[package.build.backend]
channels = ["https://prefix.dev/conda-forge"]
name = "pixi-build-ros"
version = "*"
  1. run pixi lock

Issue description

No response

Expected behavior

Should work?

crypto++ is a ROS dependency which should resolve to cryptopp?

I assume https://index.ros.org/d/libpng++-dev/ will not work either (but in this case, there is no libpngpp on conda-forge (http://savannah.nongnu.org/projects/pngpp/)

Activity

  1. added
    bug
    on Jun 5, 2026
  2. self-assigned this
    on Jun 5, 2026
  3. VRichardJP commented on Jun 9, 2026

    @VRichardJP
    Author

    Could you re-open this one too?

    After updating pixi to 0.70.2, pixi clean, pixi clean cache the example still fails on my machine:

    $ pixi lock
    Error:   × failed to solve requirements of environment 'default' for platform 'linux-64'
      ╰─▶   × the build backend (pixi-build-ros) exited prematurely.
            │ Build backend output:
            │
            │
            │ thread 'main' (3153280) panicked at /home/conda/feedstock_root/build_artifacts/bld/
            │ rattler-build_pixi-build-ros_1780393469/build_env/.cargo/git/checkouts/rattler-build-
            │ 5c6d2407a545b614/22f5d08/crates/rattler_build_recipe/src/stage0/match_spec.rs:64:18:
            │ Invalid MatchSpec: InvalidPackageNameMatcher(PackageName { name: "ros-humble-crypto++", source:
            │ InvalidCharacters("ros-humble-crypto++") })
            │ note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
    

    I guess pixi-build-ros version should be bumped?

  4. baszalmstra commented on Jun 9, 2026

    @baszalmstra
    Contributor

    A new release of the build backend is required. This is not solved in pixi itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpixi-build-rosros

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions