On Fri, 02 Oct 2020 05:14:01 -0400,
Daniel Armbruster wrote:
> 
> [1  <text/plain; us-ascii (7bit)>]
> Hi gentoo-user,
> 
> is there a way to set environment variables on package/ebuild granularity? I'm
> aware, that plenty of portage related environment variables are configurable 
> by
> means of the package.env feature
> (https://wiki.gentoo.org/wiki//etc/portage/package.env). However, I didn't 
> find
> a way to set additional environment variables.
> 
> The actual reason, why I'm asking is the following: When compiling
> app-emulation/qemu, package installation fails when calling the preprocessor.
> Though, I'm able to manually solve the issue when setting the CPP environment
> variable:
> 
> # export CPP="gcc -E"
> 
> before running emerge. Instead of running the command again and again i.e.
> before every reinstallation of app-emulation/qemu, I'd like to set this
> environment variable for the package once (in e.g. a configuration file) and
> it's done for every future reinstallation.

You can use the env feature to set any environment variable you want,
they don't have to be portage related.  You can drill down to the
category/package quite nicely.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         cov...@ccs.covici.com

Reply via email to