Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540146 - sys-apps/portage: limit no of exported variables in EAPI 6
Summary: sys-apps/portage: limit no of exported variables in EAPI 6
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Depends on:
Reported: 2015-02-15 13:38 UTC by Michał Górny
Modified: 2022-07-28 04:45 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-02-15 13:38:38 UTC
Right now, Portage exports a lot of internal ebuild variables to spawned programs. This is bad for two reasons:

1. it breaks programs which use same-named environment variables for different purpose,

2. it allows developers to rely on them being exported while PMS doesn't guarantee that (and often doesn't even guarantee them having any sane value during ebuild run).

I think it'd be a good idea to start removing export bits on those variables whenever possible in EAPI 6. This will keep existing ebuilds working while preventing future reliance on this non-PMS behavior. However, we might need to employ some more IPC between some of the ebuild helpers and Portage to avoid requiring the variables being exported.

CC-ing pms-bugs@ for confirmation/opinion.