From: Bertrand Jacquin <beber@meleeweb.net>
To: vapier@gentoo.org, gentoo-embedded@lists.gentoo.org
Subject: [gentoo-embedded] [PATCH] crossdev: source only once user env settings
Date: Fri, 21 Mar 2014 21:55:56 +0100 [thread overview]
Message-ID: <1395435356-28215-1-git-send-email-beber@meleeweb.net> (raw)
When /etc/portage/crossdev/${CTARGET} exist, output look like :
* Restoring generic user env settings
* Restoring generic user env settings
* Restoring generic user env settings
* Restoring generic user env settings
* Restoring generic user env settings
* Restoring generic user env settings
* Restoring generic user env settings
* Restoring generic user env settings
* Restoring generic user env settings
* Restoring generic user env settings
---
crossdev | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/crossdev b/crossdev
index 56ddcda..c8eec26 100755
--- a/crossdev
+++ b/crossdev
@@ -645,12 +645,13 @@ for v in MULTILIB_ABIS USE BVER GVER KVER LVER STAGE CFLAGS LDFLAGS ASFLAGS ; do
export ${v}="$(<"${d}"/${v})"
einfo "Restoring user setting '${v}' to '${!v}'"
fi
- if [[ -e ${d}/env ]] ; then
- einfo "Restoring generic user env settings"
- source "${d}"/env
- fi
done
+if [[ -e ${d}/env ]] ; then
+ einfo "Restoring generic user env settings"
+ source "${d}"/env
+fi
+
# parse multilib settings until profiles are sane
multilib_env() {
local var=$1
--
1.9.1
reply other threads:[~2014-03-22 11:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1395435356-28215-1-git-send-email-beber@meleeweb.net \
--to=beber@meleeweb.net \
--cc=gentoo-embedded@lists.gentoo.org \
--cc=vapier@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox