Bug 1601934
Summary: | Trace on non existent home directory | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Julio Entrena Perez <jentrena> | |
Component: | ruby | Assignee: | Jun Aruga <jaruga> | |
Status: | CLOSED ERRATA | QA Contact: | David Jež <djez> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 7.5 | CC: | djez, hhorak, jamills, jaruga, jentrena, pvalena, vondruch | |
Target Milestone: | rc | Keywords: | FastFix | |
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | No Doc Update | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1602877 1602879 1602880 (view as bug list) | Environment: | ||
Last Closed: | 2019-08-06 12:04:58 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1477664, 1602879, 1602880, 1630906, 1630914, 1661173 |
Description
Julio Entrena Perez
2018-07-17 13:44:49 UTC
Hello Julio, thank you for you report. I can confirm this is an issue. The cause is however different. /usr/share/rubygems/rubygems/path_support.rb 67 else 68 gem_path = Gem.default_path + [@home] 69 Here `Gem.default_path` is `nil`, because it is overriden, based on our implementation of `operating_system.rb`. /usr/share/rubygems/rubygems/defaults/operating_system.rb 67 def default_path 68 path = default_dirs.collect {|location, paths| paths[:gem_dir]} 69 path.unshift Gem.user_dir if File.exist? Gem.user_home 70 end The method DOES NOT return `path` in case `Gem.user_home` is nonexistent. It can be easily fixed by adding one line: 67 def default_path 68 path = default_dirs.collect {|location, paths| paths[:gem_dir]} 69 path.unshift Gem.user_dir if File.exist? Gem.user_home 70 path 71 end This unfortunately also affects all Red Hat Software Collections' Ruby packages. https://src.fedoraproject.org/rpms/ruby/pull-request/23 This ^^ is the PR fixing the issue in Fedora. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:2028 |