app-misc/mc: disable forking in testsuite, bug #644462
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 16 Feb 2019 23:31:34 +0000 (23:31 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 16 Feb 2019 23:31:45 +0000 (23:31 +0000)
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@gentoo.org>
app-misc/mc/mc-4.8.22.ebuild
app-misc/mc/mc-9999.ebuild

index e2a128c7a3d3728949a9598480a5c7cb91e6108e..7f41dea701e3d7b16a3c0ee298272eb83d097070 100644 (file)
@@ -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
index 722ae657e0d8d944ad552a1812e69ea4d5238bf3..d27af1106ec4297bdf0cc94cb11b4cc060d2bb10 100644 (file)
@@ -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}