From: | "Robin H. Johnson (robbat2)" <robbat2@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-devel/make/files: make-3.81-jobserver.patch |
Date: | Wed, 31 Mar 2010 22:42:07 |
Message-Id: | E1Nx6bt-0007YQ-KR@stork.gentoo.org |
1 | robbat2 10/03/31 22:42:05 |
2 | |
3 | Added: make-3.81-jobserver.patch |
4 | Log: |
5 | Bug #193258 reported some parallel make failures for complex cases. The original patch with that was not however suitable, so take the much simplier patch that Fedora did instead. |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 sys-devel/make/files/make-3.81-jobserver.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/make/files/make-3.81-jobserver.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/make/files/make-3.81-jobserver.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: make-3.81-jobserver.patch |
15 | =================================================================== |
16 | diff -urp make-3.81/main.c make-3.81-pm/main.c |
17 | --- make-3.81/main.c 2007-09-24 15:28:34.000000000 +0200 |
18 | +++ make-3.81-pm/main.c 2007-09-24 15:32:50.000000000 +0200 |
19 | @@ -1669,8 +1669,12 @@ main (int argc, char **argv, char **envp |
20 | |
21 | if (job_slots > 0) |
22 | { |
23 | - close (job_fds[0]); |
24 | - close (job_fds[1]); |
25 | + if (restarts == 0) |
26 | + { |
27 | + close (job_fds[0]); |
28 | + close (job_fds[1]); |
29 | + } |
30 | + |
31 | job_fds[0] = job_fds[1] = -1; |
32 | free (jobserver_fds->list); |
33 | free (jobserver_fds); |