summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use gemspec that keeps original dependenciesHiroshi SHIBATA2023-03-271-2/+5
|
* s/mjit/rjit/Takashi Kokubun2023-03-061-2/+2
|
* Make installation messages verbose a little [ci skip]Nobuyoshi Nakada2023-01-181-4/+19
|
* Use class methods of `File` over `Kernel.open` and `IO.read`Nobuyoshi Nakada2022-11-211-25/+22
|
* Install all file trees for lldb [ci skip]Nobuyoshi Nakada2022-09-281-1/+7
| | | | It is no longer single lldb_cruby.py only.
* Make date in installed gemspec files stableNobuyoshi Nakada2022-08-171-0/+1
| | | | | Set `date` member to `RUBY_RELEASE_DATE` instead of the date at the build time, to make installed files reproducible.
* Refactor `RbInstall::Specs::FileCollector`Nobuyoshi Nakada2022-08-171-66/+41
| | | | | | | - 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/`.
* No bundled gems to be installed from gem nowNobuyoshi Nakada2022-08-121-22/+2
|
* All extensions in bundled gems are built by build-ext nowNobuyoshi Nakada2022-08-121-5/+2
| | | | `RbInstall::GemInstaller#build_extensions` has nothing to do.
* Fix files for gemspec files direct-under libNobuyoshi Nakada2022-08-071-1/+1
| | | Collected `files` lacked `lib` prefix.
* Try to install also gemspec files under gem directoriesNobuyoshi Nakada2022-07-141-1/+4
| | | | | Gemspec files having extension libraries are placed under each gem directories now.
* Stop `build_extensions` when DESTDIR setKazuhiro NISHIYAMA2022-05-131-1/+1
| | | | | | Try to fix `make install without root privilege` failures on snapshot CIs. example: https://github.com/ruby/actions/actions/runs/2315349280
* rbinstall: Also do `Gem.ruby` patching for unpacked bundled gemsAlan Wu2022-04-221-1/+7
| | | | | | | | | | | | | | | | 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.
* Fix bundled gems installation when relative loadingNobuyoshi Nakada2022-04-161-3/+7
|
* Skip build extensions again on cross compiling tooKazuhiro NISHIYAMA2022-04-131-1/+1
|
* Skip build extensions again on mswin and mingwKazuhiro NISHIYAMA2022-04-131-0/+3
|
* Enabled to build extensions with the bundled gems againKazuhiro NISHIYAMA2022-04-131-3/+0
| | | | | https://github.com/ruby/ruby/commit/cbb115213c42f15638ef119eb20c4d3106eb8b1a https://github.com/ruby/ruby/commit/5c1b76a3a55afeb07116bbd3492303c6b6cd890d
* Install built gem extension binariesNobuyoshi Nakada2022-04-071-40/+16
|
* tool/rbinstall.rb: instal ruby.wasm produced by EmscriptenYuta Saito2022-01-061-0/+5
|
* rbinstall.rb: install ext only when it's configured [Bug #18414]Yuta Saito2021-12-211-0/+17
|
* Fix location of extensions in bundled gems when static-linked-extNobuyoshi Nakada2021-12-211-1/+1
| | | | | Install bundled gem extension files to the gem extension directory under DESTDIR, when static-linked-ext as well as non-static case.
* Install gemspec even though no .rb and no .soYuta Saito2021-12-161-1/+0
| | | | | | | 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.
* No need to link and install .pdb anymoreAlan Wu2021-11-241-1/+0
| | | | | | | | 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.
* Skip bundled gem with an extension library under with-static-linked-extYusuke Endoh2021-11-051-0/+4
| | | | | | .. mainly to fix emscripten CI http://rubyci.s3.amazonaws.com/crossruby/crossruby-master-wasm64_emscripten/log/20211104T024621Z.fail.html.gz
* Get rid of exponential backtracks found by CodeQLNobuyoshi Nakada2021-10-301-1/+1
| | | | | Since these regexps are used at build/installation, they are not vulnerabilities.
* introduce debug.gemKoichi Sasada2021-10-051-1/+16
| | | | | | 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).
* Enabled to build extensions with the bundled gemsHiroshi SHIBATA2021-10-051-3/+0
|
* Fix a typoNobuyoshi Nakada2021-10-041-1/+1
|
* [Misc #18153] Install debug symbol files/directories by the optionNobuyoshi Nakada2021-09-081-0/+16
|
* rbinstall.rb: just call File.basename directlyNobuyoshi Nakada2021-07-081-3/+2
|
* rbinstall.rb: get rid of making directories when dryrunNobuyoshi Nakada2021-07-011-21/+30
|
* Remove short options with argument [Bug #17870]Nobuyoshi Nakada2021-05-211-0/+3
| | | | | | 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.
* Added the specific files to the default gems like net-http and optparseHiroshi SHIBATA2021-04-191-6/+15
|
* Fix the wrong file detection for net-*.gemspecHiroshi SHIBATA2021-04-191-0/+5
| | | | [Bug #17476][ruby-core:101724]
* Workaround for installation failures on macOSNobuyoshi Nakada2021-04-151-0/+2
|
* rbinstall.rb: record default gem filesNobuyoshi Nakada2021-04-101-0/+5
|
* rbinstall.rb: append "/" to directory namesNobuyoshi Nakada2021-04-101-1/+1
|
* Directory mapping for default gemsNobuyoshi Nakada2021-02-141-8/+8
| | | | | | | 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.
* Revert following rbinstall.rb changesNobuyoshi Nakada2021-02-141-11/+5
| | | | | | | | | | Because unexpected names are listed in gemspec files. * "Fix gemspec only case" fc56b96b09e477686975c978142e3af9179219cd * "Refined installation of gemspecs placed other than ext and lib" 31f4dec6373c15a58899f8b86e35d48a7d813bf6
* Use UnpackedInstaller to install default gems.Vít Ondruch2021-02-141-22/+26
| | | | | | | | 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.
* Fix gemspec only caseNobuyoshi Nakada2021-02-141-1/+6
|
* Refined installation of gemspecs placed other than ext and libNobuyoshi Nakada2021-02-141-6/+7
|
* Comment in sh needs to be the beginning of a wordNobuyoshi Nakada2021-02-111-1/+1
|
* rbinstall.rb: do not install useless files after installedNobuyoshi Nakada2020-12-071-1/+1
|
* Extract gemspec to versioned fileNobuyoshi Nakada2020-12-071-3/+8
| | | | | Not to be overwritten by test-bundler-prepare. gem files often contain useless gemspec files which have not been processed.
* rbinstall.rb: relaxed split argumentNobuyoshi Nakada2020-12-071-1/+1
| | | | did_you_mean splits the output by `$/`.
* rbinstall.rb: fix the position to expand filesNobuyoshi Nakada2020-12-071-13/+13
| | | | | As `spec.files` is used for `executables` and so on, the expanded list needs to be located at the same place.
* rbinstall.rb: install files expanded from bundled gemsNobuyoshi Nakada2020-12-071-2/+14
| | | | | | | 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.
* rbinstall.rb: OpenStruct has not been needed for yearsNobuyoshi Nakada2020-09-111-1/+0
| | | | Since 6f3e8df133c7785ff6bb6f18d1faec81fefb3999 in 2014.
* rbinstall.rb: fix generated script name to set modeNobuyoshi Nakada2020-07-291-5/+3
|