Skip to content

Commit d48b4ac

Browse files
committed
Merge branch 'master-2.4' into dist/2.4/xenial
2 parents d4a97bd + f9808ab commit d48b4ac

Some content is hidden

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

65 files changed

+7877
-8929
lines changed

ChangeLog

Lines changed: 183 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,182 @@
11
------------------------------------------------------------------------
2-
r65137 | usa | 2018-10-18 00:34:55 +0900 (Thu, 18 Oct 2018) | 1 line
2+
r67394 | usa | 2019-04-01 00:03:52 +0900 (Mon, 01 Apr 2019) | 1 line
3+
4+
add tag v2_4_6
5+
------------------------------------------------------------------------
6+
r67393 | svn | 2019-04-01 00:01:14 +0900 (Mon, 01 Apr 2019) | 1 line
7+
8+
* 2019-04-01
9+
------------------------------------------------------------------------
10+
r67392 | usa | 2019-04-01 00:01:13 +0900 (Mon, 01 Apr 2019) | 6 lines
11+
12+
merge revision(s) 67201: [Backport #15650]
13+
14+
eval.c: clear internal errinfo
15+
16+
* eval.c (ruby_cleanup): clear internal error info when invoking
17+
end procs. [ruby-core:91731] [Bug #15650]
18+
------------------------------------------------------------------------
19+
r67391 | usa | 2019-03-31 23:58:24 +0900 (Sun, 31 Mar 2019) | 6 lines
20+
21+
merge revision(s) 67188: [Backport #15642]
22+
23+
io.c: chomp CR at the end of read buffer
24+
25+
* io.c (rb_io_getline_fast): chomp CR followed by LF but separated
26+
by the read buffer boundary. [ruby-core:91707] [Bug #15642]
27+
------------------------------------------------------------------------
28+
r67303 | usa | 2019-03-19 03:30:36 +0900 (Tue, 19 Mar 2019) | 2 lines
29+
30+
Applied security patches for RubyGems
31+
32+
------------------------------------------------------------------------
33+
r67154 | usa | 2019-03-01 16:57:58 +0900 (Fri, 01 Mar 2019) | 3 lines
34+
35+
merge revision(s) 65365:
36+
37+
Update for tzdata-2018f
38+
------------------------------------------------------------------------
39+
r67153 | usa | 2019-03-01 15:19:58 +0900 (Fri, 01 Mar 2019) | 2 lines
40+
41+
Get rid of "shadowing outer local varable" warning
42+
43+
------------------------------------------------------------------------
44+
r67148 | usa | 2019-02-28 23:55:05 +0900 (Thu, 28 Feb 2019) | 9 lines
45+
46+
merge revision(s) 66909: [Backport #15555]
47+
48+
tmpdir.rb: permission of user given directory
49+
50+
* lib/tmpdir.rb (Dir.mktmpdir): check if the permission of the
51+
parent directory only when using the default temporary
52+
directory, and no check against user given directory. the
53+
security is the user's responsibility in that case.
54+
[ruby-core:91216] [Bug #15555]
55+
------------------------------------------------------------------------
56+
r67147 | usa | 2019-02-28 23:52:06 +0900 (Thu, 28 Feb 2019) | 12 lines
57+
58+
merge revision(s) 62872,62873: [Backport #14621]
59+
60+
parse.y: unindent continued line
61+
62+
* parse.y (tokadd_string): stop at continued line in dedented here
63+
documents, to dedent for each lines before removing escaped
64+
newlines. [ruby-core:86236] [Bug #14621]
65+
66+
parse.y: terminator at continued line
67+
68+
* parse.y (here_document): a continuing line is not the
69+
terminator. [ruby-core:86283] [Bug #14621]
70+
------------------------------------------------------------------------
71+
r66975 | usa | 2019-02-01 11:17:14 +0900 (Fri, 01 Feb 2019) | 2 lines
72+
73+
Revert r66968
74+
75+
------------------------------------------------------------------------
76+
r66970 | usa | 2019-01-31 20:08:07 +0900 (Thu, 31 Jan 2019) | 3 lines
77+
78+
merge revision(s) 65667: [Backport #15284]
79+
80+
Fix for bison 3.2 [Bug #15284]
81+
------------------------------------------------------------------------
82+
r66969 | usa | 2019-01-31 20:03:57 +0900 (Thu, 31 Jan 2019) | 5 lines
83+
84+
merge revision(s) 66685,66686: [Backport #15495]
85+
86+
Try to update cert
87+
88+
Try to update cert (2nd try)
89+
------------------------------------------------------------------------
90+
r66968 | usa | 2019-01-31 20:02:52 +0900 (Thu, 31 Jan 2019) | 17 lines
91+
92+
merge revision(s) 64589,64593: [Backport #15041]
93+
94+
cont.c: set th->root_fiber to current fiber at fork
95+
96+
Otherwise, th->root_fiber can point to an invalid Fiber,
97+
because Fibers do not live across fork. So consider
98+
whatever Fiber is running the root fiber.
99+
100+
[ruby-core:88723] [Bug #15041]
101+
102+
cont.c (rb_fiber_atfork): th->root_fiber may not exist
103+
104+
Otherwise, bootstraptest/test_fork.rb fails with -DVM_CHECK_MODE=2
105+
106+
[Bug #15041]
107+
108+
Fixes: r64589 "cont.c: set th->root_fiber to current fiber at fork"
109+
------------------------------------------------------------------------
110+
r66967 | usa | 2019-01-31 19:59:53 +0900 (Thu, 31 Jan 2019) | 6 lines
111+
112+
merge revision(s) 65974: [Backport #15340]
113+
114+
Normalize month-mday before finding epoch
115+
116+
Especially over the year 2038, 30 Feb and so on may cause odd behavior
117+
on validating found epoch with given year-month-day [Bug #15340]
118+
------------------------------------------------------------------------
119+
r66966 | usa | 2019-01-31 19:58:49 +0900 (Thu, 31 Jan 2019) | 10 lines
120+
121+
merge revision(s) 66756: [Backport #15479]
122+
123+
Mark array as "going to be modified" in `Array#reject!`
124+
125+
Before this patch, if `reject!` is called on a shared array it can
126+
mutate the shared array rather than a copy. This patch marks the array
127+
as "going to be modified" so that the shared source array isn't
128+
mutated.
129+
130+
[Bug #15479] [ruby-core:90781]
131+
------------------------------------------------------------------------
132+
r66965 | usa | 2019-01-31 19:56:17 +0900 (Thu, 31 Jan 2019) | 7 lines
133+
134+
merge revision(s) 66242: [Backport #15387]
135+
136+
io.c (io_write_nonblock): add RB_GC_GUARD, io_fflush may switch threads
137+
138+
Since io_fflush may block on mutex or rb_io_wait_readable and
139+
switch threads, we need to ensure the `str' VALUE returned by
140+
`rb_obj_as_string` is visible to GC.
141+
------------------------------------------------------------------------
142+
r66964 | usa | 2019-01-31 19:55:37 +0900 (Thu, 31 Jan 2019) | 6 lines
143+
144+
merge revision(s) 66401: [Backport #15412]
145+
146+
Move autoload to toplevel
147+
148+
So that classes which uses Net::HTTP with https can use OpenSSL
149+
namespace for example exception classes like OpenSSL::SSL::SSLError.
150+
------------------------------------------------------------------------
151+
r66963 | usa | 2019-01-31 19:51:55 +0900 (Thu, 31 Jan 2019) | 2 lines
152+
153+
Fixed [Bug #14731]
154+
155+
------------------------------------------------------------------------
156+
r66962 | usa | 2019-01-31 19:47:59 +0900 (Thu, 31 Jan 2019) | 7 lines
157+
158+
merge revision(s) 63334: [Backport #14729]
159+
160+
object.c: raise on long invalid float string
161+
162+
* object.c (rb_cstr_to_dbl_raise): check long invalid float
163+
string more precisely when truncating insignificant part.
164+
[ruby-core:86800] [Bug #14729]
165+
------------------------------------------------------------------------
166+
r66961 | usa | 2019-01-31 19:36:30 +0900 (Thu, 31 Jan 2019) | 7 lines
167+
168+
merge revision(s) 64879: [Backport #15162]
169+
170+
transcode.c: add GC guard on raise
171+
172+
* transcode.c (econv_s_search_convpath): add GC guard to fix SEGV
173+
on raise.
174+
[Bug #15162] [ruby-core:89172]
175+
------------------------------------------------------------------------
176+
r65342 | usa | 2018-10-24 07:55:53 +0900 (Wed, 24 Oct 2018) | 2 lines
177+
178+
bump teeny
3179

4-
add tag v2_4_5
5180
------------------------------------------------------------------------
6181
r65134 | usa | 2018-10-18 00:30:28 +0900 (Thu, 18 Oct 2018) | 2 lines
7182

@@ -6002,11 +6177,11 @@ Add volatile to a suppress warning.
60026177
Without the fix, the following warning is shown:
60036178

60046179
compiling cont.c
6005-
cont.c: In function ?\226?\128?\152rb_callcc?\226?\128?\153:
6006-
cont.c:949:39: warning: passing argument 1 of ?\226?\128?\152cont_capture?\226?\128?\153 discards ?\226?\128?\152volatile?\226?\128?\153 qualifier from pointer target type [-Wdiscarded-qualifiers]
6180+
cont.c: In function 'rb_callcc':
6181+
cont.c:949:39: warning: passing argument 1 of 'cont_capture' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
60076182
volatile VALUE val = cont_capture(&called);
60086183
^
6009-
cont.c:473:1: note: expected ?\226?\128?\152int * volatile?\226?\128?\153 but argument is of type ?\226?\128?\152volatile int *?\226?\128?\153
6184+
cont.c:473:1: note: expected 'int * volatile' but argument is of type 'volatile int *'
60106185
cont_capture(int *volatile stat)
60116186
^
60126187
------------------------------------------------------------------------
@@ -6134,7 +6309,7 @@ Make `trace_running` an integer flag again
61346309
* vm_core.h (rb_vm_struct): trace_running should be a counter but
61356310
not a bit flag. [ruby-core:78514] [Bug #13011]
61366311

6137-
Author: David Rodr?\195?\173guez <[email protected]>
6312+
Author: David Rodriguez <[email protected]>
61386313
------------------------------------------------------------------------
61396314
r57001 | mrkn | 2016-12-06 22:40:31 +0900 (Tue, 06 Dec 2016) | 9 lines
61406315

@@ -7007,7 +7182,7 @@ test_fileutils.rb: Use primary group too
70077182

70087183
* test/fileutils/test_fileutils.rb (TestFileUtils#setup): Use
70097184
primary group as well as supplementary groups. based on the
7010-
patch by V?\195?\173t Ondruch at [ruby-core:78053]. [Bug #12910]
7185+
patch by Vit Ondruch at [ruby-core:78053]. [Bug #12910]
70117186

70127187
It might happen in certain environments (systemd-nspawn) that
70137188
process has no supplementary groups, but primary groups should be
@@ -8319,7 +8494,7 @@ Insure has a different meaning than ensure and we mean the latter in
83198494
this case.
83208495

83218496
*Ensure* is to do or have what is necessary for success.
8322-
Example: These blankets ensure that you?\226?\128?\153ll be warm enough.
8497+
Example: These blankets ensure that you'll be warm enough.
83238498

83248499
*Insure* is to cover with an insurance policy.
83258500
Example: I will insure my home with additional fire and flood policies.

array.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3218,6 +3218,7 @@ static VALUE
32183218
rb_ary_reject_bang(VALUE ary)
32193219
{
32203220
RETURN_SIZED_ENUMERATOR(ary, 0, 0, ary_enum_length);
3221+
rb_ary_modify(ary);
32213222
return ary_reject_bang(ary);
32223223
}
32233224

configure

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,7 @@ infodir
891891
docdir
892892
oldincludedir
893893
includedir
894+
runstatedir
894895
localstatedir
895896
sharedstatedir
896897
sysconfdir
@@ -1021,6 +1022,7 @@ datadir='${datarootdir}'
10211022
sysconfdir='${prefix}/etc'
10221023
sharedstatedir='${prefix}/com'
10231024
localstatedir='${prefix}/var'
1025+
runstatedir='${localstatedir}/run'
10241026
includedir='${prefix}/include'
10251027
oldincludedir='/usr/include'
10261028
docdir='${datarootdir}/doc/${PACKAGE}'
@@ -1273,6 +1275,15 @@ do
12731275
| -silent | --silent | --silen | --sile | --sil)
12741276
silent=yes ;;
12751277

1278+
-runstatedir | --runstatedir | --runstatedi | --runstated \
1279+
| --runstate | --runstat | --runsta | --runst | --runs \
1280+
| --run | --ru | --r)
1281+
ac_prev=runstatedir ;;
1282+
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1283+
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1284+
| --run=* | --ru=* | --r=*)
1285+
runstatedir=$ac_optarg ;;
1286+
12761287
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
12771288
ac_prev=sbindir ;;
12781289
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1410,7 +1421,7 @@ fi
14101421
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
14111422
datadir sysconfdir sharedstatedir localstatedir includedir \
14121423
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1413-
libdir localedir mandir
1424+
libdir localedir mandir runstatedir
14141425
do
14151426
eval ac_val=\$$ac_var
14161427
# Remove trailing slashes.
@@ -1563,6 +1574,7 @@ Fine tuning of the installation directories:
15631574
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
15641575
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
15651576
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1577+
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
15661578
--libdir=DIR object code libraries [EPREFIX/lib]
15671579
--includedir=DIR C header files [PREFIX/include]
15681580
--oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -10788,7 +10800,7 @@ else
1078810800
We can't simply define LARGE_OFF_T to be 9223372036854775807,
1078910801
since some C++ compilers masquerading as C compilers
1079010802
incorrectly reject 9223372036854775807. */
10791-
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10803+
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1079210804
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
1079310805
&& LARGE_OFF_T % 2147483647 == 1)
1079410806
? 1 : -1];
@@ -10834,7 +10846,7 @@ else
1083410846
We can't simply define LARGE_OFF_T to be 9223372036854775807,
1083510847
since some C++ compilers masquerading as C compilers
1083610848
incorrectly reject 9223372036854775807. */
10837-
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10849+
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1083810850
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
1083910851
&& LARGE_OFF_T % 2147483647 == 1)
1084010852
? 1 : -1];
@@ -10858,7 +10870,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1085810870
We can't simply define LARGE_OFF_T to be 9223372036854775807,
1085910871
since some C++ compilers masquerading as C compilers
1086010872
incorrectly reject 9223372036854775807. */
10861-
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10873+
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1086210874
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
1086310875
&& LARGE_OFF_T % 2147483647 == 1)
1086410876
? 1 : -1];
@@ -10903,7 +10915,7 @@ else
1090310915
We can't simply define LARGE_OFF_T to be 9223372036854775807,
1090410916
since some C++ compilers masquerading as C compilers
1090510917
incorrectly reject 9223372036854775807. */
10906-
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10918+
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1090710919
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
1090810920
&& LARGE_OFF_T % 2147483647 == 1)
1090910921
? 1 : -1];
@@ -10927,7 +10939,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1092710939
We can't simply define LARGE_OFF_T to be 9223372036854775807,
1092810940
since some C++ compilers masquerading as C compilers
1092910941
incorrectly reject 9223372036854775807. */
10930-
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10942+
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1093110943
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
1093210944
&& LARGE_OFF_T % 2147483647 == 1)
1093310945
? 1 : -1];

cont.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
cont.c -
44
5-
$Author: nagachika $
5+
$Author: usa $
66
created at: Thu May 23 09:03:43 2007
77
88
Copyright (C) 2007 Koichi Sasada

debian/Dockerfile.trusty

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ FROM ubuntu:14.04
55
ENV NKMIBUILDREV=1
66

77
ENV DEBIAN_FRONTEND=noninteractive
8+
89
RUN mkdir -p /build \
910
&& apt-get update \
10-
&& apt-get install -y debhelper dh-make devscripts gnupg2 vim equivs
11+
&& apt-get install -y debhelper dh-make devscripts gnupg2 vim equivs curl
1112
RUN mkdir -p -m700 /root/.gnupg
1213

14+
RUN curl -L 'https://sorah.jp/packaging/debian/3F0F56A8.pub.txt' | apt-key add -
15+
RUN apt-get install -y apt-transport-https
16+
RUN echo "deb [arch=amd64] https://cache.ruby-lang.org/lab/sorah/deb/ trusty main" > /etc/apt/sources.list.d/sorah-ruby.list && apt-get update
17+
1318
ADD control /control
1419
RUN mk-build-deps -i --t 'apt-get -y -o Debug::pkgProblemResolver=yes --no-install-recommends' /control
1520
RUN apt-get install -y tzdata

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
ruby2.4 (2.4.6-0nkmi1~dist) unstable; urgency=medium
2+
3+
* 2.4.6
4+
5+
-- Sorah Fukumori <[email protected]> Sat, 13 Jul 2019 01:31:04 +0000
6+
17
ruby2.4 (2.4.5-0nkmi1~dist) unstable; urgency=medium
28

39
* Ruby 2.4.5

0 commit comments

Comments
 (0)