Skip to content

Could the linux-raw-sys = { version = "0.9.2", ... } be relaxed? #179

@adelton

Description

@adelton

Hello,

I'm attempting to rpm-package nusb as a dependency for the EdgeTX Companion rpm build (https://github.com/adelton/edgetx-fedora) and I hit

# rust2rpm nusb
# spectool -g rust-nusb.spec
# rpmbuild -br --define "_sourcedir $(pwd)" rust-nusb.spec
# dnf builddep ~/rpmbuild/SRPMS/rust-nusb-0.2.1-1.fc43.buildreqs.nosrc.rpm
[...]
Problem 1: nothing provides requested (crate(linux-raw-sys/default) >= 0.9.2 with crate(linux-raw-sys/default) < 0.10.0~)
Problem 2: nothing provides requested (crate(linux-raw-sys/ioctl) >= 0.9.2 with crate(linux-raw-sys/ioctl) < 0.10.0~)

In Fedora, there are

dnf list 'rust-linux-raw-sys*' | grep -v '+'
Updating and loading repositories:
Repositories loaded.
Available packages
rust-linux-raw-sys-devel.noarch                0.11.0-1.fc43 fedora
rust-linux-raw-sys0.3-devel.noarch             0.3.8-5.fc43  fedora
rust-linux-raw-sys0.4-devel.noarch             0.4.15-3.fc43 fedora
rust-linux-raw-sys0.6-devel.noarch             0.6.5-2.fc43  fedora

packaged, but no 0.9.2.

Is the strict version = "0.9.2" in

linux-raw-sys = { version = "0.9.2", features = ["ioctl"] }
necessary for nusb or are newer versions of linux-raw-sys fine as well and the depencency could be relaxed, say to version = ">=0.9.2"?

I tried it and a build passes but I don't know if it could affect something negatively functionality-wise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions