commit:     8b42bd86078841fb1a871588694463c63f4a48ab
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 11 20:38:42 2019 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Wed Dec 11 20:39:08 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b42bd86

app-shells/ksh: addwrite /proc/self for tests

Closes: https://bugs.gentoo.org/702570
Package-Manager: Portage-2.3.80_p5, Repoman-2.3.19_p4
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 app-shells/ksh/ksh-2020.0.0.ebuild |  3 ++-
 app-shells/ksh/ksh-9999.ebuild     | 13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/app-shells/ksh/ksh-2020.0.0.ebuild 
b/app-shells/ksh/ksh-2020.0.0.ebuild
index c2f9bb7797e..6b40cd31299 100644
--- a/app-shells/ksh/ksh-2020.0.0.ebuild
+++ b/app-shells/ksh/ksh-2020.0.0.ebuild
@@ -30,12 +30,13 @@ PATCHES=(
 )
 
 src_test() {
+       # https://bugs.gentoo.org/702570
+       addwrite /proc/self
        local cmd=(
                meson test
                -C "${BUILD_DIR}"
                --num-processes "$(makeopts_jobs ${NINJAOPTS:-${MAKEOPTS}})"
        )
-
        echo "${cmd[@]}" >&2
        # https://github.com/att/ast/issues/1392
        env -u T "${cmd[@]}" || die

diff --git a/app-shells/ksh/ksh-9999.ebuild b/app-shells/ksh/ksh-9999.ebuild
index 2ccad3528bf..9e136daa8ef 100644
--- a/app-shells/ksh/ksh-9999.ebuild
+++ b/app-shells/ksh/ksh-9999.ebuild
@@ -24,6 +24,19 @@ SLOT="0"
 
 RDEPEND="!app-shells/pdksh"
 
+src_test() {
+       # https://bugs.gentoo.org/702570
+       addwrite /proc/self
+       local cmd=(
+               meson test
+               -C "${BUILD_DIR}"
+               --num-processes "$(makeopts_jobs ${NINJAOPTS:-${MAKEOPTS}})"
+       )
+       echo "${cmd[@]}" >&2
+       # https://github.com/att/ast/issues/1392
+       env -u T "${cmd[@]}" || die
+}
+
 src_install() {
        meson_src_install
        dodir /bin

Reply via email to