gem build broken by recent upgrade

Bug #643768 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libgems-ruby (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

After updating my maverick system, the latest uploaded package seems to have broken the 'gem build' command:

ubuntu@ip-10-196-111-253:~/g$ gem build metadata
ERROR: While executing gem ... (NameError)
    uninitialized constant Gem::Specification::YAML

However, if I add a .gemrc file, it works:

ubuntu@ip-10-196-111-253:~/g$ touch ~/.gemrc
ubuntu@ip-10-196-111-253:~/g$ gem build metadata
WARNING: no rubyforge_project specified
WARNING: description and summary are identical
  Successfully built RubyGem
  Name: piggy
  Version: 0.0.6
  File: piggy-0.0.6.gem

This is because the existence of the .gemrc file triggers a conditional require "yaml" in rubygems/config_file.rb

Seems this has also been seen in NetBSD

http://mail-index.netbsd.org/pkgsrc-bugs/2010/09/13/msg039540.html

Revision history for this message
Clint Byrum (clint-fewbar) wrote :
Changed in libgems-ruby (Ubuntu):
status: New → In Progress
assignee: nobody → Clint Byrum (clint-fewbar)
Changed in libgems-ruby (Ubuntu):
status: In Progress → Triaged
assignee: Clint Byrum (clint-fewbar) → nobody
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

A patch for this has been submitted upstream and in Debian, and should be uploaded, so the fix will hopefully be included in the next sync with Debian.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

This was fixed in Debian in version 1.3.7-3 (and subsequently synced into natty), and upstream in v1.5.0

http://rubyforge.org/tracker/?func=detail&atid=577&aid=28582&group_id=126

Changed in libgems-ruby (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.