Commit graph

255 commits

Author SHA1 Message Date
David Rodríguez
52082d19e0 load_relative is always falsy here 2024-08-23 12:17:07 +09:00
David Rodríguez
fbadcd277f Reuse load_relative local 2024-08-23 12:17:07 +09:00
Nobuyoshi Nakada
d6f18b226e
Remove extraneous lock files
See https://github.com/rubygems/rubygems/pull/7939
2024-08-20 20:16:45 +09:00
Nobuyoshi Nakada
733c72e6f0
Show destination directory after installation
Due to the length of the list of gems to install, the message at the
beginning of the installation scrolls out.
2024-06-02 17:21:22 +09:00
Hiroshi SHIBATA
b39057f32c
Fix extension installer for out-of-place build
https://github.com/ruby/ruby/pull/9673#issuecomment-2019028293
2024-03-26 11:10:20 +09:00
Hiroshi SHIBATA
152192c96f
Use load_gemspec instead of Gem::Specification.load.
We need to purge `git ls-files` from gemspec in default gems.
2024-03-25 17:37:13 +09:00
Hiroshi SHIBATA
bd85fd6db9
Guard makefile target at cross-build
20240325T041917Z.fail.html.gz
2024-03-25 15:16:22 +09:00
David Rodriguez
ea31228d0c Consider extensions in gems outside of ext/ 2024-03-25 11:55:08 +09:00
David Rodriguez
2dd2204d8c Extract root helper
It holds the root directory for each type of default gem (ext/ or lib/).
2024-03-25 11:55:08 +09:00
David Rodriguez
083e7080d1 Consider target_prefix in extension Makefiles 2024-03-25 11:55:08 +09:00
David Rodríguez
2b703eed46 Consistently put requirable features in default gemspecs file list 2024-03-25 11:55:08 +09:00
David Rodríguez
bece07e6c3 Fix gemspec file list for extension gems
So that it also includes requirable features provided by extensions.
2024-03-25 11:55:08 +09:00
David Rodriguez
1e6117d665 Simplify FileCollector interface 2024-03-25 11:55:08 +09:00
David Rodriguez
348d8bdb0e Use $ext_build_dir consistently
Instead of hardcoded "ext".
2024-03-25 11:55:08 +09:00
Nobuyoshi Nakada
5a77397489
Ignore method chains succeeding git ls-files 2024-03-23 23:58:40 +09:00
Nobuyoshi Nakada
c505bb0ca0
Ignore method chains succeeding git ls-files 2024-03-23 22:43:05 +09:00
Jean Boussier
09d8c99cdc Ensure test suite is compatible with --frozen-string-literal
As preparation for https://bugs.ruby-lang.org/issues/20205
making sure the test suite is compatible with frozen string
literals is making things easier.
2024-03-14 17:56:15 +01:00
Nobuyoshi Nakada
2976d91aff
Include default gems directories in installed list 2024-03-09 19:34:36 +09:00
Nobuyoshi Nakada
e9f77da54e
Reorder and move install? blocks after method definitions 2024-03-09 19:17:38 +09:00
Nobuyoshi Nakada
6bfb6e6045
Merged intermediate class GemInstaller to UnpackedInstaller 2024-03-09 18:45:00 +09:00
Hiroshi SHIBATA
75a4aa2052 Support file listing with IO.poepn style 2024-02-28 13:30:16 +09:00
Nobuyoshi Nakada
120c291faf
Link ruby.pc to pkg-config data directory 2024-02-18 15:08:27 +09:00
Nobuyoshi Nakada
87c4c6c082
Install binary executable files to architecture dependent path 2024-02-18 15:07:42 +09:00
Hiroshi SHIBATA
e3f452e5d7
Adjust indent 2024-02-16 17:57:38 +09:00
Hiroshi SHIBATA
9f4d5eb1f4 Try to find gemspec from `.bundle/specifications 2024-02-16 17:28:00 +09:00
Hiroshi SHIBATA
4047222aca 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
2024-02-16 17:28:00 +09:00
Hiroshi SHIBATA
007c75ce4c
Skip to install bundled gems that is C extension and build failed.
Ex. We can't build syslog gem in Windows platform. We should skip install
syslog as bundled gems.
2024-02-09 14:40:12 +09:00
Nobuyoshi Nakada
4e72c9af87
rbinstall.rb: Fix a closing parenthesis [ci skip] 2024-01-30 23:45:43 +09:00
Nobuyoshi Nakada
64fa4c7587
rbinstall.rb: Show types to install in the help [ci skip] 2024-01-30 22:36:47 +09:00
Hiroshi SHIBATA
3eea85963b Use gemspec that keeps original dependencies 2023-03-27 17:45:43 +09:00
Takashi Kokubun
23ec248e48 s/mjit/rjit/ 2023-03-06 23:44:01 -08:00
Nobuyoshi Nakada
03f5db01e6
Make installation messages verbose a little [ci skip] 2023-01-18 23:55:25 +09:00
Nobuyoshi Nakada
612aa5c24a
Use class methods of File over Kernel.open and IO.read 2022-11-21 22:16:49 +09:00
Nobuyoshi Nakada
247d598477
Install all file trees for lldb [ci skip]
It is no longer single lldb_cruby.py only.
2022-09-28 21:27:42 +09:00
Nobuyoshi Nakada
ac890ec062
Make date in installed gemspec files stable
Set `date` member to `RUBY_RELEASE_DATE` instead of the date at the
build time, to make installed files reproducible.
2022-08-17 00:58:56 +09:00
Nobuyoshi Nakada
cc443f6cde
Refactor RbInstall::Specs::FileCollector
- 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-17 00:58:56 +09:00
Nobuyoshi Nakada
a3a6d2d9a3 No bundled gems to be installed from gem now 2022-08-12 15:55:40 +09:00
Nobuyoshi Nakada
04815ea968 All extensions in bundled gems are built by build-ext now
`RbInstall::GemInstaller#build_extensions` has nothing to do.
2022-08-12 15:55:40 +09:00
Nobuyoshi Nakada
0bb5525eb2
Fix files for gemspec files direct-under lib
Collected `files` lacked `lib` prefix.
2022-08-07 17:01:22 +09:00
Nobuyoshi Nakada
416cba90c1 Try to install also gemspec files under gem directories
Gemspec files having extension libraries are placed under each gem
directories now.
2022-07-14 09:00:13 +09:00
Kazuhiro NISHIYAMA
2d1032075a
Stop build_extensions when DESTDIR set
Try to fix `make install without root privilege` failures on snapshot CIs.

