pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/gmake Do not raise stack limits during the build...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/81398f62877a
branches:  trunk
changeset: 356016:81398f62877a
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Dec 17 14:14:06 2016 +0000

description:
Do not raise stack limits during the build. It messes up ressource
limits for multi-threaded applications. Bump revision.

diffstat:

 devel/gmake/Makefile                |   4 ++--
 devel/gmake/distinfo                |   4 ++--
 devel/gmake/patches/patch-makeint.h |  16 ++++++++++++++--
 3 files changed, 18 insertions(+), 6 deletions(-)

diffs (58 lines):

diff -r 84085102c3e5 -r 81398f62877a devel/gmake/Makefile
--- a/devel/gmake/Makefile      Sat Dec 17 13:38:02 2016 +0000
+++ b/devel/gmake/Makefile      Sat Dec 17 14:14:06 2016 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.102 2016/09/08 20:39:37 joerg Exp $
+# $NetBSD: Makefile,v 1.103 2016/12/17 14:14:06 joerg Exp $
 
 DISTNAME=      make-4.1
 PKGNAME=       g${DISTNAME}
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GNU:=make/}
 EXTRACT_SUFX=  .tar.bz2
diff -r 84085102c3e5 -r 81398f62877a devel/gmake/distinfo
--- a/devel/gmake/distinfo      Sat Dec 17 13:38:02 2016 +0000
+++ b/devel/gmake/distinfo      Sat Dec 17 14:14:06 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.31 2016/09/08 20:39:37 joerg Exp $
+$NetBSD: distinfo,v 1.32 2016/12/17 14:14:06 joerg Exp $
 
 SHA1 (make-4.1.tar.bz2) = 0d701882fd6fd61a9652cb8d866ad7fc7de54d58
 RMD160 (make-4.1.tar.bz2) = 0f322d6c28867ea817f7d02c57e635c8ef556909
@@ -6,5 +6,5 @@
 Size (make-4.1.tar.bz2) = 1327342 bytes
 SHA1 (patch-af) = 8ff060ecba9d664044eabd98741253881d8c9bbe
 SHA1 (patch-main.c) = 6674cc95ce702c06b8214963bcb43bde3919be4f
-SHA1 (patch-makeint.h) = edfb71f3b41bf3bc4c66d948e3001b5502add6c3
+SHA1 (patch-makeint.h) = d4508002620ca35d2661c1b6f8ae0ed3b4771fb1
 SHA1 (patch-pa) = 2c0168db7afec3da98b30392290e5b9464ea7b5e
diff -r 84085102c3e5 -r 81398f62877a devel/gmake/patches/patch-makeint.h
--- a/devel/gmake/patches/patch-makeint.h       Sat Dec 17 13:38:02 2016 +0000
+++ b/devel/gmake/patches/patch-makeint.h       Sat Dec 17 14:14:06 2016 +0000
@@ -1,10 +1,22 @@
-$NetBSD: patch-makeint.h,v 1.5 2016/09/08 22:46:58 joerg Exp $
+$NetBSD: patch-makeint.h,v 1.6 2016/12/17 14:14:06 joerg Exp $
 
 * [SV 43434] Handle NULL returns from ttyname().
+* Do not override stack limits by default.
+  It can dramatically increase the memory use of multi-threaded programs.
 
 --- makeint.h.orig     2014-10-05 16:24:51.000000000 +0000
 +++ makeint.h
-@@ -424,10 +424,11 @@ extern struct rlimit stack_limit;
+@@ -408,9 +408,6 @@ extern int unixy_shell;
+ 
+ #define STOP_SET(_v,_m) ANY_SET (stopchar_map[(unsigned char)(_v)],(_m))
+ 
+-#if defined(HAVE_SYS_RESOURCE_H) && defined(HAVE_GETRLIMIT) && defined(HAVE_SETRLIMIT)
+-# define SET_STACK_SIZE
+-#endif
+ #ifdef SET_STACK_SIZE
+ # include <sys/resource.h>
+ extern struct rlimit stack_limit;
+@@ -424,10 +421,11 @@ extern struct rlimit stack_limit;
  /* The number of bytes needed to represent the largest integer as a string.  */
  #define INTSTR_LENGTH         CSTRLEN ("18446744073709551616")
  



Home | Main Index | Thread Index | Old Index