summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2021-04-25 17:34:53 +0100
committerBertrand Jacquin <bertrand@jacquin.bzh>2021-06-07 02:31:22 +0100
commitbbf769202ce0b9d3abf62f4303b6802f4663bbc8 (patch)
treeba2803ca77e27301846c80cbad7ba642ffeb614a /profiles
parentnet-p2p/monero: add support for musl libc (diff)
downloadportage-bbf769202ce0b9d3abf62f4303b6802f4663bbc8.tar.xz
profiles/common: use portageq instead of sourcing make.conf
Diffstat (limited to 'profiles')
-rw-r--r--profiles/common/profile.bashrc8
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 $?
}