- Fix for the previous change. we need to set the GEM_HOME before
even wrapping into the re-exec with ruby. OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=131
This commit is contained in:
parent
9cf70d5884
commit
13ad85b94b
@ -7,6 +7,7 @@ export LC_ALL="en_US.UTF-8"
|
||||
export LANG="en_US.UTF-8"
|
||||
shopt -s nullglob
|
||||
for ruby in $(/usr/bin/ruby-find-versioned) ; do
|
||||
export GEM_HOME="$(${ruby} -r rubygems -e 'puts Gem.default_dir')"
|
||||
$ruby -x $0 "$@"
|
||||
done
|
||||
exit $?
|
||||
@ -216,7 +217,6 @@ unless options.extconfopts.nil?
|
||||
cmdline << '--'
|
||||
cmdline << options.extconfopts
|
||||
end
|
||||
ENV['GEM_HOME'] = Gem.default_dir
|
||||
GILogger.info "install cmdline: #{cmdline.inspect}"
|
||||
if Process.respond_to? :spawn
|
||||
pid = Process.spawn(*cmdline)
|
||||
@ -226,7 +226,6 @@ else
|
||||
status = $?
|
||||
end
|
||||
exit status.exitstatus unless 0 == status.exitstatus
|
||||
ENV.delete('GEM_HOME')
|
||||
|
||||
rpmname="#{options.rubyprefix}-rubygem-#{options.gemname}#{options.gemsuffix}"
|
||||
GILogger.info "RPM name: #{rpmname}"
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 14 10:29:27 UTC 2023 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
- Fix for the previous change. we need to set the GEM_HOME before
|
||||
even wrapping into the re-exec with ruby.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 13 20:51:12 UTC 2023 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user