From: Masanori Ogino <masanori.ogino@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] How to Set Environment Variables in Ebuilds
Date: Tue, 14 Jan 2014 12:27:18 +0900 [thread overview]
Message-ID: <CAA-4+jdp3f68NwYrZkoOs7ZVT=unrG=tYZMLZhqS3hzNc6-_tw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 541 bytes --]
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.
--
Masanori Ogino <masanori.ogino@gmail.com>
http://twitter.com/omasanori
http://gplus.to/omasanori
[-- Attachment #2: Type: text/html, Size: 938 bytes --]
next reply other threads:[~2014-01-14 3:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-14 3:27 Masanori Ogino [this message]
2014-01-14 19:03 ` [gentoo-user] How to Set Environment Variables in Ebuilds Mike Gilbert
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='CAA-4+jdp3f68NwYrZkoOs7ZVT=unrG=tYZMLZhqS3hzNc6-_tw@mail.gmail.com' \
--to=masanori.ogino@gmail.com \
--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