gentoo-rust icon indicating copy to clipboard operation
gentoo-rust copied to clipboard

Spotifyd ebuild

Open antonellocaroli opened this issue 4 years ago • 1 comments

I tried to install spotifyd. But I get this mistake:

`>>> Test phase [not enabled]: media-sound/spotifyd-0.2.20

Install media-sound/spotifyd-0.2.20 into /var/tmp/portage/media-sound/spotifyd-0.2.20/image error: The argument '--path <PATH>' was provided more than once, but cannot be used multiple times

USAGE: cargo install --features <FEATURES>... --no-default-features --path <PATH> --root <DIR>

For more information try --help

  • ERROR: media-sound/spotifyd-0.2.20::antonellocaroli failed (install phase):
  • cargo install failed
  • Call stack:
  • ebuild.sh, line  125:  Called src_install
    
  • environment, line 1340: Called cargo_src_install '--path=.' '--features' 'alsa_backend' '--no-default-features'
  • environment, line 1089: Called die
  • The specific snippet of code:
  •   cargo install --path ${CARGO_INSTALL_PATH} --root="${ED}/usr" $(usex debug --debug "") "$@" || die "cargo install failed";
    
  • If you need support, post the output of emerge --info '=media-sound/spotifyd-0.2.20::antonellocaroli',
  • the complete build log and the output of emerge -pqv '=media-sound/spotifyd-0.2.20::antonellocaroli'.
  • The complete build log is located at '/var/tmp/portage/media-sound/spotifyd-0.2.20/temp/build.log'.
  • The ebuild environment file is located at '/var/tmp/portage/media-sound/spotifyd-0.2.20/temp/environment'.
  • Working directory: '/var/tmp/portage/media-sound/spotifyd-0.2.20/work/spotifyd-0.2.20'
  • S: '/var/tmp/portage/media-sound/spotifyd-0.2.20/work/spotifyd-0.2.20'

Failed to emerge media-sound/spotifyd-0.2.20, Log file:

'/var/tmp/portage/media-sound/spotifyd-0.2.20/temp/build.log' `

antonellocaroli avatar Apr 05 '20 07:04 antonellocaroli

I solved it by editing this line:

cargo_src_install --path=. ${myfeatures:+--features "${myfeatures[*]}"} --no-default-features

in

cargo_src_install ${myfeatures:+--features "${myfeatures[*]}"} --no-default-features

are you thinking of upgrading ebuild to the latest version? 0.2.24

antonellocaroli avatar Apr 07 '20 06:04 antonellocaroli