arne-fuchs / edcas-client

Shows system information to the cmdr in a compact view
Apache License 2.0
3 stars 1 forks source link

Missing build requirement: opener #6

Closed HalJordan closed 6 months ago

HalJordan commented 6 months ago
~/.games/edcas-client %cargo build
Updating crates.io index
error: failed to select a version for `opener`.
... required by package `edcas-client v0.3.0 (/home/hal_j/.games/edcas-client)`
versions that meet the requirements `^0.7.0` (locked to 0.7.0) are: 0.7.0

the package `edcas-client` depends on `opener`, with features: `dbus` but `opener` does not have these features.
It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.

failed to select a version for `opener` which could resolve this conflict
cargo build  125.33s user 14.59s system 53% cpu 4:21.97 total

Also, the only currently available release of opener is 1.0-2

arne-fuchs commented 6 months ago

Hey, can you give me your cargo version?

arne-fuchs commented 6 months ago

And also on which os are you running this?

HalJordan commented 6 months ago

Arch, installed whatever the latest cargo is from pacman/aur right now.

Nannk commented 6 months ago

Let me test this when i get back home.

Nannk commented 6 months ago

It builds on latest archlinux with rust installed through package manager (not rustup)

grafik grafik grafik i have cargo 1.77.2.

Latest version of Opener is 0.7.0 though. https://crates.io/search?q=opener https://github.com/Seeker14491/opener/tags

If you are trying to install opener through aur helper, its the wrong opener: https://aur.archlinux.org/packages/opener

Try to add latest dbus in Cargo.toml as a dependency (https://crates.io/crates/opener/0.7.0/dependencies)

Although i have noticed it builds libdbus-sys https://lib.rs/crates/libdbus-sys, which it then shows in build log as "Compiling dbus v0.9.7"

Found this: https://blog.illixion.com/2021/10/fix-failed-to-select-a-version-cargo/ try clearing cargo cache by deleting $HOME/.cargo/registry then build the project again.

arne-fuchs commented 6 months ago

@HalJordan Marked as done. Please setup rust and cargo correctly or use the precompiled binaries in the release tab: https://github.com/arne-fuchs/edcas-client/releases/tag/0.2.6

Nannk commented 6 months ago

There is also an aur package. Its a bit broken, you have to put this logo in the /usr/share/edcas-client/graphics/logo/edcas_128.png, otherwise itll crash with :

Log file: "/tmp/edcas-client/date-and-time.log"
thread 'main' panicked at src/app/news.rs:26:31:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

or clone the repo, cd in it and run the executable from there.

arne-fuchs commented 6 months ago

@Nannk Aur package broken? Is this already fixed with the upcoming release?

Nannk commented 6 months ago

@Nannk Aur package broken? Is this already fixed with the upcoming release?

Yes and no. I cant add the image because its not in the release archive (i probably can, but it would have to download it separately). See the issue https://github.com/arne-fuchs/edcas-client/issues/7 .