public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Brian Harring <ferringb@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] lights on internals
Date: Mon, 3 Oct 2005 01:42:52 -0500	[thread overview]
Message-ID: <20051003064252.GE27872@nightcrawler> (raw)
In-Reply-To: <43404C01.4070309@gentoo.org>

[-- Attachment #1: Type: text/plain, Size: 1332 bytes --]

On Sun, Oct 02, 2005 at 11:07:13PM +0200, Francesco R wrote:
> The ready to cut ebuild at the bottom print it's environment (variable
> and functions) to a bunch of files into /var/tmp/fakebuild/.
> May be useful for who want to have a look at "what" and "when" is
> avaible during the various emerge phases (but not limited to).
> print_env() {
>     local fakebuild_output_dir="/var/tmp/fakebuild"
>     mkdir -p "${fakebuild_output_dir}" || die
> 
>     [[ -z "${fakebuild_progr}" ]] && fakebuild_progr=100
>     fakebuild_progr=$(( $fakebuild_progr +1 ))
>     export fakebuild_progr
> 
>     local fakebuild_ext="${1}.${fakebuild_progr}"
> 
>     # not sorting, break multiline vars
>     einfo "${fakebuild_output_dir}/env_${fakebuild_ext}"
>     env \
>         &> "${fakebuild_output_dir}/env_${fakebuild_ext}"
> 
>     # Remove egrep and sort to see the source of every fx
>     einfo "${fakebuild_output_dir}/fxlist_${fakebuild_ext}"
>     typeset \
>         | egrep '^\b.* \(\)' \
>         | sort \
>         &> "${fakebuild_output_dir}/fxlist_${fakebuild_ext}"
> }

This won't work as you expect.  Env is a binary, it only gets 
the exported env.

Elaborate on the "what and when" bit also, since the env that's dumped 
to ebuild.sh varies depending on a lot of things.
~harring

	

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2011-10-31  3:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-02 21:07 [gentoo-dev] lights on internals Francesco R
2005-10-03  6:42 ` Brian Harring [this message]
2005-10-03  9:40   ` Francesco R

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=20051003064252.GE27872@nightcrawler \
    --to=ferringb@gentoo.org \
    --cc=gentoo-dev@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