Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612750 - PMS: unreliable 'die' in subshell inconsist with external helpers dying on their own
Summary: PMS: unreliable 'die' in subshell inconsist with external helpers dying on th...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-15 16:24 UTC by Michał Górny
Modified: 2021-08-31 11:07 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-03-15 16:24:38 UTC
The PMS says:

| die is not guaranteed to work correctly if called from a subshell environment.

but at the same time, e.g. for emake states:

| emake must be an external program and cannot be a function or alias—it must be
| callable from e. g. xargs. Failure behaviour is EAPI dependent as per section
| 11.3.3.1.

The same holds for multiple other helpers.

This implies that while 'die' is not guaranteed to work from just a subshell, it must be guaranteed to work from inside an external helper script that is potentially called on the right-hand side of a pipeline. This sounds kinda inconsistent.

Ciaran explains:
[17:10:06] <ciaranm> mgorny: hysterical raisans. in the old days die in a subshell just plain didn't work
[17:10:17] <ciaranm> mgorny: now it usually works except when you do shenanigans...
Comment 1 Ulrich Müller gentoo-dev 2021-08-31 11:07:19 UTC
No longer an issue in EAPI 7. Closing.