Package Details: sccache 0.2.12-1

Git Clone URL: https://aur.archlinux.org/sccache.git (read-only, click to copy)
Package Base: sccache
Description: ccache with cloud storage
Upstream URL: https://github.com/mozilla/sccache
Licenses: Apache
Submitter: flacks
Maintainer: flacks
Last Packager: flacks
Votes: 5
Popularity: 0.102608
First Submitted: 2018-08-12 04:58
Last Updated: 2019-10-12 04:18

Latest Comments

jgerecke commented on 2019-11-07 23:13

This package builds the "sccache-dist" binary (used for setting up your own servers), but does not install it. The following line needs to be added to the package() section of the PKGBUILD file:

install -D target/release/sccache-dist -t "$pkgdir"/usr/bin

EDIT: Also, this package does not mark itself as conflicting with the sccache-bin or sccache-git packages...

flacks commented on 2019-07-08 05:27

marmistrz, I'm building sccache as-is in a clean chroot without issue. I've also built pkgrel 1 on my system with the ccache flag for makepkg enabled without issue. Also, removing selenium-rs breaks the build. For sccache tests, there is a hard dependency on an older version of the openssl crate, hence the makedepends of openssl-1.0. I suggest trying to build in a clean chroot to see if you can replicate your error, because I can't. Post a patch if possible, and I'll investigate further.

marmistrz commented on 2019-07-07 18:24

Btw. the tests fail for me, probably because I have enabled ccache in makepkg.conf:

running 1 test
Starting sccache server...
test test_sccache_command ... FAILED

failures:

---- test_sccache_command stdout ----
thread 'test_sccache_command' panicked at 'Unexpected failure.
code-2
stderr=```error: failed to execute compile
caused by: Compiler not supported

command="/home/marcin/.cache/yay/sccache/src/sccache-0.2.9/target/x86_64-unknown-linux-gnu/release/sccache" "/usr/bin/ccache" "-c" "test.c" "-o" "test.o" code=2 stdout=``` stderr=error: failed to execute compile caused by: Compiler not supported

', /home/marcin/.cargo/registry/src/github.com-1ecc6299db9ec823/assert_cmd-0.9.1/src/assert.rs:154:13
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.


failures:
    test_sccache_command

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '--test system'
==> ERROR: A failure occurred in check().
    Aborting...
Error making: sccache

marmistrz commented on 2019-07-07 18:16

The only reason sccache doesn't build now without the openssl-1.0 tweaks is the dependency on selenium-rs, which is required only for tests. Thus, instead of depending on openssl-1.0 we could patch Cargo.toml to remove selenium-rs.