You are not logged in.

#1 2018-10-02 17:59:05

teXnican
Member
Registered: 2018-09-21
Posts: 28

[SOLVED] spotifyd package build failed

I fail to install the spotifyd package from the AUR. The error when running makepkg is

$ RUST_BACKTRACE=1 makepkg
==> Making package: spotifyd 0.2.2-1 (Tue 02 Oct 2018 07:54:40 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading spotifyd-0.2.2.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125    0   125    0     0    131      0 --:--:-- --:--:-- --:--:--   131
100 42970    0 42970    0     0  19783      0 --:--:--  0:00:02 --:--:--  107k
==> Validating source files with sha256sums...
    spotifyd-0.2.2.tar.gz ... Passed
==> Extracting sources...
  -> Extracting spotifyd-0.2.2.tar.gz with bsdtar
==> Starting build()...
   Compiling libc v0.2.42                                                                      
   Compiling cfg-if v0.1.3
   Compiling nodrop v0.1.12
   Compiling memoffset v0.2.1
   Compiling byteorder v1.2.3
   Compiling scopeguard v0.3.3
   Compiling lazy_static v1.0.1
   Compiling lazycell v0.6.0
   Compiling futures v0.1.21
   Compiling slab v0.4.0
   Compiling unicode-xid v0.1.0
   Compiling version_check v0.1.3
   Compiling semver-parser v0.7.0
   Compiling gcc v0.3.54
   Compiling pkg-config v0.3.11
   Compiling unicode-xid v0.0.4
   Compiling cc v1.0.17
   Compiling scoped-tls v0.1.2
   Compiling num-traits v0.2.4
   Compiling quote v0.3.15
   Compiling smallvec v0.2.1
   Compiling take v0.1.0
   Compiling matches v0.1.6
   Compiling protobuf v1.7.3
   Compiling num-integer v0.1.38
   Compiling siphasher v0.2.2
   Compiling try-lock v0.1.0
   Compiling safemem v0.2.0
   Compiling bitflags v0.7.0
   Compiling serde v1.0.66
   Compiling slab v0.3.0
   Compiling percent-encoding v1.0.1
   Compiling openssl v0.9.24
   Compiling librespot-protocol v0.1.0 (https://github.com/librespot-org/librespot.git#431be9e8)
   Compiling language-tags v0.2.2
   Compiling foreign-types-shared v0.1.1
   Compiling httparse v1.2.4
   Compiling unicode-normalization v0.1.7
   Compiling itoa v0.3.4
   Compiling build_const v0.2.1
   Compiling bitflags v0.9.1
   Compiling dtoa v0.4.2
   Compiling rustc-serialize v0.3.24
   Compiling serde v0.9.15
   Compiling nix v0.11.0
   Compiling error-chain v0.11.0
   Compiling void v1.0.2
   Compiling bit-vec v0.4.4
   Compiling lazy_static v0.2.11
   Compiling byteorder v0.5.3
   Compiling rand_core v0.2.1
   Compiling rustc-demangle v0.1.8
   Compiling regex v1.0.0
   Compiling quick-error v1.2.2
   Compiling c_linked_list v1.1.0
   Compiling linear-map v1.2.0
   Compiling bitflags v1.0.3
   Compiling ucd-util v0.1.1
   Compiling regex v0.2.11
   Compiling derive_builder v0.5.1
   Compiling adler32 v1.0.2
   Compiling itoa v0.4.1
   Compiling utf8-ranges v1.0.0
   Compiling either v1.5.0
   Compiling termcolor v0.3.6
   Compiling webbrowser v0.2.2
   Compiling term v0.4.6
   Compiling getopts v0.2.17
   Compiling random v0.12.2
   Compiling xdg v2.1.0
   Compiling rust-ini v0.10.3
   Compiling crossbeam-utils v0.3.2
   Compiling log v0.4.2
   Compiling encoding_rs v0.7.2
   Compiling arrayvec v0.4.7
   Compiling proc-macro2 v0.4.6
   Compiling synom v0.11.3
   Compiling ogg v0.5.1
   Compiling shannon v0.2.0
   Compiling base64 v0.5.2
   Compiling iovec v0.1.2
   Compiling net2 v0.2.32
   Compiling num_cpus v1.8.0
   Compiling rand v0.4.2
   Compiling time v0.1.40
   Compiling termios v0.2.2
   Compiling memchr v2.0.1
   Compiling alsa v0.0.1 (https://github.com/plietar/rust-alsa#8c63543f)
   Compiling atty v0.2.10
   Compiling unix_socket v0.5.0
   Compiling hostname v0.1.5
   Compiling daemonize v0.2.3
   Compiling unicase v2.1.0
   Compiling unicase v1.4.2
   Compiling semver v0.9.0
   Compiling alsa-sys v0.1.2
   Compiling unicode-bidi v0.3.4
   Compiling tokio-executor v0.1.2
   Compiling tokio-service v0.1.0
   Compiling relay v0.1.1
   Compiling base64 v0.9.2
   Compiling base64 v0.6.0
   Compiling ogg-sys v0.0.9
   Compiling tremor-sys v0.1.0 (https://github.com/plietar/rust-tremor#5958cc30)
   Compiling rust-crypto v0.2.36 (https://github.com/awmath/rust-crypto.git?branch=avx2#394c2472)
   Compiling foreign-types v0.3.2
   Compiling crc v1.8.1
   Compiling unreachable v1.0.0
   Compiling nix v0.9.0
   Compiling bit-set v0.4.0
   Compiling rand v0.5.1
   Compiling dns-parser v0.3.2 (https://github.com/plietar/dns-parser#1d3e5a55)
   Compiling humantime v1.1.1
   Compiling openssl-sys v0.9.33
   Compiling backtrace-sys v0.1.23
   Compiling get_if_addrs v0.5.2
   Compiling regex-syntax v0.6.1
   Compiling regex-syntax v0.5.6
   Compiling itertools v0.7.8
   Compiling log v0.3.9
   Compiling want v0.0.4
   Compiling crossbeam-epoch v0.4.3
   Compiling bytes v0.4.8
   Compiling syn v0.11.11
   Compiling lewton v0.8.0
   Compiling mio v0.6.14
   Compiling rpassword v0.3.1
   Compiling aho-corasick v0.6.4
   Compiling futures-cpupool v0.1.8
   Compiling quote v0.6.3
   Compiling vergen v0.1.1
   Compiling rand v0.3.22
   Compiling uuid v0.6.5
   Compiling rustc_version v0.2.2
   Compiling tokio-timer v0.2.4
   Compiling thread_local v0.3.5
   Compiling syslog v3.3.0
   Compiling simplelog v0.4.4
   Compiling crossbeam-deque v0.3.1
   Compiling idna v0.1.4
   Compiling tokio-io v0.1.7
   Compiling mio-uds v0.6.6
   Compiling uuid v0.4.0
   Compiling tempfile v2.2.0
   Compiling syn v0.14.2
   Compiling serde_codegen_internals v0.14.2
   Compiling synstructure v0.6.1
   Compiling derive-error-chain v0.10.1
   Compiling derive_builder_core v0.2.0
   Compiling librespot-core v0.1.0 (https://github.com/librespot-org/librespot.git#431be9e8)
   Compiling extprim v1.6.0
   Compiling num-traits v0.1.43
error: failed to run custom build command for `openssl v0.9.24`
process didn't exit successfully: `/home/xenon/Downloads/spotifyd/src/spotifyd-0.2.2/target/release/build/openssl-4e050bcc8f5aae18/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/xenon/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24/build.rs:16:14
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::_print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::begin_panic
   6: build_script_build::main
   7: std::rt::lang_start::{{closure}}
   8: std::panicking::try::do_call
   9: __rust_maybe_catch_panic
  10: std::rt::lang_start_internal
  11: main
  12: __libc_start_main
  13: _start

warning: build failed, waiting for other jobs to finish...

I have openssl installed on my system.

Last edited by teXnican (2018-10-03 06:59:25)

Offline

#2 2018-10-03 06:59:11

teXnican
Member
Registered: 2018-09-21
Posts: 28

Re: [SOLVED] spotifyd package build failed

Taking the suggested workaround from https://github.com/Spotifyd/spotifyd/issues/168, it works after installing openssl-1.0 and using

OPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0 OPENSSL_LIB_DIR=/usr/lib/openssl-1.0 makepkg

Offline

#3 2018-10-03 13:44:14

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] spotifyd package build failed

Perhaps you should leave a comment on the AUR package suggesting that this workaround be temporarily added to the PKGBUILD?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2018-10-07 06:38:22

teXnican
Member
Registered: 2018-09-21
Posts: 28

Re: [SOLVED] spotifyd package build failed

Thanks for the hint! Meanawhile others have done so. I'm sure this will get fixed soon.

Offline

Board footer

Powered by FluxBB