summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-10-15merge revision(s) b2491783986084770f6f97552f27b868622730cf:nagachika
Install gems `lib` directory to build path --- ext/extmk.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
2022-10-15merge revision(s) a2c66f52f402cb58372e271226f3341065561e53:nagachika
Make dependency-free gemspec files The default gems have not been installed yet in the build directory, bundled gems depending on them can not work. As those dependencies should be usable there even without rubygems, make temporary gemspec files without the dependencies, and use them in the build directory. --- ext/extmk.rb | 11 +++++++++++ tool/gem-unpack.rb | 4 ++++ 2 files changed, 15 insertions(+)
2022-10-15merge revision(s) e1a4e44f14482814a0540ae0a4b31d858ff56f53:nagachika
Extract gemspec files to each gem directories Since extension libraries can not be built in the source directory, rubygems warns gems have extension libraries as the extensions are not built. To order to suppress this warnings, extract such gemspec files under each gem directories instead of the common `specifications` directory. --- tool/gem-unpack.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
2022-10-15merge revision(s) bb0a22a8c05994396aa316c242ff8816d8d0a259:nagachika
Obey spec file locations to rubygems --- common.mk | 3 ++- defs/gmake.mk | 2 +- tool/gem-unpack.rb | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-)
2022-10-15merge revision(s) 1150a54afe98171657869bd2eafd82fda59893b1:nagachika
Use `File::PATH_SEPARATOR` for the portability --- tool/test-bundled-gems.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
2022-10-15merge revision(s) 76bae60d9b967415c5930c2c5906e14c8362a6dd: [Backport #19038]nagachika
[Bug #19038] Fix corruption of generic_iv_tbl when compacting When the generic_iv_tbl is resized up, rebuild_table performs allocations that can trigger GC. If autocompaction is enabled, then moved objects are removed from and inserted into the generic_iv_tbl. This may cause another call to rebuild_table to resize the generic_iv_tbl. When returning back to the original rebuild_table, some of the data may be stale, causing the generic_iv_tbl to be corrupted. This commit changes rebuild_table to only read data from the st_table after the allocations have completed. Co-Authored-By: Matt Valentine-House <matt@eightbitraptor.com> --- st.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
2022-10-10merge revision(s) 7f4345639b09395f2ab423d1cdac6f2ddf0707de:nagachika
fake.rb: Set prefix to `$topdir` Not to refer outside the top build directory from rbconfig. --- tool/fake.rb | 1 + 1 file changed, 1 insertion(+)
2022-10-09Revert "sync tool/rbinstall.rb to current master."nagachika
This reverts commit bda0b8c09331111f38af98291c201595ce3a2872.
2022-10-09sync tool/rbinstall.rb to current master.nagachika
2022-10-08bump patchlevelnagachika
2022-10-08* 2022-10-08 [ci skip]git
2022-10-08Merge RubyGems-3.3.23 and Bundler-2.3.23Hiroshi SHIBATA
2022-10-06merge revision(s) 5101671cbc008230cae7b5c2190b2f6938a19f74:nagachika
Disable parallel built in test-bundled-gems --- common.mk | 2 +- tool/test-bundled-gems.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
2022-10-05update debug.gem commit hash to cease nightly packaging failures.nagachika
2022-10-04update debug.gem commit hash to cease nightly packaging failures.nagachika
2022-10-03merge revision(s) b91f685a2615ef957210f5e3a50c0e8299c20c55: [Backport #18435]nagachika
Mark struct METHOD->owner for the GC * Fixes https://github.com/ruby/ruby/commit/6b7d32a5e5 * See [Bug #18729] --- proc.c | 2 ++ 1 file changed, 2 insertions(+)
2022-10-01bump patchlevelnagachika
2022-10-01Re-enable example for Europe/Amsterdam pre-1970 timeHiroshi SHIBATA
* https://github.com/ruby/spec/pull/939 * https://github.com/ruby/ruby/pull/6393
2022-10-01bump patchlevelnagachika
2022-10-01Initialize Objective-C classes before fork() for macOS 13Yuta Saito
Since macOS 13, CFString family API used in `rb_str_append_normalized_ospath` may internally use Objective-C classes (`NSTaggedPointerString` and `NSPlaceholderMutableString`) for small strings. On the other hand, Objective-C classes should not be used for the first time in a `fork()`'ed but not `exec()`'ed process. Violations for this rule can result deadlock during class initialization, so Objective-C runtime conservatively crashes on such cases by default. Therefore, we need to use CFString API to initialize Objective-C classes used internally *before* `fork()`. For more details, see https://bugs.ruby-lang.org/issues/18912
2022-10-01[Bug #19005] dynamic_lookup linker option in external librariesNobuyoshi Nakada
The warning against `-undefined dynamic_lookup` is just a warning yet, and many gems seem to pay no attention to warnings. Until it fails actually, keep it as a migration path, except for standard extension libraries and bundled extension gems.
2022-10-01-undefined dynamic_lookup is obsoleteNobuyoshi Nakada
2022-10-01merge revision(s) ↵nagachika
94cea3e4d0a60326bd95be762819eed8ccd59ca6,aa53d69aa21c4dfa2a78a1cec5cb34e9697b3d30,6b7d32a5e54088b6b4014529bbf2b4b8c1a96029,c6319026caa6c8f0f569f80011e8502349a04b14,aa490f9442c32cd0e1e449ac817f410bd5924c8b: [Backport #18435] Fix {Method,UnboundMethod}#super_method for zsuper methods * We need to resolve the zsuper method first, and then look the super method of that. --- proc.c | 25 ++++++++++++----------- spec/ruby/core/method/super_method_spec.rb | 15 +++----------- spec/ruby/core/unboundmethod/super_method_spec.rb | 16 ++++++--------- 3 files changed, 22 insertions(+), 34 deletions(-) Add specs for {Method,UnboundMethod}#owner of a zsuper method --- spec/ruby/core/method/owner_spec.rb | 6 ++++++ spec/ruby/core/unboundmethod/owner_spec.rb | 7 +++++++ 2 files changed, 13 insertions(+) Resolve zsuper method during lookup but preserve owner separately * See https://bugs.ruby-lang.org/issues/18729#note-34 * See [Bug #18729] --- proc.c | 109 +++++++++++++++++++++++++---------------------- test/ruby/test_method.rb | 66 +++++++++++++++++++++++----- 2 files changed, 114 insertions(+), 61 deletions(-) Extend tests for a zsuper method of which the method it resolved to has been removed --- test/ruby/test_method.rb | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Reduce diff to proc.c @ b0b9f7201acab05c2a3ad92c3043a1f01df3e17f * So it's easy to review https://github.com/ruby/ruby/pull/6242 + https://github.com/ruby/ruby/pull/6467 and there are less changes overall. --- proc.c | 76 ++++++++++++++++++------------------------------ test/ruby/test_method.rb | 7 +++-- 2 files changed, 34 insertions(+), 49 deletions(-)
2022-09-25merge revision(s) cf7d07570f50ef9c16007019afcff11ba6500d70: [Backport #18938]nagachika
Dump non-ASCII char as unsigned Non-ASCII code may be negative on platforms plain char is signed. --- ext/objspace/objspace_dump.c | 2 +- test/objspace/test_objspace.rb | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-)
2022-09-25merge revision(s) ↵nagachika
e2b47b832f53b2fd0626774a573a22c15a933c64,f512df73986c74e2f4bd65ca642879a0618da213,2e25b85a7e4268676fcdf17b5975c2fd60066ce1: [Backport #19014] configure.ac: Manage OPT_DIR better (#6367) * Check rpath flag earlier * Manage OPT_DIR at once --- configure.ac | 97 +++++++++++++++++++++++++++--------------------------------- 1 file changed, 43 insertions(+), 54 deletions(-) configure.ac: Add --with-gmp-dir (#6366) Add the `--with-gmp-dir` to specify the prefix directory of GMP. The`--without-gmp` option is preserved for convenience. It can be used to force to reject using GMP even if the `--with-gmp-dir` option is specified. --- configure.ac | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) configure.ac: Apply suggestions from code review in #6366 Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
2022-09-25merge revision(s) 70f69f85395f5735429cd45136d7de2742f08b72: [Backport #18941]nagachika
[ruby/fileutils] Fix mkdir_p hanging on Windows when trying to create a file on a offline drive https://github.com/ruby/fileutils/commit/9cc6a082d7 --- lib/fileutils.rb | 2 +- test/fileutils/test_fileutils.rb | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-)
2022-09-25merge revision(s) 7f81f335478a3ca873f34e3bc0af6927819d3e84: [Backport #18734]nagachika
Return `false` where sticky-bit is not provided [Bug #18734] --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2022-09-25merge revision(s) a0040af6715d85f416f1282588974e151a8164eb: [Backport #18732]nagachika
[Win32] Fix mode of character/pipe device stat [Bug #18732] --- test/ruby/test_file_exhaustive.rb | 33 ++++++++++++++++++++++++++++----- win32/win32.c | 22 ++++++++++++++++------ 2 files changed, 44 insertions(+), 11 deletions(-)
2022-09-25merge revision(s) 86d061294d3cc1656e18d0e1fd4b4f290da16944: [Backport #18928]nagachika
[Bug #18928] Fix crash in WeakMap In wmap_live_p, if is_pointer_to_heap returns false, then the page is either in the tomb or has already been freed, so the object is dead. In this case, wmap_live_p should return false. --- gc.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-)
2022-09-25merge revision(s) 68903df6f6fc548f3bf68fb09ee8b2495dcd28f0: [Backport #18922]nagachika
[Bug #18922] Normalize time at 24:00:00 UTC --- test/ruby/test_time.rb | 2 ++ time.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+)
2022-09-25merge revision(s) 65ae2bb2e045aa8b668d3c30515f5a6cb3eb68ad: [Backport #18902]nagachika
Thread#value: handle threads killed by a fork [Bug #18902] When a thread is killed because we forked, the `value` if left to `Qundef`. Returning it woudl crash the VM. --- test/ruby/test_thread.rb | 14 ++++++++++++++ thread.c | 4 ++++ 2 files changed, 18 insertions(+)
2022-09-20merge revision(s) ↵nagachika
035978d7be9bc3819f42f964fe6193d983cce63f,2e324b645e16e67c14de80ea34b1d61165045f22,b6a9e683917745df2822a611fce64df9ae8090a7: Pass job-server FDs to bundler tests --- common.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Manage paths for bundler tests --- common.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) Add noarch-fake.rb target `yes-fake` depends on it when `arch=noarch` is given, but the rule to generate it from fake.rb.in is ignored now. --- common.mk | 3 +++ 1 file changed, 3 insertions(+)
2022-09-20merge revision(s) c8d94d2797f798e2666a057bb1940e1ffe41b717:nagachika
Now test-bundler nees fake.rb --- common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2022-09-20merge revision(s) ↵nagachika
8794cc62899c6447fa4451489b9e308e2a890595,3ff53c8e04ecc91e0190de6d5950ecce2a2ea188: Tentatively put macOS CIs back with adding macOS 12 --- .github/workflows/macos.yml | 99 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 .github/workflows/macos.yml Remove macOS 10.15 from CI macOS 10.15 is deprecated on GitHub Actions and will have periodic brownouts. See actions/virtual-environments#5583. --- .github/workflows/macos.yml | 1 - 1 file changed, 1 deletion(-)
2022-09-17Merge RubyGems-3.3.22 and Bundler-2.3.22Hiroshi SHIBATA
2022-09-17Merge openssl-3.0.1Kazuki Yamaguchi
The changes can be found at: https://github.com/ruby/openssl/compare/v3.0.0...v3.0.1
2022-09-17merge revision(s) de51bbcb544651fb499dd4cc757a2bf6f3b439cf: [Backport #18816]nagachika
Use VM Lock when mutating waiting threads list `rb_thread_wait_for_single_fd` needs to mutate the `waiting_fds` list that is stored on the VM. We need to delete the FD from the list before returning, and deleting from the list requires a VM lock (because the list is a global). [Bug #18816] [ruby-core:108771] Co-Authored-By: Alan Wu <alanwu@ruby-lang.org> --- thread.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
2022-09-16merge revision(s) a28e7871e54d7a87afbfd686291c500d71edb7cb:nagachika
Update bundled_gems Try latest patch to avoid some race on Mac OS X. --- gems/bundled_gems | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2022-09-10merge revision(s) b7577b4d9e0fd92522fc30e10fe712e245adee8c:nagachika
The tzdata 2022c removed Amsterdam Mean Time --- spec/ruby/core/time/shared/local.rb | 2 ++ 1 file changed, 2 insertions(+)
2022-09-10merge revision(s) 261753249996d46e00c2549fff2527816bf387db: [Backport #18936]nagachika
Free cached mark stack chunks when freeing objspace Cached mark stack chunks should also be freed when freeing objspace. --- gc.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-)
2022-09-10merge revision(s) db0e0dad1171456253ebd899e7e878823923d3d8: [Backport #18990]nagachika
Fix unexpected "duplicated key name" error in paren-less one line pattern matching [Bug #18990] --- parse.y | 16 ++++++++++++---- test/ruby/test_pattern_matching.rb | 12 ++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-)
2022-09-04revision up for https://github.com/ruby/ruby/pull/6296nagachika
2022-09-04Backport https://github.com/ruby/ruby/pull/6193Hiroshi SHIBATA
Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
2022-09-04merge revision(s) ↵nagachika
ef525b012a709077ea2797e8642fae0b61234063,dc9a13abeef5a2b936fbb55edc112b8b382a05e7: [Backport #18775] Explicit handling of frozen strings in `IO::Buffer#for`. (#5892) --- io_buffer.c | 122 +++++++++++++++++++++++++++++++++++--------- test/ruby/test_io_buffer.rb | 36 +++++++------ 2 files changed, 117 insertions(+), 41 deletions(-) Fix rdoc of IO::Buffer [ci skip] --- io_buffer.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-)
2022-09-04merge revision(s) 6d3f447aecfb56f7d3edbdf9cc68e748e150d7d8: [Backport #18631]nagachika
Fix multiplex backreferencs near end of string in regexp match Idea from Jirka Marsik. Fixes [Bug #18631] --- regexec.c | 6 ++++-- test/ruby/test_regexp.rb | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-)
2022-09-04merge revision(s) d8189ed23f02dd197453279aeee9be1785337d4f: [Backport #18670]nagachika
Return only captured range in `MatchData` [Bug #18670] --- re.c | 2 +- test/ruby/test_regexp.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
2022-09-03revision up for https://github.com/ruby/ruby/pull/6125nagachika
2022-09-03Bump typeprof version to 0.21.3Hiroshi SHIBATA
2022-09-03Bump rbs version to 2.6.0+Hiroshi SHIBATA
2022-09-03Merge csv-3.2.5Hiroshi SHIBATA