Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Cant start home made ebuild

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
blossa
Apprentice
Apprentice
Posts: 169
Joined: Thu Jan 13, 2005 11:05 pm

Cant start home made ebuild

  • Quote

Post by blossa » Fri Jan 01, 2021 5:00 pm

Hi,

This is probably a stupd question,, but anyway...

I have made an ebuild and emerged it. No errors, but I do not seem to be able to start the program. What have I missed?

Code: Select all

pi64 // # emerge --ask -D spotifyd

Local copy of remote index is up-to-date and will be used.
 * Last emerge --sync was 87d 7h 48m 59s ago.

Local copy of remote index is up-to-date and will be used.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary   R    ] media-sound/spotifyd-0.2.24

Would you like to merge these packages? [Yes/No] Yes
>>> Emerging binary (1 of 1) media-sound/spotifyd-0.2.24::genpi64
>>> Installing (1 of 1) media-sound/spotifyd-0.2.24::genpi64
>>> Jobs: 1 of 1 complete                           Load avg: 0.65, 0.49, 0.82
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
pi64 // # env-update
>>> Regenerating /etc/ld.so.cache...
pi64 // # source /etc/profile
pi64 // # spotifyd
-bash: spotifyd: command not found
pi64 // #
Also, when I do 'emerge --sync' the date is not updated. Why is that? (it was like 120 days ago earlier but it wont get any better than it is now)

EDIT: I am trying to do this installation on Raspberry Pi 4

Regards, Anders
QX9650, P5E64WS Pro, 4x1GB
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Fri Jan 01, 2021 5:10 pm

Plz run
equery f spotifyd
and find where the executable is.
Then use full path to invoke it or update your PATH.
:)
Top
Hu
Administrator
Administrator
Posts: 24401
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Jan 01, 2021 5:11 pm

I see two things wrong. First, you're trying to start spotifyd as root. This is almost never a good idea. Second, spotifyd is not in $PATH, so your shell cannot find it. It may help to show us the ebuild you used.

To understand your emerge --sync problem, it would help to see the output of emerge --info. My guess is that you are syncing from a server that has not synced, so you successfully sync to the outdated snapshot of that server.
Top
blossa
Apprentice
Apprentice
Posts: 169
Joined: Thu Jan 13, 2005 11:05 pm

  • Quote

Post by blossa » Fri Jan 01, 2021 8:23 pm

equery f spotifyd:

Code: Select all

pi64 # equery f spotifyd
 * Searching for spotifyd ...
 * Contents of media-sound/spotifyd-0.2.24:
/usr
/usr/share
/usr/share/doc
/usr/share/doc/spotifyd-0.2.24
/usr/share/doc/spotifyd-0.2.24/README.md.bz2
pi64 #
So I think there is something wrong with my ebuild. Very simple:

Code: Select all

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="blossas Spotifyd"
HOMEPAGE="https://github.com/Spotifyd/spotifyd"
SRC_URI="https://github.com/Spotifyd/spotifyd/archive/v0.2.24.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~arm64 arm64"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
I ran that again and checked the files in work-folder. Appearantly there is something called cargo now. I dont think that existed last time i did those things... like in 2007. I will try to read up about cargo and try to figure it out. Thanks for making me realize there was something wrong with installation!

About emerge --sync I do believe you are right. That server is no longer updated it looks like.
QX9650, P5E64WS Pro, 4x1GB
Top
Hu
Administrator
Administrator
Posts: 24401
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Jan 01, 2021 8:52 pm

Your ebuild would work if the project shipped a traditional build setup (such as a Makefile) and running make was sufficient to build it.

Cargo is Rust's attempt to reinvent package management, poorly. You will probably need to deal with it if you want any rust-based program to build. I would start by finding a project not implemented in Rust. If you're determined to use a Rust-based project, be prepared for a mess. As I read the project's Cargo.lock, it has a huge number of dependencies.
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Fri Jan 01, 2021 9:01 pm

If you are desperate for this package see here
https://gpo.zugaina.org/media-sound/spotifyd
Here is their ebuild

Code: Select all

# Copyright 2017-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Auto-Generated by cargo-ebuild 0.2.0

EAPI=7

