Bug 783845 - ruby-qpid should ship the lib/qpid/specs directory
Summary: ruby-qpid should ship the lib/qpid/specs directory
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ruby-qpid
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nuno Santos
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-22 19:28 UTC by Mo Morsi
Modified: 2013-09-12 22:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-13 19:22:54 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.