commit:     fa50c6ff949245f25249b76afba190a00a5e1641
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 16 23:31:34 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Feb 16 23:31:45 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa50c6ff

app-misc/mc: disable forking in testsuite, bug #644462

A few mc tests validate 'fork' functionality by mocking
out fork(). check uses fork() by default as a way to
isolate testsiute. This causes conflict.

To resove conflict we disable forking in check via
CK_FORK=no environment variable.

Reported-by: Rolf Eike Beer
Closes: https://bugs.gentoo.org/644462
Package-Manager: Portage-2.3.60, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 app-misc/mc/mc-4.8.22.ebuild | 9 +++++++++
 app-misc/mc/mc-9999.ebuild   | 8 ++++++++
 2 files changed, 17 insertions(+)

diff --git a/app-misc/mc/mc-4.8.22.ebuild b/app-misc/mc/mc-4.8.22.ebuild
index e2a128c7a3d..7f41dea701e 100644
--- a/app-misc/mc/mc-4.8.22.ebuild
+++ b/app-misc/mc/mc-4.8.22.ebuild
@@ -70,6 +70,15 @@ src_configure() {
        econf "${myeconfargs[@]}"
 }
 
+src_test() {
+       # CK_FORK=no to avoid using fork() in check library
+       # as mc mocks fork() itself: bug #644462.
+       #
+       # VERBOSE=1 to make test failures contain detailed
+       # information.
+       CK_FORK=no emake check VERBOSE=1
+}
+
 src_install() {
        emake DESTDIR="${D}" install
        dodoc AUTHORS README NEWS

diff --git a/app-misc/mc/mc-9999.ebuild b/app-misc/mc/mc-9999.ebuild
index 722ae657e0d..d27af1106ec 100644
--- a/app-misc/mc/mc-9999.ebuild
+++ b/app-misc/mc/mc-9999.ebuild
@@ -83,6 +83,14 @@ src_configure() {
        econf "${myeconfargs[@]}"
 }
 
+src_test() {
+       # CK_FORK=no to avoid using fork() in check library
+       # as mc mocks fork() itself: bug #644462.
+       #
+       # VERBOSE=1 to make test failures contain detailed
+       # information.
+       CK_FORK=no emake check VERBOSE=1
+}
 src_install() {
        emake DESTDIR="${D}" install
        dodoc AUTHORS doc/{FAQ,NEWS,README}

Reply via email to