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
Yuta Saito
f1a02ebfb9
Install gemspec even though no .rb and no .so
...
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.
2021-12-16 16:17:41 +09:00
Alan Wu
3d19c2900e
No need to link and install .pdb anymore
...
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.
2021-11-24 23:45:57 +09:00
Yusuke Endoh
30886be9f4
Skip bundled gem with an extension library under with-static-linked-ext
...
.. mainly to fix emscripten CI
20211104
T024621Z.fail.html.gz
2021-11-05 09:34:46 +09:00
Nobuyoshi Nakada
99c60d4b25
Get rid of exponential backtracks found by CodeQL
...
Since these regexps are used at build/installation, they are not
vulnerabilities.
2021-10-30 02:22:42 +09:00
Koichi Sasada
bc96a45f12
introduce debug.gem
...
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).
2021-10-05 02:07:33 +09:00
Hiroshi SHIBATA
cbb115213c
Enabled to build extensions with the bundled gems
2021-10-05 02:07:33 +09:00
Nobuyoshi Nakada
44b2e32fb6
Fix a typo
2021-10-04 20:44:38 +09:00
Nobuyoshi Nakada
0b9242ffac
[Misc #18153 ] Install debug symbol files/directories by the option
2021-09-08 18:51:49 +09:00
Nobuyoshi Nakada
d6cf4c0c99
rbinstall.rb: just call File.basename directly
2021-07-08 17:58:25 +09:00
Nobuyoshi Nakada
9c9531950c
rbinstall.rb: get rid of making directories when dryrun
2021-07-01 06:42:00 +09:00
Nobuyoshi Nakada
9edad0df74
Remove short options with argument [Bug #17870 ]
...
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-05-21 10:34:28 +09:00
Hiroshi SHIBATA
93420d34aa
Added the specific files to the default gems like net-http and optparse
2021-04-19 18:19:09 +09:00
Hiroshi SHIBATA
5d710d7e41
Fix the wrong file detection for net-*.gemspec
...
[Bug #17476 ][ruby-core:101724]
2021-04-19 13:44:38 +09:00
Nobuyoshi Nakada
26888d5e03
Workaround for installation failures on macOS
2021-04-15 18:07:23 +09:00
Nobuyoshi Nakada
6c7d39aabe
rbinstall.rb: record default gem files
2021-04-10 12:41:36 +09:00
Nobuyoshi Nakada
af8ac97fcc
rbinstall.rb: append "/" to directory names
2021-04-10 11:59:09 +09:00