danyspin97 / wpaperd

Modern wallpaper daemon for Wayland
GNU General Public License v3.0
329 stars 25 forks source link

Cannot build version 0.3.0 #44

Closed constantitus closed 9 months ago

constantitus commented 1 year ago

Steps to reproduce:

error[E0432]: unresolved import `smithay_client_toolkit::shell::layer`
  --> src/surface.rs:17:36
   |
17 | use smithay_client_toolkit::shell::layer::{Anchor, LayerShell, LayerSurface};
   |                                    ^^^^^ could not find `layer` in `shell`

error[E0432]: unresolved import `smithay_client_toolkit::shm::ShmState`
  --> src/surface.rs:19:5
   |
19 | use smithay_client_toolkit::shm::ShmState;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ShmState` in `shm`

error[E0432]: unresolved import `smithay_client_toolkit::shell::layer`
  --> src/wpaperd.rs:10:36
   |
10 | use smithay_client_toolkit::shell::layer::{
   |                                    ^^^^^ could not find `layer` in `shell`

error[E0432]: unresolved import `smithay_client_toolkit::shm::ShmState`
  --> src/wpaperd.rs:13:47
   |
13 | use smithay_client_toolkit::shm::{ShmHandler, ShmState};
   |                                               ^^^^^^^^ no `ShmState` in `shm`

error[E0432]: unresolved import `smithay_client_toolkit::reexports::client::WaylandSource`
  --> src/main.rs:27:56
   |
27 |     client::{globals::registry_queue_init, Connection, WaylandSource},
   |                                                        ^^^^^^^^^^^^^ no `WaylandSource` in the root

error[E0433]: failed to resolve: could not find `layer` in `shell`
  --> src/surface.rs:62:48
   |
62 |                 smithay_client_toolkit::shell::layer::Layer::Background,
   |                                                ^^^^^ could not find `layer` in `shell`

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
warning: `wpaperd` (bin "wpaperd") generated 1 warning (1 duplicate)
error: could not compile `wpaperd` (bin "wpaperd") due to 6 previous errors; 1 warning emitted

Also, I am trying to package this for gentoo, and the fact that it's using the master branch of smithay_client_toolkit forces me to make a live ebuild or patch it to use a fixed version. It would be very useful if it used a fixed version of this dependency.

danyspin97 commented 1 year ago

Hello @constantitus and thank you for the issue report. I have been using the master version because smithay added some changes there that have been useful to wpaperd. It seems to me that unfortunately they haven't yet relaesed a version with the latest changes, so I can instead pin the commit into the Cargo.toml.

danyspin97 commented 9 months ago

smithay-client-toolkit released a tagged version and I updated the Cargo.toml to use it. Now it will be possible to always build wpaperd in master and the future tagged versions.