Bug 953948

Summary: ruby_version shouldn't be empty
Product: [Fedora] Fedora Reporter: Karsten Hopp <karsten>
Component: rubyAssignee: Jeroen van Meeuwen <vanmeeuwen+fedora>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 19CC: bkabrda, jeremy, mmorsi, mtasaka, tagoh, vanmeeuwen+fedora, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-22 07:15:41 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:

Description Karsten Hopp 2013-04-19 15:34:24 UTC
Description of problem:
ruby -r rbconfig -e "print RbConfig::CONFIG['ruby_version']"
 prints nothing with ruby-2.0. It prints '1.9.1' with F18 ruby.

Version-Release number of selected component (if applicable):
ruby-2.0.0.0-6.fc19.x86_64

How reproducible:
always

Steps to Reproduce:
1. ruby -r rbconfig -e "print RbConfig::CONFIG['ruby_version']"
2.
3.
  
Actual results:
no output

Expected results:
2.0.0

Additional info:
This breaks p.e. the latest vim from f19 git. autoconf tries to figure out the ruby libraries and versions and ends up with this:
 -DDYNAMIC_RUBY_DLL=\"libruby.so.2.0.0\" -DDYNAMIC_RUBY_VER= -I/usr/include

This should be 
 -DDYNAMIC_RUBY_DLL=\"libruby.so.2.0.0\" -DDYNAMIC_RUBY_VER=20 -I/usr/include

Comment 1 Vít Ondruch 2013-04-22 07:15:41 UTC

*** This bug has been marked as a duplicate of bug 923703 ***