diff options
author | Yiyang Wu <xgreenlandforwyy@gmail.com> | 2024-02-08 15:39:02 +0800 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2024-02-08 12:36:16 -0500 |
commit | 2334eb2d0b76ee113e0bf438c6e719a90c95b235 (patch) | |
tree | 9b22652782e6f0e44eee3dd435777fe7f5f601b4 /sys-apps/baselayout | |
parent | app-shells/zsh: unset ROOTPATH (diff) | |
download | gentoo-2334eb2d0b76ee113e0bf438c6e719a90c95b235.tar.gz gentoo-2334eb2d0b76ee113e0bf438c6e719a90c95b235.tar.bz2 gentoo-2334eb2d0b76ee113e0bf438c6e719a90c95b235.zip |
sys-apps/baselayout: ROOTPATH should have host paths on Prefix
Same as PATH, ROOTPATH should be modified to contain host paths. This
fixes app-shells/zsh not having host paths when EUID=1000 or root user,
because it sets ROOTPATH as PATH in /etc/zsh/zprofile, which make zsh's
behavior align with bash.
Closes: https://bugs.gentoo.org/924032
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35225
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps/baselayout')
-rw-r--r-- | sys-apps/baselayout/baselayout-2.14-r2.ebuild (renamed from sys-apps/baselayout/baselayout-2.14-r1.ebuild) | 3 | ||||
-rw-r--r-- | sys-apps/baselayout/baselayout-9999.ebuild | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys-apps/baselayout/baselayout-2.14-r1.ebuild b/sys-apps/baselayout/baselayout-2.14-r2.ebuild index d95e2efe9ff4..72bb2496fd2d 100644 --- a/sys-apps/baselayout/baselayout-2.14-r1.ebuild +++ b/sys-apps/baselayout/baselayout-2.14-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -209,6 +209,7 @@ src_prepare() { hprefixify -w '/PATH=/' etc/env.d/50baselayout hprefixify -w 1 etc/env.d/50baselayout echo PATH=/usr/sbin:/sbin:/usr/bin:/bin >> etc/env.d/99host + echo ROOTPATH=/usr/sbin:/sbin:/usr/bin:/bin >> etc/env.d/99host echo MANPATH=/usr/share/man >> etc/env.d/99host # change branding diff --git a/sys-apps/baselayout/baselayout-9999.ebuild b/sys-apps/baselayout/baselayout-9999.ebuild index b1f52aa3baa7..76beeff5aac8 100644 --- a/sys-apps/baselayout/baselayout-9999.ebuild +++ b/sys-apps/baselayout/baselayout-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -209,6 +209,7 @@ src_prepare() { hprefixify -w '/PATH=/' etc/env.d/50baselayout hprefixify -w 1 etc/env.d/50baselayout echo PATH=/usr/sbin:/sbin:/usr/bin:/bin >> etc/env.d/99host + echo ROOTPATH=/usr/sbin:/sbin:/usr/bin:/bin >> etc/env.d/99host echo MANPATH=/usr/share/man >> etc/env.d/99host # change branding |