mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
app-shells/dash: Fixed subshell regression.
See https://patchwork.kernel.org/patch/10382199/ Closes: https://bugs.gentoo.org/655320 Package-Manager: Portage-2.3.36, Repoman-2.3.9
This commit is contained in:
@@ -27,7 +27,10 @@ DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
libedit? ( static? ( dev-libs/libedit[static-libs] ) )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0.5.9.1-format-security.patch )
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.5.9.1-format-security.patch
|
||||
"${FILESDIR}"/${P}-subshells.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if [[ -n "${DEB_PATCH}" ]] ; then
|
||||
16
app-shells/dash/files/dash-0.5.10-subshells.patch
Normal file
16
app-shells/dash/files/dash-0.5.10-subshells.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
https://bugs.gentoo.org/655320
|
||||
https://patchwork.kernel.org/patch/10382199/
|
||||
|
||||
--- dash-0.5.10/src/jobs.c
|
||||
+++ dash-0.5.10/src/jobs.c
|
||||
@@ -975,8 +975,8 @@
|
||||
int st;
|
||||
|
||||
TRACE(("waitforjob(%%%d) called\n", jp ? jobno(jp) : 0));
|
||||
- while ((jp && jp->state == JOBRUNNING) || gotsigchld)
|
||||
- dowait(DOWAIT_BLOCK, jp);
|
||||
+ while (jp ? jp->state == JOBRUNNING : gotsigchld)
|
||||
+ dowait(jp ? DOWAIT_BLOCK : DOWAIT_NORMAL, jp);
|
||||
if (!jp)
|
||||
return exitstatus;
|
||||
st = getstatus(jp);
|
||||
Reference in New Issue
Block a user