Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 720180

Summary: sys-apps/portage: add support to delay export of "A" variable until last moment
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=719202
https://github.com/gentoo/portage/pull/552
https://bugs.gentoo.org/show_bug.cgi?id=721088
https://bugs.gentoo.org/show_bug.cgi?id=830187
Whiteboard:
Package list:
Runtime testing required: ---

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.