aboutsummaryrefslogtreecommitdiffstats
path: root/main/make/make-3.82-parallel-remake.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-11 07:35:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-11 15:04:40 +0000
commita52c9d823621e469d6052aac1f4aab74cce1fe10 (patch)
tree7e77924beff0ce35b9d617cb2b4e49044bcea18e /main/make/make-3.82-parallel-remake.patch
parent57c239705f8015256d026af6b5d5f7651757d9bd (diff)
downloadaports-a52c9d823621e469d6052aac1f4aab74cce1fe10.tar.bz2
aports-a52c9d823621e469d6052aac1f4aab74cce1fe10.tar.xz
main/make: apply various patches
various patches from upstream, gentoo or fedora
Diffstat (limited to 'main/make/make-3.82-parallel-remake.patch')
-rw-r--r--main/make/make-3.82-parallel-remake.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/make/make-3.82-parallel-remake.patch b/main/make/make-3.82-parallel-remake.patch
new file mode 100644
index 0000000000..923e60ba24
--- /dev/null
+++ b/main/make/make-3.82-parallel-remake.patch
@@ -0,0 +1,39 @@
+fix from upstream cvs
+
+----------------------------
+revision 1.247
+date: 2011-09-18 19:39:26 -0400; author: psmith; state: Exp; lines: +5 -3; commitid: 07NxO4T5PiWC82Av;
+When we re-exec the master makefile in a jobserver environment, ensure
+that MAKEFLAGS is set properly so the re-exec'd make runs in parallel.
+See Savannah bug #33873.
+
+Index: main.c
+===================================================================
+RCS file: /sources/make/make/main.c,v
+retrieving revision 1.246
+retrieving revision 1.247
+diff -u -p -r1.246 -r1.247
+--- ./main.c 29 Aug 2010 23:05:27 -0000 1.246
++++ ./main.c 18 Sep 2011 23:39:26 -0000 1.247
+@@ -2089,6 +2089,11 @@ main (int argc, char **argv, char **envp
+
+ ++restarts;
+
++ /* If we're re-exec'ing the first make, put back the number of
++ job slots so define_makefiles() will get it right. */
++ if (master_job_slots)
++ job_slots = master_job_slots;
++
+ /* Reset makeflags in case they were changed. */
+ {
+ const char *pv = define_makeflags (1, 1);
+@@ -2825,9 +2830,6 @@ define_makeflags (int all, int makefile)
+ && (*(unsigned int *) cs->value_ptr ==
+ *(unsigned int *) cs->noarg_value))
+ ADD_FLAG ("", 0); /* Optional value omitted; see below. */
+- else if (cs->c == 'j')
+- /* Special case for `-j'. */
+- ADD_FLAG ("1", 1);
+ else
+ {
+ char *buf = alloca (30);