CRATES="
adler32-1.0.4
advapi32-sys-0.2.0
aes-0.3.2
aes-ctr-0.3.0
aes-soft-0.3.3
aesni-0.6.0
aho-corasick-0.7.6
alga-0.9.2
alsa-0.2.2
alsa-0.3.0
alsa-sys-0.1.2
ansi_term-0.11.0
approx-0.3.2
arc-swap-0.4.3
arrayref-0.3.5
arrayvec-0.4.12
atty-0.2.13
autocfg-0.1.7
backtrace-0.3.40
backtrace-sys-0.1.32
base64-0.10.1
base64-0.9.3
bindgen-0.51.1
bit-set-0.5.1
bit-vec-0.5.1
bitflags-0.3.3
bitflags-0.9.1
bitflags-1.2.1
blake2b_simd-0.5.8
block-buffer-0.7.3
block-cipher-trait-0.6.2
block-modes-0.3.3
block-padding-0.1.4
boxfnonce-0.1.1
byte-tools-0.3.1
bytecount-0.4.0
byteorder-0.5.3
byteorder-1.3.2
bytes-0.4.12
c2-chacha-0.2.3
c_linked_list-1.1.1
cargo_metadata-0.6.4
cc-1.0.46
cc-1.0.47
cexpr-0.3.5
cfg-if-0.1.10
chrono-0.4.9
clang-sys-0.28.1
clap-2.33.0
cloudabi-0.0.3
constant_time_eq-0.1.4
cookie-0.12.0
cookie_store-0.7.0
core-foundation-0.6.4
core-foundation-sys-0.5.1
core-foundation-sys-0.6.2
coreaudio-rs-0.9.1
coreaudio-sys-0.2.3
cpal-0.8.2
crc32fast-1.2.0
crossbeam-deque-0.7.1
crossbeam-epoch-0.7.2
crossbeam-queue-0.1.2
crossbeam-utils-0.6.6
crypto-mac-0.7.0
ctr-0.3.2
daemonize-0.4.1
darling-0.9.0
darling_core-0.9.0
darling_macro-0.9.0
dbus-0.2.3
dbus-0.6.5
dbus-tokio-0.2.1
derive_builder-0.7.2
derive_builder_core-0.5.0
digest-0.8.1
dirs-2.0.2
dirs-sys-0.3.4
dns-parser-0.3.2
dotenv-0.13.0
dtoa-0.4.4
either-1.5.3
encoding_rs-0.8.20
env_logger-0.6.2
env_logger-0.7.1
error-chain-0.11.0
error-chain-0.12.1
extprim-1.7.0
failure-0.1.6
failure_derive-0.1.6
fake-simd-0.1.2
flate2-1.0.12
fnv-1.0.6
foreign-types-0.3.2
foreign-types-shared-0.1.1
fuchsia-cprng-0.1.1
fuchsia-zircon-0.3.3
fuchsia-zircon-sys-0.3.3
futures-0.1.29
futures-cpupool-0.1.8
gcc-0.3.55
generic-array-0.12.3
get_if_addrs-0.5.3
get_if_addrs-sys-0.1.1
gethostname-0.2.0
getopts-0.2.21
getrandom-0.1.13
glob-0.2.11
glob-0.3.0
h2-0.1.26
heck-0.3.1
hermit-abi-0.1.3
hex-0.3.2
hex-0.4.0
hkdf-0.7.1
hmac-0.7.1
http-0.1.19
http-body-0.1.0
httparse-1.3.4
humantime-1.3.0
hyper-0.11.27
hyper-0.12.35
hyper-proxy-0.4.1
hyper-tls-0.3.2
ident_case-1.0.1
idna-0.1.5
idna-0.2.0
indexmap-1.3.0
iovec-0.1.4
itertools-0.8.1
itoa-0.4.4
kernel32-sys-0.2.2
keyring-0.7.1
language-tags-0.2.2
lazy_static-1.4.0
lewton-0.9.4
libc-0.2.65
libdbus-sys-0.2.1
libloading-0.5.2
libm-0.1.4
libmdns-0.2.4
libpulse-sys-0.0.0
librespot-0.1.0
librespot-audio-0.1.0
librespot-connect-0.1.0
librespot-core-0.1.0
librespot-metadata-0.1.0
librespot-playback-0.1.0
librespot-protocol-0.1.0
librespot-tremor-0.1.0
linear-map-1.2.0
lock_api-0.3.1
log-0.3.9
log-0.4.8
matches-0.1.8
matrixmultiply-0.2.3
mdns-0.2.0
memchr-2.2.1
memoffset-0.5.2
mime-0.3.14
mime_guess-2.0.1
miniz_oxide-0.3.5
mio-0.6.19
mio-named-pipes-0.1.6
mio-uds-0.6.7
miow-0.2.1
miow-0.3.3
multimap-0.4.0
nalgebra-0.18.1
native-tls-0.2.3
net2-0.2.33
nix-0.10.0
nix-0.11.1
nix-0.14.1
nix-0.9.0
nodrop-0.1.14
nom-4.2.3
num-0.2.0
num-bigint-0.2.3
num-complex-0.2.3
num-integer-0.1.41
num-iter-0.1.39
num-rational-0.2.2
num-traits-0.2.8
num_cpus-1.11.0
ogg-0.7.0
ogg-sys-0.0.9
opaque-debug-0.2.3
openssl-0.10.25
openssl-probe-0.1.2
openssl-sys-0.9.52
parking_lot-0.9.0
parking_lot_core-0.6.2
pbkdf2-0.3.0
peeking_take_while-0.1.2
percent-encoding-1.0.1
percent-encoding-2.1.0
pkg-config-0.3.17
portaudio-rs-0.3.1
portaudio-sys-0.1.1
ppv-lite86-0.2.6
proc-macro-error-0.2.6
proc-macro2-0.4.30
proc-macro2-1.0.6
protobuf-2.8.1
protobuf-codegen-2.8.1
protobuf-codegen-pure-2.8.1
publicsuffix-1.5.3
pulldown-cmark-0.2.0
quick-error-1.2.2
quote-0.6.13
quote-1.0.2
rand-0.3.23
rand-0.4.6
rand-0.5.6
rand-0.6.5
rand-0.7.2
rand_chacha-0.1.1
rand_chacha-0.2.1
rand_core-0.3.1
rand_core-0.4.2
rand_core-0.5.1
rand_hc-0.1.0
rand_hc-0.2.0
rand_isaac-0.1.1
rand_jitter-0.1.4
rand_os-0.1.3
rand_pcg-0.1.2
rand_xorshift-0.1.1
random-0.12.2
rawpointer-0.2.1
rdrand-0.4.0
redox_syscall-0.1.56
redox_users-0.3.1
regex-1.3.1
regex-syntax-0.6.12
relay-0.1.1
remove_dir_all-0.5.2
reqwest-0.9.17
result-1.0.0
rodio-0.9.0
rpassword-3.0.2
rspotify-0.7.0
rust-argon2-0.5.1
rustc-demangle-0.1.16
rustc-hash-1.0.1
rustc-serialize-0.3.24
rustc_version-0.2.3
ryu-1.0.2
safemem-0.3.3
same-file-1.0.5
schannel-0.1.16
scoped-tls-0.1.2
scopeguard-1.0.0
secret-service-1.0.0
security-framework-0.3.1
security-framework-sys-0.3.1
semver-0.9.0
semver-parser-0.7.0
serde-1.0.102
serde_derive-1.0.102
serde_ini-0.2.0
serde_json-1.0.41
serde_urlencoded-0.5.5
sha-1-0.8.1
sha2-0.8.0
shannon-0.2.0
shlex-0.1.1
signal-hook-0.1.11
signal-hook-registry-1.1.1
simplelog-0.7.4
skeptic-0.13.4
slab-0.3.0
slab-0.4.2
smallvec-0.2.1
smallvec-0.6.12
socket2-0.2.4
socket2-0.3.11
stdweb-0.1.3
stream-cipher-0.3.2
string-0.2.1
strsim-0.7.0
strsim-0.8.0
structopt-0.3.2
structopt-derive-0.3.2
subtle-1.0.0
syn-0.15.44
syn-1.0.7
synstructure-0.12.1
syslog-4.0.1
take-0.1.0
tempdir-0.3.7
tempfile-3.1.0
term-0.6.1
termcolor-1.0.5
textwrap-0.11.0
thread_local-0.3.6
time-0.1.42
tokio-0.1.22
tokio-buf-0.1.1
tokio-codec-0.1.1
tokio-core-0.1.17
tokio-current-thread-0.1.6
tokio-executor-0.1.8
tokio-fs-0.1.6
tokio-io-0.1.12
tokio-process-0.2.4
tokio-proto-0.1.1
tokio-reactor-0.1.10
tokio-service-0.1.0
tokio-signal-0.1.5
tokio-signal-0.2.7
tokio-sync-0.1.7
tokio-tcp-0.1.3
tokio-threadpool-0.1.16
tokio-timer-0.2.11
tokio-udp-0.1.5
tokio-uds-0.2.5
try-lock-0.1.0
try-lock-0.2.2
try_from-0.3.2
typenum-1.11.2
unicase-2.5.1
unicode-bidi-0.3.4
unicode-normalization-0.1.8
unicode-segmentation-1.5.0
unicode-width-0.1.6
unicode-xid-0.1.0
unicode-xid-0.2.0
url-1.7.2
url-2.1.0
uuid-0.7.4
vcpkg-0.2.7
vec_map-0.8.1
vergen-3.0.4
version_check-0.1.5
void-1.0.2
walkdir-2.2.9
want-0.0.4
want-0.2.0
wasi-0.7.0
webbrowser-0.5.2
whoami-0.5.3
widestring-0.4.0
winapi-0.2.8
winapi-0.3.8
winapi-build-0.1.1
winapi-i686-pc-windows-gnu-0.4.0
winapi-util-0.1.2
winapi-x86_64-pc-windows-gnu-0.4.0
wincolor-1.0.2
ws2_32-sys-0.2.1
xdg-2.2.0
"

