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

Bug 913908

Summary: sys-apps/portage: detect Rust executables and automatically omit C/LDFLAGS for them
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=796887
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-09-10 03:11:15 UTC
Right now we have to explicitly put all Rust executable in QA_* stuff which frankly sucks.  Let's try to detect them directly instead, and skip these checks for them.

That said, so far my best guess for detecting files using Rust is grepping their binaries for "/rustc/" string that seems to have some magical meaning.