example: 2315349280
2022-05-13 08:44:17 +09:00
Alan Wu
79fa27acc4 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
8a3663789c because it enabled extension
building for bundled gems on mswin. This patch should address the CI
failures.
2022-04-22 16:21:48 -04:00
Nobuyoshi Nakada
8a3663789c
Fix bundled gems installation when relative loading 2022-04-16 09:03:51 +09:00
Kazuhiro NISHIYAMA
7e4ac434b9
Skip build extensions again on cross compiling too 2022-04-13 14:40:24 +09:00
Kazuhiro NISHIYAMA
3112475469
Skip build extensions again on mswin and mingw 2022-04-13 13:40:57 +09:00
Kazuhiro NISHIYAMA
4246e102d4
Enabled to build extensions with the bundled gems again
cbb115213c
5c1b76a3a5
2022-04-13 11:09:23 +09:00
Nobuyoshi Nakada
5c1b76a3a5 Install built gem extension binaries 2022-04-07 09:47:10 +09:00
Yuta Saito
e554b17c60 tool/rbinstall.rb: instal ruby.wasm produced by Emscripten 2022-01-06 18:14:24 +09:00
Yuta Saito
3c7e95966d rbinstall.rb: install ext only when it's configured [Bug #18414] 2021-12-21 15:14:54 +09:00
Nobuyoshi Nakada
c57ac4c6e0 Fix location of extensions in bundled gems when static-linked-ext
Install bundled gem extension files to the gem extension directory
under DESTDIR, when static-linked-ext as well as non-static case.
2021-12-21 02:01:57 +09:00