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

Bug 876817

Summary: portage uses CARGO_HOME from root user environment
Product: Gentoo Linux Reporter: brankob
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: brankob
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description brankob 2022-10-12 05:26:41 UTC
This makes emerge of packages like librsvg (which uses Rust+cargo) fail when they try to update CARGO_HOME content (sandbox violations).
When CARGO_HOME is unset in root user's environment, librsvg compiles fine.

Reproducible: Always

Steps to Reproduce:
1. export CARGO_HOME="/some_unrelated_dir"
2. emerge -1 librsvg
3.
Actual Results:  
emerge  fails with various write access sandbox violations


I've attached content of emerge --info, just in case.
Comment 1 brankob 2022-10-12 05:27:10 UTC
Created attachment 823659 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-12 05:34:27 UTC
It's still a duplicate, but this time a double one. 

This is actually fixed as of late last night - librsvg now has a version in ~arch using EAPI 8 and cargo.eclass (see the comments in the bug I marked your original as a duplicate of).

In future though, please include the full build.log.

*** This bug has been marked as a duplicate of bug 876754 ***