Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677564 - sys-apps/baselayout-2.6-r1: /etc/profile: Please reconsider ROOTPATH support
Summary: sys-apps/baselayout-2.6-r1: /etc/profile: Please reconsider ROOTPATH support
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-09 16:33 UTC by bugs77
Modified: 2020-10-18 14:38 UTC (History)
2 users (show)

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 bugs77 2019-02-09 16:33:06 UTC
I would like to question dropping support for ROOTPATH completely as reasoned
in https://gitweb.gentoo.org/proj/baselayout.git/commit/?id=9cac4dd130637fa2c1f1a64bf3c9d2509284e6dd.

As a system admin I would like to be given a reasonably easy way to choose whether I want different PATH values for root and users, and what they shall be.
PATH and ROOTPATH should work as it is still described in the Gentoo handbook at https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/EnvVar.
To eventually unset ROOTPATH in /etc/profile in order to keep the environment clean makes perfect sense to me, as no other gentoo package should depend on the ROOTPATH environment variable.
Gentoo packages which have to add PATH and ROOTPATH components in /etc/env.d/ should do so selectively.

Thanks for reconsidering.
Comment 1 William Hubbs gentoo-dev 2020-02-08 17:08:57 UTC
Please read the following article for more information on this issue.

https://www.osnews.com/story/25556/understanding-the-bin-sbin-usrbin-usrsbin-split/

I'm not convinced that there is a valid reason to take *sbin out of the
path.

Thanks,

William
Comment 2 Leho Kraav (:macmaN @lkraav) 2020-10-18 12:28:21 UTC
So as of baselayout-2.7, what is the Best Practice now for having sbin items automatically available in `sudo -i`?