| Summary: | sys-apps/baselayout: sets incorrect PATH and ROOTPATH on non usr-merge system | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Georgy Yakovlev <gyakovlev> |
| Component: | Current packages | Assignee: | 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: | --- | |
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 *** This bug has been marked as a duplicate of bug 729070 *** |
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'