commit:     1b90705e46af2e19c635f331342f827fc09dfc80
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 22 21:47:10 2022 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Apr 22 21:47:10 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b90705e

dev-vcs/rcs: addpredict / for tests

Closes: https://bugs.gentoo.org/840173
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 dev-vcs/rcs/rcs-5.10.0.ebuild | 10 +++++++++-
 dev-vcs/rcs/rcs-5.10.1.ebuild |  8 ++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/dev-vcs/rcs/rcs-5.10.0.ebuild b/dev-vcs/rcs/rcs-5.10.0.ebuild
index 7195ab87aef1..5bd7347fc901 100644
--- a/dev-vcs/rcs/rcs-5.10.0.ebuild
+++ b/dev-vcs/rcs/rcs-5.10.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -41,6 +41,14 @@ src_test() {
        emake check
 }
 
+src_test() {
+       # Tests attempt to call rcs commands on /dev/null and /tmp.
+       # https://bugs.gentoo.org/840173
+       local -x SANDBOX_PREDICT=${SANDBOX_PREDICT}
+       addpredict /
+       default
+}
+
 src_install() {
        emake DESTDIR="${D}" install
 

diff --git a/dev-vcs/rcs/rcs-5.10.1.ebuild b/dev-vcs/rcs/rcs-5.10.1.ebuild
index ac5f14633fd8..d004ccb4c1a6 100644
--- a/dev-vcs/rcs/rcs-5.10.1.ebuild
+++ b/dev-vcs/rcs/rcs-5.10.1.ebuild
@@ -32,6 +32,14 @@ src_configure() {
        econf
 }
 
+src_test() {
+       # Tests attempt to call rcs commands on /dev/null and /tmp.
+       # https://bugs.gentoo.org/840173
+       local -x SANDBOX_PREDICT=${SANDBOX_PREDICT}
+       addpredict /
+       default
+}
+
 src_install() {
        emake DESTDIR="${D}" install
 

Reply via email to