chaotic-aur / packages

Read-only mirror of Chaotic-AUR's main repository. Issues and bug reports welcome! 📑
https://gitlab.com/chaotic-aur/pkgbuilds
GNU General Public License v3.0
338 stars 20 forks source link

[Request] swayosd-git #3303

Closed rubiin closed 2 months ago

rubiin commented 2 months ago

Package:

https://aur.archlinux.org/packages/swayosd-git

Purpose:

For usage with sway and hyprland

Benefits:

Provides OSD features for hyprland and sway

Building:

makepkg, built in Rust™️

Copyright:

GPL-3.0

Expected Interest:

Many

Already available?

No

Unique request?

Yes

Banned package?

No

More information:

No response

xiota commented 2 months ago

Fails to build on v4 builder. Other rust packages with I/O error were fixed by setting CARGO_HOME in interfere, but doesn't work for this one.

Log excerpt. ``` ==> Starting package()... Dropping privileges to 'root' before running ninja... ninja: Entering directory `/home/builder/build/src/build' [0/1] Generating src/Cargo Build with a custom command error: failed to determine package fingerprint for build script for swayosd v0.1.0 (/home/builder/build/src/swayosd) An I/O error happened. Please make sure you can access the file. By default, if your project contains a build script, cargo scans all files in it to determine whether a rebuild is needed. If you don't expect to access the file, specify `rerun-if-changed` in your build script. See https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-changed for more information. Caused by: failed to determine the most recently modified file in /home/builder/build/src/swayosd Caused by: failed to determine list of files in /home/builder/build/src/swayosd Caused by: Could not read repository exclude Caused by: Permission denied (os error 13) FAILED: src/swayosd-server src/swayosd-client src/swayosd-libinput-backend /usr/bin/env CARGO_HOME=/home/builder/build/src/build/cargo-home /usr/bin/cargo build --manifest-path /home/builder/build/src/swayosd/Cargo.toml --target-dir /home/builder/build/src/build/src && cp -f src/debug/swayosd-server src/debug/swayosd-client src/debug/swayosd-libinput-backend src ninja: build stopped: subcommand failed. Could not rebuild /home/builder/build/src/build ==> ERROR: A failure occurred in package(). ```

Update: Problem seems to be change in permissions between build() and package().