Skip to content

Commit bff61ab

Browse files
committed
Merge branch 'master-2.2' into dist/2.2/trusty
2 parents 6a7a716 + 8fc361d commit bff61ab

File tree

123 files changed

+2154
-816
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+2154
-816
lines changed

ChangeLog

Lines changed: 565 additions & 0 deletions
Large diffs are not rendered by default.

array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4383,7 +4383,7 @@ flatten(VALUE ary, int level, int *modified)
43834383

43844384
st_free_table(memo);
43854385

4386-
RBASIC_SET_CLASS(result, rb_class_of(ary));
4386+
RBASIC_SET_CLASS(result, rb_obj_class(ary));
43874387
return result;
43884388
}
43894389

bignum.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6248,7 +6248,7 @@ rb_big_fdiv(VALUE x, VALUE y)
62486248
*
62496249
* 123456789 ** 2 #=> 15241578750190521
62506250
* 123456789 ** 1.2 #=> 5126464716.09932
6251-
* 123456789 ** -2 #=> 6.5610001194102e-17
6251+
* 123456789 ** -2 #=> (1/15241578750190521)
62526252
*/
62536253

62546254
VALUE
@@ -6789,7 +6789,7 @@ rb_big_aref(VALUE x, VALUE y)
67896789
* See also Object#hash.
67906790
*/
67916791

6792-
static VALUE
6792+
VALUE
67936793
rb_big_hash(VALUE x)
67946794
{
67956795
st_index_t hash;

common.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ configure-ext: $(EXTS_MK)
187187

188188
build-ext: $(EXTS_MK)
189189
$(Q)$(MAKE) -f $(EXTS_MK) $(MFLAGS) libdir="$(libdir)" LIBRUBY_EXTS=$(LIBRUBY_EXTS) \
190-
ENCOBJS="$(ENCOBJS)" UPDATE_LIBRARIES=no $(EXTSTATIC)
190+
EXTENCS="$(ENCOBJS)" UPDATE_LIBRARIES=no $(EXTSTATIC)
191191

192192
prog: program wprogram
193193

@@ -584,8 +584,8 @@ $(RBCONFIG): $(srcdir)/tool/mkconfig.rb config.status $(srcdir)/version.h $(PREP
584584

585585
test-rubyspec-precheck:
586586

587-
test-rubyspec: test-rubyspec-precheck
588-
$(RUNRUBY) $(srcdir)/spec/mspec/bin/mspec run -B $(srcdir)/spec/default.mspec $(MSPECOPT)
587+
test-rubyspec: test-rubyspec-precheck $(arch)-fake.rb
588+
$(RUNRUBY) -r./$(arch)-fake $(srcdir)/spec/mspec/bin/mspec run -B $(srcdir)/spec/default.mspec $(MSPECOPT)
589589

590590
RUNNABLE = $(LIBRUBY_RELATIVE:no=un)-runnable
591591
runnable: $(RUNNABLE) prog $(srcdir)/tool/mkrunnable.rb PHONY

compile.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ r_value(VALUE value)
245245
#define ADD_TRACE(seq, line, event) \
246246
do { \
247247
if ((event) == RUBY_EVENT_LINE && iseq->coverage && \
248+
(line) > 0 && \
248249
(line) != iseq->compile_data->last_coverable_line) { \
249250
RARRAY_ASET(iseq->coverage, (line) - 1, INT2FIX(0)); \
250251
iseq->compile_data->last_coverable_line = (line); \
@@ -929,6 +930,8 @@ new_label_body(rb_iseq_t *iseq, long line)
929930
labelobj->label_no = iseq->compile_data->label_no++;
930931
labelobj->sc_state = 0;
931932
labelobj->sp = -1;
933+
labelobj->set = 0;
934+
labelobj->rescued = LABEL_RESCUE_NONE;
932935
return labelobj;
933936
}
934937

complex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ rb_complex_set_real(VALUE cmp, VALUE r)
13511351
VALUE
13521352
rb_complex_set_imag(VALUE cmp, VALUE i)
13531353
{
1354-
RCOMPLEX_SET_REAL(cmp, i);
1354+
RCOMPLEX_SET_IMAG(cmp, i);
13551355
return cmp;
13561356
}
13571357

cont.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,10 @@ cont_new(VALUE klass)
479479

480480
static VALUE
481481
cont_capture(volatile int *stat)
482+
#if defined(__clang__) && \
483+
__clang_major__ == 3 && __clang_minor__ == 8 && __clang_patch__ == 0
484+
__attribute__ ((optnone))
485+
#endif
482486
{
483487
rb_context_t *cont;
484488
rb_thread_t *th = GET_THREAD();

debian/changelog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
ruby2.2 (2.2.6-0nkmi1) unstable; urgency=medium
2+
3+
* new upstream version
4+
* honor nocheck flag
5+
(porting d7218fd9adb2279c9e4b4f626dfeebaa34830add from debian)
6+
7+
-- Sorah Fukumori <[email protected]> Tue, 22 Nov 2016 19:19:13 +0000
8+
19
ruby2.2 (2.2.5-0nkmi2~trusty) trusty; urgency=medium
210

311
* remove deps of minitest

debian/rules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ override_dh_auto_build-arch:
6868
dh_auto_build -- main V=1
6969

7070
override_dh_auto_test-arch:
71+
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
7172
$(MAKE) TESTS="-v -j 4" V=1 check
73+
endif
7274

7375
override_dh_auto_install-arch:
7476
$(MAKE) install-nodoc V=1 DESTDIR=$(CURDIR)/debian/tmp

encoding.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,8 +821,8 @@ rb_enc_associate_index(VALUE obj, int idx)
821821
}
822822
termlen = rb_enc_mbminlen(enc);
823823
oldtermlen = rb_enc_mbminlen(rb_enc_from_index(oldidx));
824-
if (oldtermlen < termlen && RB_TYPE_P(obj, T_STRING)) {
825-
rb_str_fill_terminator(obj, termlen);
824+
if (oldtermlen != termlen && RB_TYPE_P(obj, T_STRING)) {
825+
rb_str_change_terminator_length(obj, oldtermlen, termlen);
826826
}
827827
enc_set_index(obj, idx);
828828
return obj;

0 commit comments

Comments
 (0)