When building for release, the following error will arise if xkbcommon is not installed:
--- stderr
thread 'main' panicked at /home/duane/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smithay-client-toolkit-0.19.2/build.rs:3:49:
called `Result::unwrap()` on an `Err` value: "\npkg-config exited with status code 1\n> PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags xkbcommon\n\nThe system library `xkbcommon` required by crate `smithay-client-toolkit` was not found.\nThe file `xkbcommon.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.\nThe PKG_CONFIG_PATH environment variable is not set.\n\nHINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `xkbcommon.pc`.\n"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: Recipe `build-release` failed on line 26 with exit code 101
Expected Result
No error when building
Steps to Reproduce
On a Pop!_OS cosmic machine, try to build clipboard-manager with just the currently listed dependencies:
sudo apt install libsqlite3-dev sqlite3 just cargo
just build-release
Possible Solutions (optional)
Add libxkbcommon-dev to the list of required dependencies:
sudo apt install libsqlite3-dev sqlite3 just cargo libxkbcommon-dev
Bug Description
When building for release, the following error will arise if xkbcommon is not installed:
Expected Result
No error when building
Steps to Reproduce
On a Pop!_OS cosmic machine, try to build clipboard-manager with just the currently listed dependencies:
Possible Solutions (optional)
Add
libxkbcommon-dev
to the list of required dependencies: