aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2003-04-20 03:36:28 +0800
committerknu <knu@FreeBSD.org>2003-04-20 03:36:28 +0800
commitd5d2e630b27ecc698877eea1253aa7572ab854cb (patch)
tree776d564c560ffc36cafbecf12a4411df1637746b /lang
parentfcd1643b36decd6cf75c314b0b013f69cbbaf3dc (diff)
downloadfreebsd-ports-gnome-d5d2e630b27ecc698877eea1253aa7572ab854cb.tar.gz
freebsd-ports-gnome-d5d2e630b27ecc698877eea1253aa7572ab854cb.tar.zst
freebsd-ports-gnome-d5d2e630b27ecc698877eea1253aa7572ab854cb.zip
Add a patch to fix coredump that occurs when you run ruby with the
verbose flag on. (ruby -v -e 'begin;end') PORTREVISION is not bumped since this is not a significant problem for most people.
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby-devel/files/patch-parse.c13
-rw-r--r--lang/ruby/files/patch-parse.c13
-rw-r--r--lang/ruby16/files/patch-parse.c13
-rw-r--r--lang/ruby18/files/patch-parse.c13
4 files changed, 52 insertions, 0 deletions
diff --git a/lang/ruby-devel/files/patch-parse.c b/lang/ruby-devel/files/patch-parse.c
new file mode 100644
index 000000000000..8ce14c1a174a
--- /dev/null
+++ b/lang/ruby-devel/files/patch-parse.c
@@ -0,0 +1,13 @@
+--- parse.c.orig Sun Apr 20 04:22:00 2003
++++ parse.c Sun Apr 20 04:23:40 2003
+@@ -9514,9 +9514,9 @@
+ char *useless = 0;
+
+ if (!RTEST(ruby_verbose)) return;
+- if (!node) return;
+
+ again:
++ if (!node) return;
+ switch (nd_type(node)) {
+ case NODE_NEWLINE:
+ node = node->nd_next;
diff --git a/lang/ruby/files/patch-parse.c b/lang/ruby/files/patch-parse.c
new file mode 100644
index 000000000000..a6c8e6d88675
--- /dev/null
+++ b/lang/ruby/files/patch-parse.c
@@ -0,0 +1,13 @@
+--- parse.c.orig Sun Apr 20 04:20:19 2003
++++ parse.c Sun Apr 20 04:21:02 2003
+@@ -8519,9 +8519,9 @@
+ char *useless = 0;
+
+ if (!RTEST(ruby_verbose)) return;
+- if (!node) return;
+
+ again:
++ if (!node) return;
+ switch (nd_type(node)) {
+ case NODE_NEWLINE:
+ node = node->nd_next;
diff --git a/lang/ruby16/files/patch-parse.c b/lang/ruby16/files/patch-parse.c
new file mode 100644
index 000000000000..a6c8e6d88675
--- /dev/null
+++ b/lang/ruby16/files/patch-parse.c
@@ -0,0 +1,13 @@
+--- parse.c.orig Sun Apr 20 04:20:19 2003
++++ parse.c Sun Apr 20 04:21:02 2003
+@@ -8519,9 +8519,9 @@
+ char *useless = 0;
+
+ if (!RTEST(ruby_verbose)) return;
+- if (!node) return;
+
+ again:
++ if (!node) return;
+ switch (nd_type(node)) {
+ case NODE_NEWLINE:
+ node = node->nd_next;
diff --git a/lang/ruby18/files/patch-parse.c b/lang/ruby18/files/patch-parse.c
new file mode 100644
index 000000000000..8ce14c1a174a
--- /dev/null
+++ b/lang/ruby18/files/patch-parse.c
@@ -0,0 +1,13 @@
+--- parse.c.orig Sun Apr 20 04:22:00 2003
++++ parse.c Sun Apr 20 04:23:40 2003
+@@ -9514,9 +9514,9 @@
+ char *useless = 0;
+
+ if (!RTEST(ruby_verbose)) return;
+- if (!node) return;
+
+ again:
++ if (!node) return;
+ switch (nd_type(node)) {
+ case NODE_NEWLINE:
+ node = node->nd_next;