From: Mike Gilbert <floppym@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How to Set Environment Variables in Ebuilds
Date: Tue, 14 Jan 2014 14:03:46 -0500 [thread overview]
Message-ID: <CAJ0EP42g0MYgw8TxpCUAKgV_MfNAzDM=uQusXcjxfr4g13QUGA@mail.gmail.com> (raw)
In-Reply-To: <CAA-4+jdp3f68NwYrZkoOs7ZVT=unrG=tYZMLZhqS3hzNc6-_tw@mail.gmail.com>
On Mon, Jan 13, 2014 at 10:27 PM, Masanori Ogino
<masanori.ogino@gmail.com> wrote:
> Hello.
>
> I wrote an ebuild and it executes a small Python script bundled in the
> source. The Python script requires a environment variable to be set.
>
> I tried something like:
>
> NAME=value ${ECONF_SOURCE:-.}/script_file.py
>
> and
>
> export NAME=value
> ${ECONF_SOURCE:-.}/script_file.py
>
> but the both fail to pass the parameter via the environment variable to the
> script.
>
> How can I do it? Please point it out if I overlooked something.
>
Either of the method you listed about should work.
Are you sure the script is looking for an environment variable?
next prev parent reply other threads:[~2014-01-14 19:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-14 3:27 [gentoo-user] How to Set Environment Variables in Ebuilds Masanori Ogino
2014-01-14 19:03 ` Mike Gilbert [this message]
2014-01-14 21:36 ` Masanori Ogino
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='CAJ0EP42g0MYgw8TxpCUAKgV_MfNAzDM=uQusXcjxfr4g13QUGA@mail.gmail.com' \
--to=floppym@gentoo.org \
--cc=gentoo-user@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