From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B003B138247 for ; Tue, 14 Jan 2014 03:27:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D12BCE0BA8; Tue, 14 Jan 2014 03:27:21 +0000 (UTC) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 948C4E0AC7 for ; Tue, 14 Jan 2014 03:27:20 +0000 (UTC) Received: by mail-lb0-f179.google.com with SMTP id p9so564639lbv.38 for ; Mon, 13 Jan 2014 19:27:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=6J/X7nTYzqv9OEvmLpdY1Htst+jCi6jVhqYAffxtxSc=; b=noLsvDF79UEDzkDeZtt957c12v6ZJQnmqGrcNwbChr+PBmv2YPFgsh7EQOxNQn3RRZ WuODkE8JciWJmRVK2IsbZdT6q1AMUHSxh7A+R7h3sB7rWGOIpZ+DinVrCa7/EvIwb2lp H6v4666oSTR/XL/wSJH//AyQvpYJ5GECQTqTdop7ic+VjUVStaZx+5ECVk6I2TJ+ln1h XvsovZ6MLRh7MElgZVemTNS9WlqwsWdGSDwScuucVd54g3G//sIhyGY5aKUhdqtWrPE/ aHMSuOcez4Gotx5f6/a1bw9AXghE8t2rNxdbVuWYbApVkU+9XNJCvs+I5/kY6Xb90pZc TFsQ== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.112.137.138 with SMTP id qi10mr11689198lbb.21.1389670038952; Mon, 13 Jan 2014 19:27:18 -0800 (PST) Sender: masanoriogino@gmail.com Received: by 10.114.172.134 with HTTP; Mon, 13 Jan 2014 19:27:18 -0800 (PST) Date: Tue, 14 Jan 2014 12:27:18 +0900 X-Google-Sender-Auth: SWWYTt2AALlYolNHcKRF4_GnZjw Message-ID: Subject: [gentoo-user] How to Set Environment Variables in Ebuilds From: Masanori Ogino To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=089e012287a806e02b04efe5c57a X-Archives-Salt: 0f915c9e-4d6b-4584-81ea-ed2e9b33aee3 X-Archives-Hash: 1255ef845e1b872aad0f0c3ca09808bf --089e012287a806e02b04efe5c57a Content-Type: text/plain; charset=ISO-8859-1 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 http://twitter.com/omasanori http://gplus.to/omasanori --089e012287a806e02b04efe5c57a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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:

=A0=A0=A0 NAME=3Dvalue ${ECONF_SOURCE:-.}/script_f= ile.py

and

=A0=A0=A0 export NAME=3Dvalu= e
=A0=A0=A0 ${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 somethi= ng.
--089e012287a806e02b04efe5c57a--