View | Details | Raw Unified | Return to bug 193625 | Differences between
and this patch

Collapse All | Expand All

(-)devel/gmake/Makefile (-2 / +13 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	gmake
4
PORTNAME=	gmake
5
PORTVERSION=	3.82
5
PORTVERSION=	3.82
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	devel
7
CATEGORIES=	devel
8
MASTER_SITES=	${MASTER_SITE_GNU}
8
MASTER_SITES=	${MASTER_SITE_GNU}
9
MASTER_SITE_SUBDIR=	make
9
MASTER_SITE_SUBDIR=	make
Lines 22-29 Link Here
22
22
23
USES=		makeinfo tar:bzip2
23
USES=		makeinfo tar:bzip2
24
24
25
OPTIONS_DEFINE=	NLS
25
OPTIONS_DEFINE=	DEBUG NLS WEBKIT_FIX
26
OPTIONS_SUB=	yes
26
OPTIONS_SUB=	yes
27
WEBKIT_FIX_DESC=	Patch argument list length for building WebKit 2.4
27
28
28
NLS_USES=	gettext iconv
29
NLS_USES=	gettext iconv
29
NLS_CONFIGURE_ON=	${ICONV_CONFIGURE_ARG} \
30
NLS_CONFIGURE_ON=	${ICONV_CONFIGURE_ARG} \
Lines 30-35 Link Here
30
			--with-libintl-prefix=${LOCALBASE}
31
			--with-libintl-prefix=${LOCALBASE}
31
NLS_CONFIGURE_ENABLE=	nls
32
NLS_CONFIGURE_ENABLE=	nls
32
33
34
.include <bsd.port.options.mk>
35
36
.if !${PORT_OPTIONS:MDEBUG}
37
INSTALL_TARGET=	install-strip
38
.endif
39
40
.if ${PORT_OPTIONS:MWEBKIT_FIX}
41
EXTRA_PATCHES=	${FILESDIR}/extra-patch-webkit-2.4
42
.endif
43
33
CONFIGURE_ENV+=	MAKEINFO="makeinfo --no-split"
44
CONFIGURE_ENV+=	MAKEINFO="makeinfo --no-split"
34
45
35
INFO=		make
46
INFO=		make
(-)devel/gmake/files/extra-patch-webkit-2.4 (+115 lines)
Line 0 Link Here
1
diff -u orig/configure.in configure.in
2
--- orig/configure.in	2010-07-28 07:39:50.000000000 +0200
3
+++ configure.in	2012-03-21 12:34:20.000000000 +0100
4
@@ -64,7 +64,8 @@
5
 AC_HEADER_STAT
6
 AC_HEADER_TIME
7
 AC_CHECK_HEADERS(stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
8
-		 memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h)
9
+		 memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h \
10
+		 sys/user.h linux/binfmts.h)
11
 
12
 # Set a flag if we have an ANSI C compiler
13
 if test "$ac_cv_prog_cc_stdc" != no; then
14
Subdirectorios comunes: orig/doc y doc
15
Subdirectorios comunes: orig/glob y glob
16
diff -u orig/job.c job.c
17
--- orig/job.c	2010-07-24 10:27:50.000000000 +0200
18
+++ job.c	2012-03-21 12:34:20.000000000 +0100
19
@@ -29,6 +29,11 @@
20
 
21
 #include <string.h>
22
 
23
+#if defined (HAVE_LINUX_BINFMTS_H) && defined (HAVE_SYS_USER_H)
24
+#include <sys/user.h>
25
+#include <linux/binfmts.h>
26
+#endif
27
+
28
 /* Default shell to use.  */
29
 #ifdef WINDOWS32
30
 #include <windows.h>
31
@@ -2795,6 +2800,7 @@
32
     unsigned int sflags_len = strlen (shellflags);
33
     char *command_ptr = NULL; /* used for batch_mode_shell mode */
34
     char *new_line;
35
+    char *args_ptr;
36
 
37
 # ifdef __EMX__ /* is this necessary? */
38
     if (!unixy_shell)
39
@@ -2865,8 +2871,17 @@
40
 	return new_argv;
41
       }
42
 
