diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2021-04-25 17:34:53 +0100 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2021-06-07 02:31:22 +0100 |
commit | bbf769202ce0b9d3abf62f4303b6802f4663bbc8 (patch) | |
tree | ba2803ca77e27301846c80cbad7ba642ffeb614a | |
parent | net-p2p/monero: add support for musl libc (diff) | |
download | portage-bbf769202ce0b9d3abf62f4303b6802f4663bbc8.tar.xz |
profiles/common: use portageq instead of sourcing make.conf
-rw-r--r-- | profiles/common/profile.bashrc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/profiles/common/profile.bashrc b/profiles/common/profile.bashrc index b5fddacf..8f5e5765 100644 --- a/profiles/common/profile.bashrc +++ b/profiles/common/profile.bashrc @@ -45,15 +45,11 @@ function __restore_bash_options () { } function __load_make_conf () { - if (( ${#} == 0 )) ; then + if (( ${#} != 1 )) ; then return 1 fi - source <( - source "${PORTAGE_CONFIGROOT}/etc/portage/make.conf" - declare -p "${@}" 2> /dev/null \ - | sed -e 's/^declare -. /declare -g /' - ) + declare -g "${1}=$(env -i "PATH=${PATH}" portageq envvar ${1})" return $? } |