summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLadislav Hagara2011-02-06 04:20:55 +0100
committerGeorge Sherwood2011-02-13 09:17:45 -0600
commit3c453ba2fe426d38d46aff0ea1f9ce8a6b1efa2f (patch)
treef12e71d84f0d6a34cef08ff50b5c9c399b7d2b14
parent3b2a3a8b865c54156ee8c7d04a5dcb8140e71aa2 (diff)
make: added patches, fixed for example dev86 #15933
the same patches for example in Gentoo: http://ftp.sh.cvut.cz/MIRRORS/gentoo-portage/sys-devel/make/files/make-3.82-MAKEFLAGS-reexec.patch http://ftp.sh.cvut.cz/MIRRORS/gentoo-portage/sys-devel/make/files/make-3.82-archives-many-objs.patch (cherry picked from commit 42ff21f184d141d2023f947e80a8c3febebfc095)
-rwxr-xr-xdevel/make/DETAILS1
-rw-r--r--devel/make/HISTORY4
-rwxr-xr-xdevel/make/PRE_BUILD4
-rw-r--r--devel/make/bug30612.patch66
-rw-r--r--devel/make/bug30723.patch12
5 files changed, 87 insertions, 0 deletions
diff --git a/devel/make/DETAILS b/devel/make/DETAILS
index 09dabb718a..3f96222295 100755
--- a/devel/make/DETAILS
+++ b/devel/make/DETAILS
@@ -1,5 +1,6 @@
SPELL=make
VERSION=3.82
+ PATCHLEVEL=1
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE2=$SOURCE.sig
SOURCE_GPG=gnu.gpg:$SOURCE2:UPSTREAM_KEY
diff --git a/devel/make/HISTORY b/devel/make/HISTORY
index c9ef3c5df4..67c53a940f 100644
--- a/devel/make/HISTORY
+++ b/devel/make/HISTORY
@@ -1,3 +1,7 @@
+2011-02-06 Ladislav Hagara <hgr@vabo.cz>
+ * DETAILS: PATCHLEVEL=1
+ * PRE_BUILD, bug30612.patch, bug30723.patch: added patches from Arch
+
2010-08-21 Vlad Glagolev <stealth@sourcemage.org>
* DETAILS: updated spell to 3.82; quoting paths
converted to upstream signature checking
diff --git a/devel/make/PRE_BUILD b/devel/make/PRE_BUILD
new file mode 100755
index 0000000000..699ed94ae1
--- /dev/null
+++ b/devel/make/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+patch -p1 < $SPELL_DIRECTORY/bug30612.patch &&
+patch -p1 < $SPELL_DIRECTORY/bug30723.patch
diff --git a/devel/make/bug30612.patch b/devel/make/bug30612.patch
new file mode 100644
index 0000000000..fb843bcd97
--- /dev/null
+++ b/devel/make/bug30612.patch
@@ -0,0 +1,66 @@
+diff -Naur make-3.82-orig/main.c make-3.82-fix30612//main.c
+--- make-3.82-orig/main.c 2010-07-19 17:10:53.000000000 +1000
++++ make-3.82-fix30612//main.c 2010-09-23 23:33:37.908855839 +1000
+@@ -1,3 +1,4 @@
++
+ /* Argument parsing and main program of GNU Make.
+ Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
+ 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
+@@ -1138,7 +1139,7 @@
+ a macro and some compilers (MSVC) don't like conditionals in macros. */
+ {
+ const char *features = "target-specific order-only second-expansion"
+- " else-if shortest-stem undefine"
++ " else-if shortest-stem undefine oneshell"
+ #ifndef NO_ARCHIVES
+ " archives"
+ #endif
+diff -Naur make-3.82-orig/read.c make-3.82-fix30612//read.c
+--- make-3.82-orig/read.c 2010-07-13 11:20:42.000000000 +1000
++++ make-3.82-fix30612//read.c 2010-09-23 23:30:58.018855839 +1000
+@@ -3028,7 +3028,7 @@
+ {
+ /* This looks like the first element in an open archive group.
+ A valid group MUST have ')' as the last character. */
+- const char *e = p + nlen;
++ const char *e = p;
+ do
+ {
+ e = next_token (e);
+@@ -3084,19 +3084,19 @@
+ Go to the next item in the string. */
+ if (flags & PARSEFS_NOGLOB)
+ {
+- NEWELT (concat (2, prefix, tp));
++ NEWELT (concat (2, prefix, tmpbuf));
+ continue;
+ }
+
+ /* If we get here we know we're doing glob expansion.
+ TP is a string in tmpbuf. NLEN is no longer used.
+ We may need to do more work: after this NAME will be set. */
+- name = tp;
++ name = tmpbuf;
+
+ /* Expand tilde if applicable. */
+- if (tp[0] == '~')
++ if (tmpbuf[0] == '~')
+ {
+- tildep = tilde_expand (tp);
++ tildep = tilde_expand (tmpbuf);
+ if (tildep != 0)
+ name = tildep;
+ }
+@@ -3152,7 +3152,11 @@
+ else
+ {
+ /* We got a chain of items. Attach them. */
+- (*newp)->next = found;
++ if (*newp)
++ (*newp)->next = found;
++ else
++ *newp = found;
++
+
+ /* Find and set the new end. Massage names if necessary. */
+ while (1)
diff --git a/devel/make/bug30723.patch b/devel/make/bug30723.patch
new file mode 100644
index 0000000000..84e7ebe7a5
--- /dev/null
+++ b/devel/make/bug30723.patch
@@ -0,0 +1,12 @@
+diff -Naur make-3.82-orig/main.c make-3.82-fix30723//main.c
+--- make-3.82-orig/main.c 2010-07-19 17:10:53.000000000 +1000
++++ make-3.82-fix30723//main.c 2010-09-23 23:34:10.932188592 +1000
+@@ -2093,7 +2093,7 @@
+ const char *pv = define_makeflags (1, 1);
+ char *p = alloca (sizeof ("MAKEFLAGS=") + strlen (pv) + 1);
+ sprintf (p, "MAKEFLAGS=%s", pv);
+- putenv (p);
++ putenv (allocated_variable_expand (p));
+ }
+
+ if (ISDB (DB_BASIC))