Closed divoxx closed 5 years ago
I am able to get it working by updating the cargo_src_install
function to pass --path="${S}"
. I'll push up a pull request for this.
Actually, the change needs to happen to cargo.eclass
, not this repository. Not sure where is the best channel to report that.
@divoxx cargo.eclass
in gentoo supports passing args to cargo_src_install
since January 2019.
just pass cargo_src_install --path=.
in src_install
it was not possible to enable it globally at the time in the eclass, so we do it on per-package basis for now.
@gyakovlev nice, that's good to know. Thanks.
https://github.com/gentoo/gentoo/pull/14097 suggests changing the defaults here to something sensible given the versions of cargo/rust in the tree.
When attempting to use cargo-ebuild to build a crate from source, it fails with the following error if using 2018 edition:
This seems to be due to this change: https://github.com/rust-lang/cargo/issues/5327
This error only happening when installing from a source archive (local crate), not from a downloaded crate.