public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: gentoo-embedded@lists.gentoo.org
Cc: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Subject: Re: [gentoo-embedded] [PATCH 2/2] Add SYSROOT definition in ${SYSROOT}/etc/profile.env
Date: Sun, 22 Dec 2013 22:05:37 -0500	[thread overview]
Message-ID: <201312222205.38864.vapier@gentoo.org> (raw)
In-Reply-To: <1386693223-28215-3-git-send-email-Joakim.Tjernlund@transmode.se>

[-- Attachment #1: Type: Text/Plain, Size: 968 bytes --]

On Tuesday 10 December 2013 11:33:43 Joakim Tjernlund wrote:
> env. variables in profile.env are expanded in make.conf so
> one can use ROOT=${SYSROOT}
> ---
>  wrappers/emerge-wrapper | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/wrappers/emerge-wrapper b/wrappers/emerge-wrapper
> index be81f95..bc6328d 100755
> --- a/wrappers/emerge-wrapper
> +++ b/wrappers/emerge-wrapper
> @@ -36,6 +36,11 @@ cross_wrap_etc()
> 
>  	cp -a "${PREFIX}"/share/crossdev/etc ${SYSROOT}/     || return 1
> 
> +	mkdir -p ${SYSROOT}/etc/env.d
> +	echo "SYSROOT=${SYSROOT}" > ${SYSROOT}/etc/env.d/01sysroot
> +	#Generate ${SYSROOT}/etc/profile.env
> +	ROOT=${SYSROOT}/ env-update --no-ldconfig
> +
>  	local conf=${SYSROOT}/etc/portage/make.conf
> 
>  	# Re-use existing CHOST->portage ARCH mapping code

i don't see how this would help.  portage doesn't load shell env files from 
$SYSROOT, so making it available in that wouldn't help.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2013-12-23  3:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-10 16:33 [gentoo-embedded] [PATCH 0/2] Some crossdev ideas Joakim Tjernlund
2013-12-10 16:33 ` [gentoo-embedded] [PATCH 1/2] Move make.profile from etc to etc/portage Joakim Tjernlund
2013-12-23  2:54   ` Mike Frysinger
2013-12-10 16:33 ` [gentoo-embedded] [PATCH 2/2] Add SYSROOT definition in ${SYSROOT}/etc/profile.env Joakim Tjernlund
2013-12-23  3:05   ` Mike Frysinger [this message]
2013-12-23 10:48     ` Joakim Tjernlund

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=201312222205.38864.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=Joakim.Tjernlund@transmode.se \
    --cc=gentoo-embedded@lists.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