diff options
author | Brice Videau <brice.videau@gmail.com> | 2021-10-15 11:59:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 16:59:32 +0000 |
commit | 0bc1bffe5044c7417ff3b3a2f01795138f6f7433 (patch) | |
tree | fc5c8d47fd88240acdad63c2c8695c19dcec4d8d /lib | |
parent | 33da53e325bb04e7676531efbe58d238df8d2c85 (diff) | |
download | spack-0bc1bffe5044c7417ff3b3a2f01795138f6f7433.tar.gz spack-0bc1bffe5044c7417ff3b3a2f01795138f6f7433.tar.bz2 spack-0bc1bffe5044c7417ff3b3a2f01795138f6f7433.tar.xz spack-0bc1bffe5044c7417ff3b3a2f01795138f6f7433.zip |
Fix ruby dependent extensions. (#26729)
* Fix ruby dependent extensions.
* Added Kerilk as maintainer.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_systems/ruby.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/spack/spack/build_systems/ruby.py b/lib/spack/spack/build_systems/ruby.py index 5736d0913a..e0a208e7c0 100644 --- a/lib/spack/spack/build_systems/ruby.py +++ b/lib/spack/spack/build_systems/ruby.py @@ -18,6 +18,9 @@ class RubyPackage(PackageBase): #. :py:meth:`~.RubyPackage.build` #. :py:meth:`~.RubyPackage.install` """ + + maintainers = ['Kerilk'] + #: Phases of a Ruby package phases = ['build', 'install'] @@ -50,8 +53,12 @@ class RubyPackage(PackageBase): gems = glob.glob('*.gem') if gems: + # if --install-dir is not used, GEM_PATH is deleted from the + # environement, and Gems required to build native extensions will + # not be found. Those extensions are built during `gem install`. inspect.getmodule(self).gem( - 'install', '--norc', '--ignore-dependencies', gems[0]) + 'install', '--norc', '--ignore-dependencies', + '--install-dir', prefix, gems[0]) # Check that self.prefix is there after installation run_after('install')(PackageBase.sanity_check_prefix) |