Gentoo Archives: gentoo-user

From: Daniel Armbruster <dani.armbruster@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Environment variables on package granularity
Date: Fri, 02 Oct 2020 09:06:09
Message-Id: 20201002091401.GA617218@vega.universe
1 Hi gentoo-user,
3 is there a way to set environment variables on package/ebuild granularity? I'm
4 aware, that plenty of portage related environment variables are configurable by
5 means of the package.env feature
6 ( However, I didn't find
7 a way to set additional environment variables.
9 The actual reason, why I'm asking is the following: When compiling
10 app-emulation/qemu, package installation fails when calling the preprocessor.
11 Though, I'm able to manually solve the issue when setting the CPP environment
12 variable:
14 # export CPP="gcc -E"
16 before running emerge. Instead of running the command again and again i.e.
17 before every reinstallation of app-emulation/qemu, I'd like to set this
18 environment variable for the package once (in e.g. a configuration file) and
19 it's done for every future reinstallation.
21 Regards,
22 Daniel


File name MIME type
signature.asc application/pgp-signature


Subject Author
Re: [gentoo-user] Environment variables on package granularity Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] Environment variables on package granularity John Covici <covici@××××××××××.com>