Closed bohdaq closed 1 year ago
I have tried cleaning local cargo repository already
your version of cargo-ebuild is severely out of date btw, version from crates.io is not supported anymore and unfortunately we can't publish it due to https://github.com/gentoo/cargo-ebuild/issues/26
you can build/install cargo-ebuild from this repo if you are not on gentoo and just want a bin locally.
as for your problem - nothing to do with cargo-ebuild. your ebuild is improperly located and written.
www-servers/rust-tls-server/rust-tls-server-8.0.6.ebuild
- directory name has to match, it has to reside in proper category too.SRC_URI="https://github.com/bohdaq/rust-tls-server/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
$(cargo_crate_uris)"
you need to specify as https://github.com/bohdaq/rust-tls-server/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
so the file is downloaded as rust-tls-server-8.0.6.tar.gz
, your ebuild just renames it to 8.0.6.tar.gz
, that's a bad tarball name.
also you need to $(cargo_crate_uris)
there for cargo.eclass to download/unpack crates like I specified above.
also, specify EAPI=8
instead of 7
hope that helps.
@gyakovlev updated Install section in README.md and made pull request
@gyakovlev
After updating cargo-ebuild manually and setting provided SRC_URI everything worked perfectly.
Here is the github repo for Rust TLS Server ebuild BTW.
However it's still a bit unclear what's happening at SRC_URI.
Also created pull request to update install howto section
For some unknown reason unable to install ebuild. Manifest gets generated properly.
Repository: https://github.com/bohdaq/rust-tls-server
Ebuild:
Ebuild clean install merge:
Manual build works properly:
As a side note I'm able to build and install ebuild for a project without dependencies: https://github.com/bohdaq/rws-gentoo-ebuild
rts.zip