Created attachment 419772 [details, diff] Properly quote argument in eshopts_push(). The following sequence of commands (e.g. in src_install): set +$- eshopts_push eshopts_pop ... fails with: * ERROR: app-misc/foo-2::local failed (install phase): * eshopts_pop: unbalanced push * * Call stack: * ebuild.sh, line 133: Called src_install * environment, line 1982: Called eshopts_pop * environment, line 833: Called die * The specific snippet of code: * estack_pop eshopts s || die "${FUNCNAME}: unbalanced push"; Attached patch should fix it.
This has been fixed a long time ago.