summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
AgeCommit message (Collapse)Author
2025-02-10Support `git ls-files ...`.split style for file list of gemspecHiroshi SHIBATA
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-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".
2023-03-27Use gemspec that keeps original dependenciesHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7321
2023-03-06s/mjit/rjit/Takashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/7462
2023-01-18Make installation messages verbose a little [ci skip]Nobuyoshi Nakada
2022-11-21Use class methods of `File` over `Kernel.open` and `IO.read`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6777
2022-09-28Install all file trees for lldb [ci skip]Nobuyoshi Nakada
It is no longer single lldb_cruby.py only.
2022-08-17Make date in installed gemspec files stableNobuyoshi Nakada
Set `date` member to `RUBY_RELEASE_DATE` instead of the date at the build time, to make installed files reproducible.
2022-08-17Refactor `RbInstall::Specs::FileCollector`Nobuyoshi Nakada
- Split into `Ext` and `Lib` classes. - `Ext#files` should not include built extension libraries. - `Ext#files` should include scripts under its own `lib`. - `Lib#files` should be prefixed with `lib/`.
2022-08-12No bundled gems to be installed from gem nowNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6234
2022-08-12All extensions in bundled gems are built by build-ext nowNobuyoshi Nakada
`RbInstall::GemInstaller#build_extensions` has nothing to do. Notes: Merged: https://github.com/ruby/ruby/pull/6234
2022-08-07Fix files for gemspec files direct-under libNobuyoshi Nakada
Collected `files` lacked `lib` prefix. Notes: Merged: https://github.com/ruby/ruby/pull/6219 Merged-By: nobu <nobu@ruby-lang.org>
2022-07-14Try to install also gemspec files under gem directoriesNobuyoshi Nakada
Gemspec files having extension libraries are placed under each gem directories now. Notes: Merged: https://github.com/ruby/ruby/pull/6130
2022-05-13Stop `build_extensions` when DESTDIR setKazuhiro NISHIYAMA
Try to fix `make install without root privilege` failures on snapshot CIs. example: https://github.com/ruby/actions/actions/runs/2315349280
2022-04-22rbinstall: Also do `Gem.ruby` patching for unpacked bundled gemsAlan Wu
Pointing `Gem.ruby` to the newly installed ruby gives mkmf the right inputs to build extensions in bundled gems. Previously, this patching was only done for compressed bundled gems. This patch also prevents `tool/fake.rb` from propagating to the child process running mkmf for the native extension. The way `tool/fake.rb` changes mkmf variables using `Kernel#trace_var` created spooky action at a distance which made debugging difficult. AppVeyor Windows CI started to fail starting with 8a3663789c52ec5635194656af6b69d3d03120ee because it enabled extension building for bundled gems on mswin. This patch should address the CI failures. Notes: Merged: https://github.com/ruby/ruby/pull/5838
2022-04-16Fix bundled gems installation when relative loadingNobuyoshi Nakada
2022-04-13Skip build extensions again on cross compiling tooKazuhiro NISHIYAMA
2022-04-13Skip build extensions again on mswin and mingwKazuhiro NISHIYAMA
2022-04-13Enabled to build extensions with the bundled gems againKazuhiro NISHIYAMA
https://github.com/ruby/ruby/commit/cbb115213c42f15638ef119eb20c4d3106eb8b1a https://github.com/ruby/ruby/commit/5c1b76a3a55afeb07116bbd3492303c6b6cd890d
2022-04-07Install built gem extension binariesNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5774
2022-01-06tool/rbinstall.rb: instal ruby.wasm produced by EmscriptenYuta Saito
Notes: Merged: https://github.com/ruby/ruby/pull/5370
2021-12-21rbinstall.rb: install ext only when it's configured [Bug #18414]Yuta Saito
Notes: Merged: https://github.com/ruby/ruby/pull/5297
2021-12-21Fix location of extensions in bundled gems when static-linked-extNobuyoshi Nakada
Install bundled gem extension files to the gem extension directory under DESTDIR, when static-linked-ext as well as non-static case. Notes: Merged: https://github.com/ruby/ruby/pull/5308
2021-12-16Install gemspec even though no .rb and no .soYuta Saito
When building with --with-static-linked-ext, some exts without rb file doesn't produce neither .so or .rb under .ext/common. Therefore, change rbinstall.rb to install gemspec even if there is no .so or .rb for that case. Notes: Merged: https://github.com/ruby/ruby/pull/5206
2021-11-24No need to link and install .pdb anymoreAlan Wu
With /Z7, no .pdb file is generated, so trying to link it during build fails on my machine even though it's okay on CI. By the way, in my local testing, no .pdb is generated in cwd at runtime even without the /Fd option. I guess we can pass it just in case. Notes: Merged: https://github.com/ruby/ruby/pull/5058
2021-11-05Skip bundled gem with an extension library under with-static-linked-extYusuke Endoh
.. mainly to fix emscripten CI http://rubyci.s3.amazonaws.com/crossruby/crossruby-master-wasm64_emscripten/log/20211104T024621Z.fail.html.gz Notes: Merged: https://github.com/ruby/ruby/pull/5078
2021-10-30Get rid of exponential backtracks found by CodeQLNobuyoshi Nakada
Since these regexps are used at build/installation, they are not vulnerabilities. Notes: Merged: https://github.com/ruby/ruby/pull/5056
2021-10-05introduce debug.gemKoichi Sasada
For the `test-bundled-gems`, make `debug.so` with extconf.rb and `make` command directly because `rake-compiler` assume ruby is installed (but `test-bundled-gems` can run without installation). Notes: Merged: https://github.com/ruby/ruby/pull/4804
2021-10-05Enabled to build extensions with the bundled gemsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/4804
2021-10-04Fix a typoNobuyoshi Nakada
2021-09-08[Misc #18153] Install debug symbol files/directories by the optionNobuyoshi Nakada
2021-07-08rbinstall.rb: just call File.basename directlyNobuyoshi Nakada
2021-07-01rbinstall.rb: get rid of making directories when dryrunNobuyoshi Nakada
2021-05-21Remove short options with argument [Bug #17870]Nobuyoshi Nakada
Remove GNU make `-O` and `-W` options which are short but followed by an argument, so that `$mflags.set?(?n)` does not return `true` wrongly.
2021-04-19Added the specific files to the default gems like net-http and optparseHiroshi SHIBATA
2021-04-19Fix the wrong file detection for net-*.gemspecHiroshi SHIBATA
[Bug #17476][ruby-core:101724]
2021-04-15Workaround for installation failures on macOSNobuyoshi Nakada
2021-04-10rbinstall.rb: record default gem filesNobuyoshi Nakada
2021-04-10rbinstall.rb: append "/" to directory namesNobuyoshi Nakada
2021-02-14Directory mapping for default gemsNobuyoshi Nakada
To uniform directory structures, sometimes files are gathered in different directory than the upstreams, executable files in `libexec` for instance. Re-map these files to consistent with the upstreams.