43
+#ifdef MAX_ARG_STRLEN
44
+    static char eval_line[] = "eval\\ \\\"set\\ x\\;\\ shift\\;\\ ";
45
+#define ARG_NUMBER_DIGITS 5
46
+#define EVAL_LEN (sizeof(eval_line)-1 + shell_len + 4                   \
47
+                  + (7 + ARG_NUMBER_DIGITS) * 2 * line_len / (MAX_ARG_STRLEN - 2))
48
+#else
49
+#define EVAL_LEN 0
50
+#endif
51
+
52
     new_line = alloca (shell_len + 1 + sflags_len + 1
53
-                             + (line_len*2) + 1);
54
+                       + (line_len*2) + 1 + EVAL_LEN);
55
     ap = new_line;
56
     memcpy (ap, shell, shell_len);
57
     ap += shell_len;
58
@@ -2875,6 +2890,30 @@
59
     ap += sflags_len;
60
     *(ap++) = ' ';
61
     command_ptr = ap;
62
+
63
+#if !defined (WINDOWS32) && defined (MAX_ARG_STRLEN)
64
+    if (unixy_shell && line_len > MAX_ARG_STRLEN)
65
+      {
66
+	unsigned j;
67
+	memcpy (ap, eval_line, sizeof (eval_line) - 1);
68
+	ap += sizeof (eval_line) - 1;
69
+	for (j = 1; j <= 2 * line_len / (MAX_ARG_STRLEN - 2); j++)
70
+	  ap += sprintf (ap, "\\$\\{%u\\}", j);
71
+	*ap++ = '\\';
72
+	*ap++ = '"';
73
+	*ap++ = ' ';
74
+	/* Copy only the first word of SHELL to $0.  */
75
+	for (p = shell; *p != '\0'; ++p)
76
+	  {
77
+	    if (isspace ((unsigned char)*p))
78
+	      break;
79
+	    *ap++ = *p;
80
+	  }
81
+	*ap++ = ' ';
82
+      }
83
+#endif
84
+    args_ptr = ap;
85
+
86
     for (p = line; *p != '\0'; ++p)
87
       {
88
 	if (restp != NULL && *p == '\n')
89
@@ -2922,6 +2961,14 @@
90
           }
91
 #endif
92
 	*ap++ = *p;
93
+
94
+#if !defined (WINDOWS32) && defined (MAX_ARG_STRLEN)
95
+	if (unixy_shell && line_len > MAX_ARG_STRLEN && (ap - args_ptr > MAX_ARG_STRLEN - 2))
96
+	  {
97
+	    *ap++ = ' ';
98
+	    args_ptr = ap;
99
+	  }
100
+#endif
101
       }
102
     if (ap == new_line + shell_len + sflags_len + 2)
103
       /* Line was empty.  */
104
diff -u make-3.82-orig/remake.c make-3.82/remake.c
105
--- orig/remake.c	2010-07-13 03:20:42.000000000 +0200
106
+++ remake.c	2012-03-21 12:47:52.000000000 +0100
107
@@ -301,7 +301,7 @@
108
       /* Check for the case where a target has been tried and failed but
109
          the diagnostics hasn't been issued. If we need the diagnostics
110
          then we will have to continue. */
