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

Bug 793761

Summary: sys-apps/baselayout: sets incorrect PATH and ROOTPATH on non usr-merge system
Product: Gentoo Linux Reporter: Georgy Yakovlev <gyakovlev>
Component: Current packagesAssignee: William Hubbs <williamh>
Status: RESOLVED DUPLICATE    
Severity: normal CC: base-system, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Georgy Yakovlev archtester gentoo-dev 2021-06-01 20:32:00 UTC
here's what I ended up having in /etc/env.d/50baselayout file

PATH="/usr/local/bin:/usr/bin:/opt/bin"
ROOTPATH="/usr/local/bin:/usr/bin:/opt/bin"

it does not have /usr/bin and /usr/sbin components.

I believe code responsible for this is that snippet in the ebuild:
# don't want symlinked directories in PATH on systems with usr-merge
    if ! use split-usr; then
        sed \

....


sed -e 's|/usr/local/sbin:||g' -e 's|:/usr/sbin:|:|g' -e 's|:/sbin:|:|g' -e 's|:/bin:|:|g' /etc/env.d/50baselayout 
# /etc/env.d/50baselayout
# Do not edit this file

PATH="/usr/local/bin:/usr/bin:/opt/bin"
ROOTPATH="/usr/local/bin:/usr/bin:/opt/bin"
MANPATH="/usr/local/share/man:/usr/share/man"
INFOPATH="/usr/share/info"
CONFIG_PROTECT_MASK="/etc/gentoo-release"
LDPATH='/lib64:/usr/lib64:/usr/local/lib64:/lib:/usr/lib:/usr/local/lib'
Comment 1 Georgy Yakovlev archtester gentoo-dev 2021-06-01 20:48:08 UTC
at this point I'm not sure if /sbin is supposed to be merged to /usr/bin or not.


I initially thought split-usr is about just moving directories to usr and symlinking them back, not merging sbin
Comment 2 Georgy Yakovlev archtester gentoo-dev 2021-06-01 20:50:18 UTC

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