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

Bug 611396

Summary: sys-apps/portage: warn users when PATH in env.d changes
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-03-02 12:48:04 UTC
With LLVM upgrade, I'm getting repeated reports that users can't run clang because they did not update PATH. While I could warn about that in ebuild, I think it's genetic enough issue to warrant adding into Portage. 

Basically, Portage could detect if the batch of installs results in effective PATH changing, and print a frenetic warning/instruction including: 

$ . /etc/profile
$ hash -r
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-03-02 12:48:35 UTC
s/frenetic/generic/
Comment 2 Zac Medico gentoo-dev 2017-03-02 17:42:33 UTC
I suppose we could show the same message if any environment variable changes, since changes to any environment variables can impact users in various ways.