111
-      if (!(f->updated && f->update_status > 0 && !f->dontcare && f->no_diag))
112
+      if (!(f->updated && f->update_status > 0 && !f->dontcare && f->no_diag) && f->command_state!=cs_not_started )
113
         {
114
           DBF (DB_VERBOSE, _("Pruning file `%s'.\n"));
115
           return f->command_state == cs_finished ? f->update_status : 0;
(-)devel/gmake/pkg-plist (-1 / +49 lines)
Lines 1-4 Link Here
1
bin/gmake
1
bin/gmake
2
man/man1/gmake.1.gz
2
%%NLS%%share/locale/be/LC_MESSAGES/make.mo
3
%%NLS%%share/locale/be/LC_MESSAGES/make.mo
3
%%NLS%%share/locale/da/LC_MESSAGES/make.mo
4
%%NLS%%share/locale/da/LC_MESSAGES/make.mo
4
%%NLS%%share/locale/de/LC_MESSAGES/make.mo
5
%%NLS%%share/locale/de/LC_MESSAGES/make.mo
Lines 23-26 Link Here
23
%%NLS%%share/locale/uk/LC_MESSAGES/make.mo
24
%%NLS%%share/locale/uk/LC_MESSAGES/make.mo
24
%%NLS%%share/locale/vi/LC_MESSAGES/make.mo
25
%%NLS%%share/locale/vi/LC_MESSAGES/make.mo
25
%%NLS%%share/locale/zh_CN/LC_MESSAGES/make.mo
26
%%NLS%%share/locale/zh_CN/LC_MESSAGES/make.mo
26
man/man1/gmake.1.gz
27
%%NLS%%@dirrmtry share/locale/be/LC_MESSAGES
28
%%NLS%%@dirrmtry share/locale/da/LC_MESSAGES
29
%%NLS%%@dirrmtry share/locale/de/LC_MESSAGES
30
%%NLS%%@dirrmtry share/locale/es/LC_MESSAGES
31
%%NLS%%@dirrmtry share/locale/fi/LC_MESSAGES
32
%%NLS%%@dirrmtry share/locale/fr/LC_MESSAGES
33
%%NLS%%@dirrmtry share/locale/ga/LC_MESSAGES
34
%%NLS%%@dirrmtry share/locale/gl/LC_MESSAGES
35
%%NLS%%@dirrmtry share/locale/he/LC_MESSAGES
36
%%NLS%%@dirrmtry share/locale/hr/LC_MESSAGES
37
%%NLS%%@dirrmtry share/locale/id/LC_MESSAGES
38
%%NLS%%@dirrmtry share/locale/it/LC_MESSAGES
39
%%NLS%%@dirrmtry share/locale/ja/LC_MESSAGES
40
%%NLS%%@dirrmtry share/locale/ko/LC_MESSAGES
41
%%NLS%%@dirrmtry share/locale/lt/LC_MESSAGES
42
%%NLS%%@dirrmtry share/locale/nl/LC_MESSAGES
43
%%NLS%%@dirrmtry share/locale/pl/LC_MESSAGES
44
%%NLS%%@dirrmtry share/locale/pt_BR/LC_MESSAGES
45
%%NLS%%@dirrmtry share/locale/ru/LC_MESSAGES
46
%%NLS%%@dirrmtry share/locale/sv/LC_MESSAGES
47
%%NLS%%@dirrmtry share/locale/tr/LC_MESSAGES
48
%%NLS%%@dirrmtry share/locale/uk/LC_MESSAGES
49
%%NLS%%@dirrmtry share/locale/vi/LC_MESSAGES
50
%%NLS%%@dirrmtry share/locale/zh_CN/LC_MESSAGES
51
%%NLS%%@dirrmtry share/locale/be/
52
%%NLS%%@dirrmtry share/locale/da/
53
%%NLS%%@dirrmtry share/locale/de/
54
%%NLS%%@dirrmtry share/locale/es/
55
%%NLS%%@dirrmtry share/locale/fi/
56
%%NLS%%@dirrmtry share/locale/fr/
57
%%NLS%%@dirrmtry share/locale/ga/
58
%%NLS%%@dirrmtry share/locale/gl/
59
%%NLS%%@dirrmtry share/locale/he/
60
%%NLS%%@dirrmtry share/locale/hr/
61
%%NLS%%@dirrmtry share/locale/id/
62
%%NLS%%@dirrmtry share/locale/it/
63
%%NLS%%@dirrmtry share/locale/ja/
64
%%NLS%%@dirrmtry share/locale/ko/
65
%%NLS%%@dirrmtry share/locale/lt/
66
%%NLS%%@dirrmtry share/locale/nl/
67
%%NLS%%@dirrmtry share/locale/pl/
68
%%NLS%%@dirrmtry share/locale/pt_BR/
69
%%NLS%%@dirrmtry share/locale/ru/
70
%%NLS%%@dirrmtry share/locale/sv/
71
%%NLS%%@dirrmtry share/locale/tr/
72
%%NLS%%@dirrmtry share/locale/uk/
73
%%NLS%%@dirrmtry share/locale/vi/
74
%%NLS%%@dirrmtry share/locale/zh_CN/

Return to bug 193625