Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/mc/
Date: Sat, 16 Feb 2019 23:31:58
Message-Id: 1550359905.fa50c6ff949245f25249b76afba190a00a5e1641.slyfox@gentoo
1 commit: fa50c6ff949245f25249b76afba190a00a5e1641
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 16 23:31:34 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 16 23:31:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa50c6ff
7
8 app-misc/mc: disable forking in testsuite, bug #644462
9
10 A few mc tests validate 'fork' functionality by mocking
11 out fork(). check uses fork() by default as a way to
12 isolate testsiute. This causes conflict.
13
14 To resove conflict we disable forking in check via
15 CK_FORK=no environment variable.
16
17 Reported-by: Rolf Eike Beer
18 Closes: https://bugs.gentoo.org/644462
19 Package-Manager: Portage-2.3.60, Repoman-2.3.12
20 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
21
22 app-misc/mc/mc-4.8.22.ebuild | 9 +++++++++
23 app-misc/mc/mc-9999.ebuild | 8 ++++++++
24 2 files changed, 17 insertions(+)
25
26 diff --git a/app-misc/mc/mc-4.8.22.ebuild b/app-misc/mc/mc-4.8.22.ebuild
27 index e2a128c7a3d..7f41dea701e 100644
28 --- a/app-misc/mc/mc-4.8.22.ebuild
29 +++ b/app-misc/mc/mc-4.8.22.ebuild
30 @@ -70,6 +70,15 @@ src_configure() {
31 econf "${myeconfargs[@]}"
32 }
33
34 +src_test() {
35 + # CK_FORK=no to avoid using fork() in check library
36 + # as mc mocks fork() itself: bug #644462.
37 + #
38 + # VERBOSE=1 to make test failures contain detailed
39 + # information.
40 + CK_FORK=no emake check VERBOSE=1
41 +}
42 +
43 src_install() {
44 emake DESTDIR="${D}" install
45 dodoc AUTHORS README NEWS
46
47 diff --git a/app-misc/mc/mc-9999.ebuild b/app-misc/mc/mc-9999.ebuild
48 index 722ae657e0d..d27af1106ec 100644
49 --- a/app-misc/mc/mc-9999.ebuild
50 +++ b/app-misc/mc/mc-9999.ebuild
51 @@ -83,6 +83,14 @@ src_configure() {
52 econf "${myeconfargs[@]}"
53 }
54
55 +src_test() {
56 + # CK_FORK=no to avoid using fork() in check library
57 + # as mc mocks fork() itself: bug #644462.
58 + #
59 + # VERBOSE=1 to make test failures contain detailed
60 + # information.
61 + CK_FORK=no emake check VERBOSE=1
62 +}
63 src_install() {
64 emake DESTDIR="${D}" install
65 dodoc AUTHORS doc/{FAQ,NEWS,README}