Bug 783845

Summary: ruby-qpid should ship the lib/qpid/specs directory
Product: [Fedora] Fedora Reporter: Mo Morsi <mmorsi>
Component: ruby-qpidAssignee: Nuno Santos <nsantos>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: aortega, nsantos
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-13 19:22:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mo Morsi 2012-01-22 19:28:24 UTC
This directory, containing the amqp specifications to use, is read / pulled in by ruby-qpid via the /usr/lib/ruby/site_ruby/1.8/qpid/config.rb module.

If not present, it causes errors in the Qpid::Connection class.

To demonstrate on F15

$ sudo yum install ruby-qpid
$ irb
irb(main):001:0> require 'qpid'
=> true
irb(main):002:0>  c = Qpid::Connection.new(TCPSocket.new('localhost', 5672)) ; true
TypeError: can't convert Array into String
	from /usr/lib/ruby/site_ruby/1.8/qpid/spec010.rb:431:in `basename'
	from /usr/lib/ruby/site_ruby/1.8/qpid/spec010.rb:431:in `spec_cache'
	from /usr/lib/ruby/site_ruby/1.8/qpid/spec010.rb:451:in `load'
	from /usr/lib/ruby/site_ruby/1.8/qpid/connection.rb:47:in `initialize'
	from (irb):2:in `new'
	from (irb):2
	from /usr/lib/ruby/site_ruby/1.8/qpid/codec.rb:368
irb(main):003:0> ^D

Untar upstream source tarball and copy 'ruby/lib/qpid/specs' directory to /usr/lib/ruby/site_ruby/1.8/qpid/

$ irb
irb(main):001:0> require 'qpid'
=> true
irb(main):002:0>  c = Qpid::Connection.new(TCPSocket.new('localhost', 5672)) ; true
=> true


Note the 'rake build' command in the upstream source does not remove this directory, it simply is never installed via the specfile.

Should be a quick fix but I've also requested ACL rights in the pkgdb incase you don't have the cycles to resolve this.

Comment 1 Mo Morsi 2012-02-13 19:22:54 UTC
Just pushed an update to F17 / rawhide containing the fix.