gnumake: patch the patches so it looks nice

This commit is contained in:
Vladimír Čunát 2013-02-24 10:50:05 +01:00 committed by Eelco Dolstra
parent 8ad7893bfc
commit d3821edb9e
7 changed files with 46 additions and 47 deletions

View File

@ -13,10 +13,10 @@ Subject: [PATCH] job.c (construct_command_argv_internal): Don't assume
job.c | 23 ++++++++++++++++------- job.c | 23 ++++++++++++++++-------
2 files changed, 23 insertions(+), 7 deletions(-) 2 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/job.c b/job.c diff --git job.c job.c
index 67b402d..c2ce84d 100644 index 67b402d..c2ce84d 100644
--- a/job.c --- job.c
+++ b/job.c +++ job.c
@@ -2844,12 +2844,12 @@ construct_command_argv_internal (char *line, char **restp, char *shell, @@ -2844,12 +2844,12 @@ construct_command_argv_internal (char *line, char **restp, char *shell,
unsigned int shell_len = strlen (shell); unsigned int shell_len = strlen (shell);

View File

@ -24,22 +24,21 @@ stdenv.mkDerivation {
# Likewise, when searching for included Makefiles, don't look in # Likewise, when searching for included Makefiles, don't look in
# /usr/include and friends. # /usr/include and friends.
./impure-dirs.patch ./impure-dirs.patch
];
# a bunch of patches from Gentoo, mostly should be from upstream (unreleased) # a bunch of patches from Gentoo, mostly should be from upstream (unreleased)
preConfigure = '' ./archives-many-objs.patch
patch -i ${./archives-many-objs.patch} ./MAKEFLAGS-reexec.patch
patch -i ${./MAKEFLAGS-reexec.patch} ./memory-corruption.patch
patch -i ${./memory-corruption.patch} ./glob-speedup.patch
patch -i ${./glob-speedup.patch} ./copy-on-expand.patch
patch -i ${./copy-on-expand.patch} ./oneshell.patch
patch -i ${./oneshell.patch} ./parallel-remake.patch
patch -i ${./parallel-remake.patch} ./intermediate-parallel.patch
patch -p1 -i ${./intermediate-parallel.patch} ./construct-command-line.patch
patch -i ${./construct-command-line.patch} ./long-command-line.patch
patch -i ${./long-command-line.patch} ./darwin-library_search-dylib.patch
patch -i ${./darwin-library_search-dylib.patch} ];
''; patchFlags = "-p0";
meta = { meta = {
description = "GNU Make, a program controlling the generation of non-source files from sources"; description = "GNU Make, a program controlling the generation of non-source files from sources";

View File

@ -17,8 +17,8 @@ Changes since 1.198: +35 -25 lines
Avoid invoking glob() unless the filename has potential globbing Avoid invoking glob() unless the filename has potential globbing
characters in it, for performance improvements. characters in it, for performance improvements.
--- a/read.c 2011/04/29 15:27:39 1.198 --- read.c 2011/04/29 15:27:39 1.198
+++ b/read.c 2011/05/07 14:36:12 1.200 +++ read.c 2011/05/07 14:36:12 1.200
@@ -2901,6 +2901,7 @@ @@ -2901,6 +2901,7 @@
const char *name; const char *name;
const char **nlist = 0; const char **nlist = 0;

View File

@ -1,6 +1,6 @@
diff -rc make-3.81-orig/read.c make-3.81/read.c diff -rc read.c read.c
*** make-3.81-orig/read.c 2006-03-17 15:24:20.000000000 +0100 *** read.c 2006-03-17 15:24:20.000000000 +0100
--- make-3.81/read.c 2007-05-24 17:16:31.000000000 +0200 --- read.c 2007-05-24 17:16:31.000000000 +0200
*************** ***************
*** 99,107 **** *** 99,107 ****
--- 99,109 ---- --- 99,109 ----
@ -15,9 +15,9 @@ diff -rc make-3.81-orig/read.c make-3.81/read.c
#endif #endif
0 0
}; };
diff -rc make-3.81-orig/remake.c make-3.81/remake.c diff -rc reremake.c
*** make-3.81-orig/remake.c 2006-03-20 03:36:37.000000000 +0100 *** remake.c 2006-03-20 03:36:37.000000000 +0100
--- make-3.81/remake.c 2007-05-24 17:06:54.000000000 +0200 --- remake.c 2007-05-24 17:06:54.000000000 +0200
*************** ***************
*** 1452,1460 **** *** 1452,1460 ****
--- 1452,1462 ---- --- 1452,1462 ----

View File

@ -1,7 +1,7 @@
diff --git a/remake.c b/remake.c diff --git remake.c remake.c
index c0bf709..b1ddd23 100644 index c0bf709..b1ddd23 100644
--- a/remake.c --- remake.c
+++ b/remake.c +++ remake.c
@@ -612,6 +612,10 @@ update_file_1 (struct file *file, unsigned int depth) @@ -612,6 +612,10 @@ update_file_1 (struct file *file, unsigned int depth)
d->file->dontcare = file->dontcare; d->file->dontcare = file->dontcare;
} }
@ -13,10 +13,10 @@ index c0bf709..b1ddd23 100644
dep_status |= update_file (d->file, depth); dep_status |= update_file (d->file, depth);
diff --git a/tests/scripts/features/parallelism b/tests/scripts/features/parallelism diff --git tests/scripts/features/parallelism tests/scripts/features/parallelism
index d4250f0..76d24a7 100644 index d4250f0..76d24a7 100644
--- a/tests/scripts/features/parallelism --- tests/scripts/features/parallelism
+++ b/tests/scripts/features/parallelism +++ tests/scripts/features/parallelism
@@ -214,6 +214,23 @@ rm main.x"); @@ -214,6 +214,23 @@ rm main.x");
rmfiles(qw(foo.y foo.y.in main.bar)); rmfiles(qw(foo.y foo.y.in main.bar));
} }

View File

@ -1,6 +1,6 @@
diff -rc make-3.81-orig/job.c make-3.81/job.c diff -rc job.c job.c
*** make-3.81-orig/job.c 2006-03-20 04:03:04.000000000 +0100 *** job.c 2006-03-20 04:03:04.000000000 +0100
--- make-3.81/job.c 2009-01-19 19:37:28.000000000 +0100 --- job.c 2009-01-19 19:37:28.000000000 +0100
*************** ***************
*** 1083,1089 **** *** 1083,1089 ****
appear. */ appear. */
@ -18,9 +18,9 @@ diff -rc make-3.81-orig/job.c make-3.81/job.c
/* Tell update_goal_chain that a command has been started on behalf of /* Tell update_goal_chain that a command has been started on behalf of
this target. It is important that this happens here and not in this target. It is important that this happens here and not in
diff -rc make-3.81-orig/main.c make-3.81/main.c diff -rc main.c main.c
*** make-3.81-orig/main.c 2006-03-20 03:36:37.000000000 +0100 *** main.c 2006-03-20 03:36:37.000000000 +0100
--- make-3.81/main.c 2009-01-19 19:41:41.000000000 +0100 --- main.c 2009-01-19 19:41:41.000000000 +0100
*************** ***************
*** 886,891 **** *** 886,891 ****
--- 886,900 ---- --- 886,900 ----
@ -87,9 +87,9 @@ diff -rc make-3.81-orig/main.c make-3.81/main.c
+ int enable_nested_output = 0; + int enable_nested_output = 0;
+ int stdout_nesting_level = 0; + int stdout_nesting_level = 0;
+ int stderr_nesting_level = 0; + int stderr_nesting_level = 0;
diff -rc make-3.81-orig/make.h make-3.81/make.h diff -rc make.h
*** make-3.81-orig/make.h 2006-02-16 00:54:43.000000000 +0100 *** make.h 2006-02-16 00:54:43.000000000 +0100
--- make-3.81/make.h 2009-01-19 19:32:03.000000000 +0100 --- make.h 2009-01-19 19:32:03.000000000 +0100
*************** ***************
*** 609,611 **** *** 609,611 ****
--- 609,614 ---- --- 609,614 ----
@ -99,9 +99,9 @@ diff -rc make-3.81-orig/make.h make-3.81/make.h
+ extern int enable_nested_output; + extern int enable_nested_output;
+ extern int stdout_nesting_level; + extern int stdout_nesting_level;
+ extern int stderr_nesting_level; + extern int stderr_nesting_level;
diff -rc make-3.81-orig/remake.c make-3.81/remake.c diff -rc reremake.c
*** make-3.81-orig/remake.c 2006-03-20 03:36:37.000000000 +0100 *** remake.c 2006-03-20 03:36:37.000000000 +0100
--- make-3.81/remake.c 2009-01-19 19:39:40.000000000 +0100 --- remake.c 2009-01-19 19:39:40.000000000 +0100
*************** ***************
*** 1120,1126 **** *** 1120,1126 ****
--- 1120,1137 ---- --- 1120,1137 ----

View File

@ -11,10 +11,10 @@ Subject: [PATCH] Keep the command line on the heap to avoid stack overflow.
job.c | 13 +++++++++---- job.c | 13 +++++++++----
2 files changed, 12 insertions(+), 4 deletions(-) 2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/job.c b/job.c diff --git job.c job.c
index 754576b..f7b7d51 100644 index 754576b..f7b7d51 100644
--- a/job.c --- job.c
+++ b/job.c +++ job.c
@@ -2984,8 +2984,8 @@ construct_command_argv_internal (char *line, char **restp, char *shell, @@ -2984,8 +2984,8 @@ construct_command_argv_internal (char *line, char **restp, char *shell,
return new_argv; return new_argv;
} }