inherit cargo

DESCRIPTION="A Spotify daemon"
HOMEPAGE="https://github.com/Spotifyd/spotifyd/"
SRC_URI="
https://github.com/Spotifyd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/librespot-org/librespot/archive/v0.1.0.tar.gz -> librespot.tar.gz
$(cargo_crate_uris ${CRATES})"
RESTRICT="mirror"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="alsa dbus libressl portaudio pulseaudio rodio"
REQUIRED_USE="|| ( alsa portaudio pulseaudio rodio )"

RDEPEND="
alsa? ( media-libs/alsa-lib )
dbus? ( sys-apps/dbus )
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )
portaudio? ( media-libs/portaudio )
pulseaudio? ( media-sound/pulseaudio )
"
DEPEND="${RDEPEND}"

PATCHES=( "${FILESDIR}/${P}-fix-deps.patch" )

src_configure() {
	myfeatures=(
		$(usex alsa alsa_backend "")
		$(usex dbus "dbus_keyring dbus_mpris" "")
		$(usex portaudio portaudio_backend "")
		$(usex pulseaudio pulseaudio_backend "")
		$(usex rodio rodio_backend "")
	)
}

src_compile() {
	cargo_src_compile ${myfeatures:+--features "${myfeatures[*]}"} --no-default-features
}

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

	keepdir /etc/xdg/spotifyd
}

