Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 720180 - sys-apps/portage: add support to delay export of "A" variable until last moment
Summary: sys-apps/portage: add support to delay export of "A" variable until last moment
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-04-30 19:52 UTC by Zac Medico
Modified: 2022-01-03 03:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2020-04-30 19:52:15 UTC
For current EAPIs, PMS specifies that the "A" variable should be exported. For very large values of the "A" variable, this causes execve to fail with an "[Errno 7] Argument list too long" error as discussed in bug 719202.

In order to prepare for future EAPIs where the "A" variable will not be exported, it would make sense for portage to delay export of the "A" variable until the last moment. In theory, and ebuild could use "export -n A" to suppress "[Errno 7] Argument list too long" errors when spawning subprocesses.