summaryrefslogtreecommitdiff
path: root/tool
AgeCommit message (Collapse)Author
2025-12-15Add predicates for platformsNobuyoshi Nakada
2025-10-25[ruby/rubygems] Bump up vendored uri to 0.13.3nagachika
2025-10-08post_push.yml: Backport commit-mail to ruby_3_3 (#14782)Takashi Kokubun
2025-05-01tool/downloader.rb: Stop caching already existing filesYuta Saito
Previously, the script was caching any file already present in the destination directory, regardless of its origin. This caused issues when the directory contained files copied from external sources like `autoreconf --install`. For example: 1. `./autogen.sh --install` copies `config.guess` and `config.sub` from the system to `./tool`. 2. `ruby tool/downloader.rb -d tool -e gnu config.guess config.sub` treats those files as if they were downloaded and caches them. 3. Removing the files: `rm tool/config.guess tool/config.sub`. 4. Running the downloader again, it mistakenly restores the cached files instead of downloading fresh versions.
2025-02-10Support `git ls-files ...`.split style for file list of gemspecHiroshi SHIBATA
2024-11-20Lock sinatra-4.0Hiroshi SHIBATA
2024-09-30-l option of 7z is unknown switch with the `ubuntu-latest`.Hiroshi SHIBATA
https://github.com/ruby/actions/actions/runs/11095032727/job/30823174026#step:3:349
2024-09-25Merge RubyGems-3.5.20 and Bundler-2.5.20Hiroshi SHIBATA
2024-09-25Merge RubyGems-3.5.19 and Bundler-2.5.19Hiroshi SHIBATA
2024-09-02Sync tool/lib/core_assertions.rb from masterTakashi Kokubun
It seems necessary to pass test-bundled-gems with REXML.
2024-08-21Backport warning feature for bundled gems from master (#11420)Hiroshi SHIBATA
* Make sure to always use the right `warn` * lib/bundled_gems.rb: more reliable caller detection The `2` skipped frames went out of sync and now it should be `3`. Rather than just update the offset, we can implement a way that is adaptative as long as all require decorators are also called require. Also we should compute the corresponding `uplevel` otherwise the warning will still point decorators. Co-authored-by: "Hiroshi SHIBATA" <hsbt@ruby-lang.org> * Warn ostruct for Ruby 3.5 * Warn pstore for Ruby 3.5 * Mark rdoc as bundled gems at Ruby 3.5 * Warn to use win32ole without Gemfile for Ruby 3.5 * EXACT list is mostly same as SINCE list on bundled gems. * Mark to warn fiddle as bundled gems for Ruby 3.5 * Mark to warn logger as bundled gems for Ruby 3.5 * We should use uplevel:2 in another case. Like the following scenario with bootsnap, that frames are same or smaller than frame_to_skip(=3). --- "/Users/hsbt/.local/share/rbenv/versions/3.3-dev/lib/ruby/3.3.0/bundled_gems.rb:69:in `block (2 levels) in replace_require'" "/Users/hsbt/.local/share/gem/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'" "test_warn_bootsnap.rb:11:in `<main>'" --- * Delete unnecessary rubocop disable comment * Show correct script name with sub-feature case * Skip to show script name with using ruby -r option * Don't show script name when bundle exec and call ruby script directly. * Pick word fix from 34adc07372c10170b8ca36111d216cbd8e4699be --------- Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net> Co-authored-by: Jean Boussier <jean.boussier@gmail.com> Co-authored-by: Kentaro Takeyama <75117116+obregonia1@users.noreply.github.com>
2024-07-28[Bug #20088] Fix ARCH_FLAG for cross compilingNobuyoshi Nakada
2024-06-20[Bug #20581][3.3] Fix unintentional truncation for dependencies of bundled ↵Hiroshi SHIBATA
gems (#11006) * Try to load original gemspec from `.bundle/gems/foo-x.y.z/foo.gemspec`. `.bundle/specification/foo-x.y.z.gemspec` may be changed our toolchain * Try to find gemspec from `.bundle/specifications * Adjust indent
2024-06-11redmine-backporter.rb: Prepend commit: to shorter revsTakashi Kokubun
Some of the places in Redmine (e.g. Associated revisions) print revisions using only 8 characters. Even when I copied a revision from there, I want to prepend commit: in the message.
2024-06-04Merge RubyGems 3.5.11 and Bundler 2.5.11 for Ruby 3.3 (#10870)Hiroshi SHIBATA
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2024-06-04merge revision(s) 9f708d48f6df37ee9600db9d51b57a156609a13b, ↵Takashi Kokubun
0301473fb523c71d8cdc4966971f31f502001185, 874e9fc34d728f8e2444d15aa6759befd217c464, 7f0e26b7f99bf76408569892ce20318501f74729: [Backport #20516] Clear runtime dependencies if default gems is specified. The current build system uses runtime dependencies from only `.bundle` directory. We shouldn't install runtime dependencies from rubygems.org when `make test-bundled-gems` is invoked. Fixed dependencies list format Don't need to remove ruby2_keywords dependency from drb Re-use strscan with ruby repo
2024-06-04merger.rb: Put spaces in between revisionsTakashi Kokubun
so that they are linked correctly on GitHub
2024-05-30merge revision(s) ↵Takashi Kokubun
22e4eeda6561693367fc7a00b92b90f46b09cabd,1ab7c412d2e3880a7ad233c32e93961888f8145c: [Backport #20515] ci: Test whether GMP is working in compilers.yml (#10875) Avoid reoccurence of [Bug #20515] Requires https://github.com/ruby/ruby/pull/10876 since 18eaf0be905e3e251423b42d6f4e56b7cae1bc3b bug: https://bugs.ruby-lang.org/issues/20515 RUBY_CHECK_HEADER didn't define HAVE_{header-file} (#10876) --with-gmp is not working at all because HAVE_GMP_H was missing since 18eaf0be90. [Bug #20515] bug: https://bugs.ruby-lang.org/issues/20515 follow-up: https://bugs.ruby-lang.org/issues/20494 follow-up: 18eaf0be905e3e251423b42d6f4e56b7cae1bc3b follow-up: https://github.com/ruby/ruby/pull/10805
2024-05-29merge revision(s) 18eaf0be905e3e251423b42d6f4e56b7cae1bc3b: [Backport #20494]Takashi Kokubun
[Bug #20494] Search non-default directories for GMP Co-Authored-by: lish82 (Hiroki Katagiri)
2024-05-29Skip under_gc_compact_stress on s390x (#10073)Takashi Kokubun
2024-05-29Sort backport revisions by commit timestampsTakashi Kokubun
2024-05-29Skip a flaky test in RBSTakashi Kokubun
2024-05-28merger.rb: Don't ask "conflicts resolved?" if not neededTakashi Kokubun
2024-05-28redmine-backporter.rb: Prepend commit: to every revisionTakashi Kokubun
2024-05-28redmine-backporter.rb: Remove an unneeded spaceTakashi Kokubun
from #backport_command_string I don't want to leave unneeded spaces in the command history by copy-pasting the entire line.
2024-05-28merger.rb: Auto-detect tickets when --ticket is not givenTakashi Kokubun
2024-05-28merger.rb: Drop an obsoleted command from helpTakashi Kokubun
It was needed only for SVN, and we dropped SVN support.
2024-05-28merger.rb: Use commit: prefix in more placesTakashi Kokubun
2024-05-28merger.rb: Improve the help messageTakashi Kokubun
It wasn't clear whether the backport command takes a commit hash or a ticket number.
2024-05-28Sync merger.rb from masterTakashi Kokubun
2024-05-28Sync redmine-backporter.rb from masterTakashi Kokubun
2024-05-28Fix extension installer for out-of-place buildHiroshi SHIBATA
https://github.com/ruby/ruby/pull/9673#issuecomment-2019028293
2024-05-28Guard makefile target at cross-buildHiroshi SHIBATA
http://rubyci.s3.amazonaws.com/crossruby/crossruby-master-aarch64/log/20240325T041917Z.fail.html.gz
2024-05-28Use load_gemspec instead of Gem::Specification.load.Hiroshi SHIBATA
We need to purge `git ls-files` from gemspec in default gems.
2024-05-28Consider extensions in gems outside of ext/David Rodriguez
2024-05-28Extract `root` helperDavid Rodriguez
It holds the root directory for each type of default gem (ext/ or lib/).
2024-05-28Consider `target_prefix` in extension MakefilesDavid Rodriguez
2024-05-28Consistently put requirable features in default gemspecs file listDavid Rodríguez
2024-05-28Fix gemspec file list for extension gemsDavid Rodríguez
So that it also includes requirable features provided by extensions.
2024-05-28Simplify FileCollector interfaceDavid Rodriguez
2024-05-28Use `$ext_build_dir` consistentlyDavid Rodriguez
Instead of hardcoded "ext".
2024-05-28[Bug #20450] Remove rubyarchdir from bootsnap pathsEugene Kenny
2024-05-28Added test case for bundled gems warning with -r option.Hiroshi SHIBATA
This is for 76914d474d93b7485973c3bca4fa43b59f5bd383
2024-05-28Bootsnap and Zeitwerk are working correctly nowHiroshi SHIBATA
2024-05-28Add newline each test scriptHiroshi SHIBATA
2024-05-28Added test script for bundled_gems.rb with zeitwerkHiroshi SHIBATA
2024-04-16Merge RubyGems 3.5.9 and Bundler 2.5.9 (Fixed CI at Ruby 3.3) (#10348)Hiroshi SHIBATA
* Merge RubyGems-3.5.6 and Bundler-2.5.6 * Merge RubyGems-3.5.7 and Bundler-2.5.7 * Merge RubyGems-3.5.8 and Bundler-2.5.8 * Partly reverted about https://github.com/rubygems/rubygems/pull/7483 * Merge RubyGems-3.5.9 and Bundler-2.5.9
2024-02-05Merge RubyGems 3.5.5 and Bundler 2.5.5 (#9676)Hiroshi SHIBATA
* Merge RubyGems-3.5.4 and Bundler-2.5.4 * Merge RubyGems-3.5.5 and Bundler-2.5.5 * Make tests play with upstream Ruby tests CI broke in https://github.com/ruby/ruby/pull/9604 because if any Ruby tests run `require 'net/http'`, they will pollute the `$LOADED_FEATURES` for the RubyGems tests. We can fix this by renaming the test default gem from `net-http` to `my-http`. See https://github.com/rubygems/rubygems/pull/7379#issuecomment-1901241299 for more details. --------- Co-authored-by: Stan Hu <stanhu@gmail.com>
2024-02-04merge revision(s) 18573b8d054f655e3e8b24902985bf4028f88810: [Backport ↵NARUSE, Yui
#20178] (#9822) Avoid reading unused lvars in Primitive.cexpr Previously on builds with optimizations disabled, this could result in an out of bounds read. When we had all of: * built with -O0 * Leaf builtin * Primitive.mandatory_only * "no args builtin", called by vm_call_single_noarg_inline_builti * The stack is escaped to the heap via binding or a proc This is because mk_builtin_loader generated reads for all locals regardless of whether they were used and in the case we generated a mandatory_only iseq that would include more variables than were actually available. On optimized builds, the invalid accesses would be optimized away, and this also was often unnoticed as the invalid access would just hit another part of the stack unless it had been escaped to the heap. The fix here is imperfect, as this could have false positives, but since Primitive.cexpr! is only available within the cruby codebase itself that's probably fine as a proper fix would be much more challenging (the only false positives we found were in rjit.rb). Fixes [Bug #20178] Co-authored-by: Adam Hess <HParker@github.com> --- bootstraptest/test_method.rb | 9 +++++++++ tool/mk_builtin_loader.rb | 6 ++++++ 2 files changed, 15 insertions(+)
2024-01-30merge revision(s) e12d4c654e3cb7a4473014610bc3bae41aaf811e: [Backport #20104]NARUSE, Yui
Don't create T_MATCH object if /regexp/.match(string) doesn't match Fixes [Bug #20104] --- re.c | 9 ++++++--- test/ruby/test_regexp.rb | 12 ++++++++++++ tool/lib/envutil.rb | 8 ++++++++ 3 files changed, 26 insertions(+), 3 deletions(-)