1 |
Find below a patch intended for master. Basically, replaces "make" by |
2 |
"emake -j1" in src_test(), which reflects how it is implemented in |
3 |
Portage. |
4 |
|
5 |
Ulrich |
6 |
|
7 |
|
8 |
From 38ed6197b08bb6214ce170bf8cb03c9c3495c8ca Mon Sep 17 00:00:00 2001 |
9 |
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@g.o> |
10 |
Date: Fri, 11 May 2012 17:55:19 +0200 |
11 |
Subject: [PATCH] src_test really calls emake -j1, not make. |
12 |
|
13 |
--- |
14 |
ebuild-functions.tex | 6 +++--- |
15 |
1 files changed, 3 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/ebuild-functions.tex b/ebuild-functions.tex |
18 |
index 51d9263..fe32004 100644 |
19 |
--- a/ebuild-functions.tex |
20 |
+++ b/ebuild-functions.tex |
21 |
@@ -255,9 +255,9 @@ provided. |
22 |
|
23 |
The initial working directory must be \t{S} if that exists, falling back to \t{WORKDIR} otherwise. |
24 |
The default implementation used when the ebuild lacks the \t{src\_test} function must, if tests are |
25 |
-enabled, run \t{make check} if and only if such a target is available, or if not run \t{make test}, |
26 |
-if and only such a target is available. In both cases, if make returns non-zero the build must be |
27 |
-aborted. |
28 |
+enabled, run \t{emake -j1 check} if and only if such a target is available, or if not run |
29 |
+\t{emake -j1 test} if and only if such a target is available. In both cases, if \t{emake} returns |
30 |
+non-zero the build must be aborted. |
31 |
|
32 |
The \t{src\_test} function may be disabled by \t{RESTRICT}. See section~\ref{sec:restrict}. It may |
33 |
be disabled by user too, using a PM-specific mechanism. |
34 |
-- |
35 |
1.7.8.6 |