Re: [gentoo-user] Environment variables on package granularity

2020-10-02 Thread John Covici
On Fri, 02 Oct 2020 05:14:01 -0400,
Daniel Armbruster wrote:
> 
> [1  ]
> 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



Re: [gentoo-user] Environment variables on package granularity

2020-10-02 Thread Neil Bothwick
On Fri, 2 Oct 2020 11:14:01 +0200, Daniel Armbruster wrote:

> 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.

You can set these in package.env, see
https://wiki.gentoo.org/wiki//etc/portage/package.env


-- 
Neil Bothwick

Das Internet is nicht fuer gefingerclicken und giffengrabben. Ist easy
droppenpacket der routers und overloaden der backbone mit der spammen
und der me-tooen. Ist nicht fuer gewerken bei das dumpkopfen. Das
mausklicken sichtseeren keepen das bandwit-spewin hans in das pockets
muss; relaxen und watchen das cursorblinken.


pgpHSwxTRM8Uz.pgp
Description: OpenPGP digital signature