diff --git a/gem_install.sh b/gem_install.sh index 1b36f22..cf6324d 100644 --- a/gem_install.sh +++ b/gem_install.sh @@ -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}" diff --git a/ruby-common.changes b/ruby-common.changes index 2a4a783..a06f573 100644 --- a/ruby-common.changes +++ b/ruby-common.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 14 10:29:27 UTC 2023 - Marcus Rueckert + +- 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