src_test() {
	cargo_src_test ${myfeatures:+--features "${myfeatures[*]}"} --no-default-features
}


Rather involved no? :)
BUT you can add this overlay and install it from it..
:)
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Fri Jan 01, 2021 9:20 pm

According to the downloaded README, you have to use cargo. So there should be a build dependency on cargo.

AFAIK, the default configure assumes the use of autotools and the default compile assumes C/C++ source code.
So the default configure did nothing as it didn't find configure.ac or Makefile.am. Without a makefile, compile did nothing.
So your ebuild installed the documentation and that was all. (Yes, I built it in my own overlay).

There is no "inherit line" so there are no alternate config or build tools. Is there a cargo.eclass or similar? if not, you will have to write Src_configure and src_compile functions yourself.

I don't now about that. I'm an old C programmer. my boss used to say that I was an assembly programmer. Well, that is where I started.

Also, it's usually good to use something like ${PV} in the SRC_URI. I just updated one of my ebuilds by nano, then save as, then "repoman manifest".
And the new version was good to go.

EDIT: I started my exploration before alamahunt posted so I missed it. I see from the ebuild he posted that there is a cargo.eclass
Last edited by Tony0945 on Fri Jan 01, 2021 9:37 pm, edited 1 time in total.
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Fri Jan 01, 2021 9:35 pm

alamahant wrote:...
I think I'm going to vomit. if this is the future of Linux, I'm going to freeze my systems in place.
Top
blossa
Apprentice
Apprentice
Posts: 169
Joined: Thu Jan 13, 2005 11:05 pm

  • Quote

Post by blossa » Fri Jan 01, 2021 10:16 pm

Tony0945 wrote:
alamahant wrote:...
I think I'm going to vomit. if this is the future of Linux, I'm going to feeze my systems in place.
hahahaha I understand!! :lol: :lol: I feel totally lost. I havnt done this in many years. I was just to install... Now I have been sitting here for 2 days. :D

I got spotifyd installed using cargo, but now it landed under root. Tomorrows goal is to fix that.
QX9650, P5E64WS Pro, 4x1GB
Top
Ionen
Developer
Developer
User avatar
Posts: 3014
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Fri Jan 01, 2021 10:20 pm

As far as making these ebuilds go (e.g. crate list), it's not so bad, note this part:

Code: Select all

 Auto-Generated by cargo-ebuild 0.2.0 
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Sat Jan 02, 2021 1:10 am

Make friends with "repoman" and post your ebuild here for review. Hint: "repoman fix".
Top
Post Reply

11 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic