summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
AgeCommit message (Collapse)Author
2024-08-07Adjust indentHiroshi SHIBATA
2024-08-07Try to find gemspec from `.bundle/specificationsHiroshi SHIBATA
2024-08-07Try to load original gemspec from `.bundle/gems/foo-x.y.z/foo.gemspec`.Hiroshi SHIBATA
`.bundle/specification/foo-x.y.z.gemspec` may be changed our toolchain
2024-08-07Use gemspec that keeps original dependenciesHiroshi SHIBATA
2024-08-07Make installation messages verbose a little [ci skip]Nobuyoshi Nakada
2024-08-07Revert "Backport https://github.com/ruby/ruby/pull/7321"Hiroshi SHIBATA
This reverts commit 76c61c9993e59af0b4c400b44f169f4af99c3efa.
2023-02-23Backport https://github.com/ruby/ruby/pull/7321Hiroshi SHIBATA
2022-10-15merge revision(s) 416cba90c1610f54dafd91234de9ec74d73ae22c:nagachika
Try to install also gemspec files under gem directories Gemspec files having extension libraries are placed under each gem directories now. --- tool/rbinstall.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
2022-10-15merge revision(s) 2d1032075a4654b8b54dde96424f299f7f29f9d6:nagachika
Stop `build_extensions` when DESTDIR set Try to fix `make install without root privilege` failures on snapshot CIs. example: https://github.com/ruby/actions/actions/runs/2315349280 --- tool/rbinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2022-10-15merge revision(s) 79fa27acc452c50ae47936880f91424e729fda72:nagachika
rbinstall: Also do `Gem.ruby` patching for unpacked bundled gems 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. --- tool/rbinstall.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
2022-10-15merge revision(s) 8a3663789c52ec5635194656af6b69d3d03120ee:nagachika
Fix bundled gems installation when relative loading --- tool/rbinstall.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
2022-10-15merge revision(s) 7e4ac434b923739b540ce21cba307c4d0515d72e:nagachika
Skip build extensions again on cross compiling too --- tool/rbinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2022-10-15merge revision(s) 3112475469e35b522448858d23ee1651532276e7:nagachika
Skip build extensions again on mswin and mingw --- tool/rbinstall.rb | 3 +++ 1 file changed, 3 insertions(+)
2022-10-15merge revision(s) 4246e102d49eae0bd1bca01fba53286ad8178d2a:nagachika
Enabled to build extensions with the bundled gems again https://github.com/ruby/ruby/commit/cbb115213c42f15638ef119eb20c4d3106eb8b1a https://github.com/ruby/ruby/commit/5c1b76a3a55afeb07116bbd3492303c6b6cd890d --- tool/rbinstall.rb | 3 --- 1 file changed, 3 deletions(-)
2022-10-15merge revision(s) 5c1b76a3a55afeb07116bbd3492303c6b6cd890d:nagachika
Install built gem extension binaries --- tool/rbinstall.rb | 56 ++++++++++++++++--------------------------------------- 1 file changed, 16 insertions(+), 40 deletions(-)
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-06-20Revert "merge revision(s) 5c1b76a3a55afeb07116bbd3492303c6b6cd890d: ↵nagachika
[Backport #18373]" This reverts commit d56b2e8820efd40840443ce3a5d16cff32a090c7.
2022-06-18merge revision(s) 5c1b76a3a55afeb07116bbd3492303c6b6cd890d: [Backport #18373]nagachika
Install built gem extension binaries --- tool/rbinstall.rb | 56 ++++++++++++++++--------------------------------------- 1 file changed, 16 insertions(+), 40 deletions(-)
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.
2021-02-14Revert following rbinstall.rb changesNobuyoshi Nakada
Because unexpected names are listed in gemspec files. * "Fix gemspec only case" fc56b96b09e477686975c978142e3af9179219cd * "Refined installation of gemspecs placed other than ext and lib" 31f4dec6373c15a58899f8b86e35d48a7d813bf6
2021-02-14Use UnpackedInstaller to install default gems.Vít Ondruch
Use UnpackedInstaller for installation of default gems similarly it is already used to install bundled gems. This allows to reuse RubyGems functionality instead of custom code full of exceptions.
2021-02-14Fix gemspec only caseNobuyoshi Nakada
2021-02-14Refined installation of gemspecs placed other than ext and libNobuyoshi Nakada
2021-02-11Comment in sh needs to be the beginning of a wordNobuyoshi Nakada
2020-12-07rbinstall.rb: do not install useless files after installedNobuyoshi Nakada
2020-12-07Extract gemspec to versioned fileNobuyoshi Nakada
Not to be overwritten by test-bundler-prepare. gem files often contain useless gemspec files which have not been processed.
2020-12-07rbinstall.rb: relaxed split argumentNobuyoshi Nakada
did_you_mean splits the output by `$/`.
2020-12-07rbinstall.rb: fix the position to expand filesNobuyoshi Nakada
As `spec.files` is used for `executables` and so on, the expanded list needs to be located at the same place.
2020-12-07rbinstall.rb: install files expanded from bundled gemsNobuyoshi Nakada
Although gemspec file (e.g., power_assert and rake) often uses `git ls-files`, as it does not make sense in other than its own repository, it has been ignored now. Gather all files expanded from the bundled gem to install, instead.
2020-09-11rbinstall.rb: OpenStruct has not been needed for yearsNobuyoshi Nakada
Since 6f3e8df133c7785ff6bb6f18d1faec81fefb3999 in 2014.
2020-07-29rbinstall.rb: fix generated script name to set modeNobuyoshi Nakada