Bug 711102

Summary: ruby-irb from rhel5 not compatible with ruby from EPEL
Product: Red Hat Enterprise Linux 5 Reporter: david
Component: rubyAssignee: Vít Ondruch <vondruch>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.6CC: eng-i18n-bugs
Target Milestone: ---   
Target Release: 5.8   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-07 11:41:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 711107    

Description david 2011-06-06 14:47:20 UTC
Description of problem:
The ruby-irb package from RHEL5 has a too-specific version dependency on ruby. This makes it incompatible with the ruby package from EPEL (needed by many EPEL packages), and therefore causes brokenness on systems with EPEL repos enabled.


Version-Release number of selected component (if applicable): 
ruby-irb.i386 1.8.5-5.el5_4.8
ruby 1.8.5.114-1.fc6



How reproducible: Always


Steps to Reproduce:
1. Add EPEL repo to sources
2. Update system
3. Try to install ruby-irb package
  
Actual results:
root@pmonitor02 ~ # yum install ruby-irb
Loaded plugins: downloadonly, rhnplugin, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ruby-irb.i386 0:1.8.5-5.el5_4.8 set to be updated
--> Processing Dependency: ruby = 1.8.5-5.el5_4.8 for package: ruby-irb
--> Finished Dependency Resolution
ruby-irb-1.8.5-5.el5_4.8.i386 from rhel-i386-server-5 has depsolving problems
  --> Missing Dependency: ruby = 1.8.5-5.el5_4.8 is needed by package ruby-irb-1.8.5-5.el5_4.8.i386 (rhel-i386-server-5)
Error: Missing Dependency: ruby = 1.8.5-5.el5_4.8 is needed by package ruby-irb-1.8.5-5.el5_4.8.i386 (rhel-i386-server-5)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest



Expected results:
Package is installed (is the specific version in depends really required?)


Additional info:
I couldn't find the ruby-irb package in bugtracker, so I'm filing it against ruby.

Comment 1 david 2011-06-06 14:54:57 UTC
This bug should have been filed under RHEL5, sorry for the mixup. I do not have permission to change the product.

Comment 3 Vít Ondruch 2011-06-07 11:13:51 UTC
(In reply to comment #0)
> ruby 1.8.5.114-1.fc6

Hello David, where did you got this Ruby version? It appears to be installed from Fedora Core 6? Try to uninstall Ruby and install the Ruby from RHEL repository.

And yes, the ruby-irb is strict about its requirements. It is subpackage of ruby package, that is also the reason why you cannot find ruby-irb component in BZ.

Comment 4 david 2011-06-07 11:24:10 UTC
Hi Vít,

Thank you for your response. This package must have come from EPEL as that is the only 3rd party repository active on the machine (and I have not installed any packages manually). However I can't seem to find it in the EPEL repo now, and I was able to successfully downgrade to the current RHEL5 version.

Please close this bug and sorry for the unnecessary bugspam.

Comment 5 Vít Ondruch 2011-06-07 11:41:39 UTC
Well the EPEL policy [1] is just to extend RHEL, not replace packages. Not sure if there were days when RHEL-5 did not contained Ruby and they were provided just by EPEL.

[1] http://fedoraproject.org/wiki/EPEL/GuidelinesAndPolicies#Policy