diff options
author | swills <swills@FreeBSD.org> | 2014-01-26 06:10:56 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2014-01-26 06:10:56 +0800 |
commit | 3686311d712352470ef6a581ba0137943197858d (patch) | |
tree | 3edbfa65c2a37086d64280947c41b5d8c61c8db2 /lang | |
parent | b46bf74084cf936acd54cf0341723b1051cb9f87 (diff) | |
download | freebsd-ports-gnome-3686311d712352470ef6a581ba0137943197858d.tar.gz freebsd-ports-gnome-3686311d712352470ef6a581ba0137943197858d.tar.zst freebsd-ports-gnome-3686311d712352470ef6a581ba0137943197858d.zip |
- Add patch to increase stack size to avoid crash on ppc64
- Bump PORTREVISION due to binary and package change
Submitted by: jhibbits (via private email)
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ruby19/files/patch-thread_pthread.c | 19 | ||||
-rw-r--r-- | lang/ruby20/files/patch-thread_pthread.c | 19 |
2 files changed, 38 insertions, 0 deletions
diff --git a/lang/ruby19/files/patch-thread_pthread.c b/lang/ruby19/files/patch-thread_pthread.c new file mode 100644 index 000000000000..d3a182729038 --- /dev/null +++ b/lang/ruby19/files/patch-thread_pthread.c @@ -0,0 +1,19 @@ +--- thread_pthread.c.orig 2013-03-28 10:10:00.000000000 +0000 ++++ thread_pthread.c 2014-01-25 02:59:12.085473158 +0000 +@@ -1193,13 +1193,13 @@ + + pthread_attr_init(&attr); + #ifdef PTHREAD_STACK_MIN +- if (PTHREAD_STACK_MIN < 4096 * 3) { ++ if (PTHREAD_STACK_MIN < 4096 * 4) { + /* Allocate the machine stack for the timer thread +- * at least 12KB (3 pages). FreeBSD 8.2 AMD64 causes ++ * at least 16KB (4 pages). FreeBSD 8.2 AMD64 causes + * machine stack overflow only with PTHREAD_STACK_MIN. + */ + pthread_attr_setstacksize(&attr, +- 4096 * 3 + (THREAD_DEBUG ? BUFSIZ : 0)); ++ 4096 * 4 + (THREAD_DEBUG ? BUFSIZ : 0)); + } + else { + pthread_attr_setstacksize(&attr, diff --git a/lang/ruby20/files/patch-thread_pthread.c b/lang/ruby20/files/patch-thread_pthread.c new file mode 100644 index 000000000000..c3ae23dac5f2 --- /dev/null +++ b/lang/ruby20/files/patch-thread_pthread.c @@ -0,0 +1,19 @@ +--- thread_pthread.c.orig 2013-05-01 15:40:57.000000000 +0000 ++++ thread_pthread.c 2014-01-25 03:00:55.044466722 +0000 +@@ -1420,13 +1420,13 @@ + exit(EXIT_FAILURE); + } + # ifdef PTHREAD_STACK_MIN +- if (PTHREAD_STACK_MIN < 4096 * 3) { ++ if (PTHREAD_STACK_MIN < 4096 * 4) { + /* Allocate the machine stack for the timer thread +- * at least 12KB (3 pages). FreeBSD 8.2 AMD64 causes ++ * at least 16KB (4 pages). FreeBSD 8.2 AMD64 causes + * machine stack overflow only with PTHREAD_STACK_MIN. + */ + pthread_attr_setstacksize(&attr, +- 4096 * 3 + (THREAD_DEBUG ? BUFSIZ : 0)); ++ 4096 * 4 + (THREAD_DEBUG ? BUFSIZ : 0)); + } + else { + pthread_attr_setstacksize(&attr, |