Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611396 - sys-apps/portage: warn users when PATH in env.d changes
Summary: sys-apps/portage: warn users when PATH in env.d changes
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-02 12:48 UTC by Michał Górny
Modified: 2017-03-02 17:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.