Features/Ruby 1.9.3

From FedoraProject

< Features(Difference between revisions)
Jump to: navigation, search
(Moved to FeatureAcceptedF17 - feature was accepted at 2012-01-23 meeting.)
(Release Notes)
 
(4 intermediate revisions by 3 users not shown)
Line 17: Line 17:
 
== Current status ==
 
== Current status ==
 
* Targeted release: [[Releases/17 | Fedora 17 ]]  
 
* Targeted release: [[Releases/17 | Fedora 17 ]]  
* Last updated: 2012-01-03
+
* Last updated: {{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}
* Percentage of completion: 60%
+
* Percentage of completion: 100%
  
 
<!-- CHANGE THE "FedoraVersion" TEMPLATES ABOVE TO PLAIN NUMBERS WHEN YOU COMPLETE YOUR PAGE. -->
 
<!-- CHANGE THE "FedoraVersion" TEMPLATES ABOVE TO PLAIN NUMBERS WHEN YOU COMPLETE YOUR PAGE. -->
Line 128: Line 128:
 
** Ruby libraries managed by RPM are now installed into vendor directories while other libraries managed by system administrator should go into site directories.
 
** Ruby libraries managed by RPM are now installed into vendor directories while other libraries managed by system administrator should go into site directories.
  
* http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_357/NEWS
+
* http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_374/NEWS
 
* http://svn.ruby-lang.org/repos/ruby/tags/v1_9_1_431/NEWS
 
* http://svn.ruby-lang.org/repos/ruby/tags/v1_9_1_431/NEWS
* http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_290/NEWS
+
* http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_320/NEWS
* http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_0/NEWS
+
* http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_448/NEWS
 +
* http://svn.ruby-lang.org/repos/ruby/tags/v2_0_0_247/NEWS
  
 
== Comments and Discussion ==
 
== Comments and Discussion ==

Latest revision as of 04:13, 9 November 2013


Contents

[edit] Ruby 1.9.3

[edit] Summary

Ruby 1.9.3 is the latest stable version of Ruby, with major increases in speed and reliability. With this major update from Ruby 1.8.7 in Fedora 16 to Ruby 1.9.3 in Fedora 17, alongside JRuby, Fedora becomes the superior Ruby development platform.

[edit] Owner

  • Email: vondruch@redhat.com

[edit] Current status

  • Targeted release: Fedora 17
  • Last updated: 2013-11-09
  • Percentage of completion: 100%


[edit] Detailed Description

Ruby 1.9.3 is upstream's new major release of Ruby. The MRI reference interpreter is replaced by the YARV bytecode interpreter, designed to greatly improve the execution time of ruby programs. [1]

In doing so, upstream has set the anticipations for downstream consumers with faster and more reliable Ruby. Bringing Ruby 1.9.3 to Fedora is essential for Fedora to be at the top of it's game as a Ruby development platform.

[edit] Benefit to Fedora

Supporting the growth of a young language with a performance-enhancing milestone release. Add to that the multiplatform targetted development we enable downstream parties to do using our distribution.

[edit] Scope

The following list includes a summary of changes included in this feature:

  • New Packaging Guidelines for Ruby packages (gems and extension libraries)
  • Rebuilding of all Ruby packages, and all packages depending on Ruby
  • Changes to the search path to comply with the multi-versioning
  • Changes to the location of files to comply with FHS, multilib and packaging standards

[edit] New Packaging Guidelines

Drafts of new packaging guidelines will have to be proposed to FPC. You can see the current draft.

[edit] Ruby Search path

The ruby search path is going to change. Not set in stone yet, but this is what it is right now:

$ ruby -e "puts $:"
/usr/local/lib64/ruby/site_ruby
/usr/local/share/ruby/site_ruby
/usr/lib64/ruby/vendor_ruby
/usr/share/ruby/vendor_ruby
/usr/lib64/ruby
/usr/lib64/ruby/x86_64-linux

Changes like these mean that the Packaging Guidelines for Ruby will also need to be updated.

[edit] Packages that require "ruby(abi) = 1.8"

Requires rebuilding numerous packages that depend on ruby(abi) = 1.8, or have Requires or BuildRequires for package dependent on ruby(abi) = 1.8. All these packages have to be updated to support ruby(abi) = 1.9

  • 115 in total
repoquery --repoid=rawhide-source --arch=src --whatrequires 'ruby(abi) = 1.8' | sort | uniq

[edit] Packages that require "*ruby*"

  • 334 in total (115 matches from previous query, of course)
repoquery --repoid=rawhide-source --arch=src --whatrequires '*ruby*' | sort | uniq

[edit] How To Test


Please note that we already tested all packages available in Fedora for compatibility with Ruby 1.9.3. You can go through the findings in following mailing list threads:

[edit] User Experience

The Ruby programmes/scripts will get significantly faster compared to the current state.

[edit] Dependencies

Ruby has more than three hundred dependencies in Fedora, most of them are Rubygems. All of these 300 will have to be rebuilt and tested.

[edit] Contingency Plan

We would like to get a special buildroot tag to be able to rebuild all the packages with Ruby 1.9.3. If anything goes wrong, the tag could be easily dropped and previous version of Ruby 1.8.7 and its dependencies stays intact.

[edit] Documentation

http://www.ruby-doc.org/

[edit] Upstream EOL

[edit] Release Notes

  • The Ruby 1.9.3 breaks ABI/API compatibility with previous version of Ruby, therefore soname was bumped. All RubyGems which use binary extensions should be rebuilt. All applications which use Ruby binding should be rebuilt.
  • Ruby 1.9.3 as well as integrated version of RubyGems now use different directory structure, compatible with FHS. All libraries need to be adjusted to this change. This change is reflected in new packaging guidelines draft.
    • Unprivileged user now installs gems automatically into her/his home directory, root installs gems into /usr/local directory structure and system gems, managed by RPM, are installed into /usr.
    • Ruby libraries managed by RPM are now installed into vendor directories while other libraries managed by system administrator should go into site directories.

[edit] Comments and Discussion