summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2017-07-24 13:38:42 +0000
committertaca <taca@pkgsrc.org>2017-07-24 13:38:42 +0000
commit930a7119b737e21135ce5fea4b3676906857846a (patch)
tree9c29ace527e62558c4a2e4a84e86351c7fe51e91
parentd6f417e1933fdd3394fee5afef32a0323d60b866 (diff)
downloadpkgsrc-930a7119b737e21135ce5fea4b3676906857846a.tar.gz
Fix build problem when set PKGSRC_USE_STACK_CHECK to "yes", which reported
by wiz@ via private mail. The problem exists basic use of auto variable.
-rw-r--r--lang/ruby23-base/distinfo3
-rw-r--r--lang/ruby23-base/patches/patch-compile.c20
2 files changed, 22 insertions, 1 deletions
diff --git a/lang/ruby23-base/distinfo b/lang/ruby23-base/distinfo
index 7ccb66d2f29..74095b020f9 100644
--- a/lang/ruby23-base/distinfo
+++ b/lang/ruby23-base/distinfo
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.7 2017/07/06 16:35:05 taca Exp $
+$NetBSD: distinfo,v 1.8 2017/07/24 13:38:42 taca Exp $
SHA1 (ruby-2.3.4.tar.bz2) = f5b18e7149ec7620444c91962e695708829d0216
RMD160 (ruby-2.3.4.tar.bz2) = a44c9f342a401e75c33a2442b9460b2b1ef7f0f5
SHA512 (ruby-2.3.4.tar.bz2) = ad1f16142615498232d0de85149585be1d2c5de2bc40ec160d272a09e098ef6f317d8b25026001735261fd1c5bc0d1f8513a8474e89f0d86eed5b2fe7338d64e
Size (ruby-2.3.4.tar.bz2) = 14434361 bytes
+SHA1 (patch-compile.c) = c17c1b4088bd4e7be0212b78ec0215d27013a52c
SHA1 (patch-configure) = 9325d9527e96a8f56078c6b78d3f1334803b0d94
SHA1 (patch-ext_dbm_extconf.rb) = c998f8735db54b1ae2bc8b6caa359ce88bc7a45b
SHA1 (patch-ext_openssl_ossl__ssl.c) = 24e794aae278da6204e29212d9e2add0b0119ea4
diff --git a/lang/ruby23-base/patches/patch-compile.c b/lang/ruby23-base/patches/patch-compile.c
new file mode 100644
index 00000000000..ae2dd33978f
--- /dev/null
+++ b/lang/ruby23-base/patches/patch-compile.c
@@ -0,0 +1,20 @@
+$NetBSD: patch-compile.c,v 1.1 2017/07/24 13:38:42 taca Exp $
+
+This chanage included in r57971; moving declaration of new_opt to outside
+of "if"'s block. So, new_opt is still available outside of "if"'s block.
+
+It cause problem when PKGSRC_USE_STACK_CHECK is enabled.
+
+--- compile.c.orig 2017-02-07 17:39:54.000000000 +0000
++++ compile.c
+@@ -5993,8 +5993,9 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_
+ }
+ case NODE_PRELUDE:{
+ const rb_compile_option_t *orig_opt = ISEQ_COMPILE_DATA(iseq)->option;
++ rb_compile_option_t new_opt;
+ if (node->nd_orig) {
+- rb_compile_option_t new_opt = *orig_opt;
++ new_opt = *orig_opt;
+ rb_iseq_make_compile_option(&new_opt, node->nd_orig);
+ ISEQ_COMPILE_DATA(iseq)->option = &new_opt;
+ }