Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 913015

Summary: cargo.eclass: should reset CARGO_TARGET_DIR variable
Product: Gentoo Linux Reporter: Hanabishi <i.r.e.c.c.a.k.u.n+bugs.gentoo.org>
Component: EclassesAssignee: Gentoo Rust Project <rust>
Status: UNCONFIRMED ---    
Severity: normal CC: navi, randy
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Hanabishi 2023-08-25 19:32:33 UTC
cargo.eclass should reset CARGO_TARGET_DIR variable, because if it was set by a user, it breaks building of Rust packages.

Default value is CARGO_TARGET_DIR=target

E.g. Arch builds always do this https://wiki.archlinux.org/title/Rust_package_guidelines#Build