Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 513326

Summary: dev-ruby/mail:2.6 should install VERSION file - /usr/lib64/ruby/gems/1.9.1/gems/mail-2.6.1/lib/mail/version.rb:6:in `read': No such file or directory - /usr/lib64/ruby/gems/1.9.1/gems/mail-2.6.1/lib/mail/../../VERSION (Errno::ENOENT)
Product: Gentoo Linux Reporter: René 'Necoro' Neumann <gentoo>
Component: [OLD] DevelopmentAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description René 'Necoro' Neumann 2014-06-15 10:27:23 UTC
In fixing the bug https://github.com/mikel/mail/issues/566, the file VERSION got moved out of lib/ into the root folder. The ebuild does not pick it up and installs it, which is a problem as it gets referenced by the code.

Therefore, any use of mail in a program results in the following error:

/usr/lib64/ruby/gems/1.9.1/gems/mail-2.6.1/lib/mail/version.rb:6:in `read': No such file or directory - /usr/lib64/ruby/gems/1.9.1/gems/mail-2.6.1/lib/mail/../../VERSION (Errno::ENOENT)
	from /usr/lib64/ruby/gems/1.9.1/gems/mail-2.6.1/lib/mail/version.rb:6:in `<module:VERSION>'
	from /usr/lib64/ruby/gems/1.9.1/gems/mail-2.6.1/lib/mail/version.rb:3:in `<module:Mail>'
	from /usr/lib64/ruby/gems/1.9.1/gems/mail-2.6.1/lib/mail/version.rb:2:in `<top (required)>'
	from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
	from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
	from /usr/lib64/ruby/gems/1.9.1/gems/mail-2.6.1/lib/mail.rb:27:in `<module:Mail>'
	from /usr/lib64/ruby/gems/1.9.1/gems/mail-2.6.1/lib/mail.rb:2:in `<top (required)>

I'm not sure, what is the best way to fix it, but please do, as in the current shape the package is not usable.
Comment 1 Hans de Graaff gentoo-dev Security 2014-06-15 17:29:24 UTC
We normally fix this by installing the VERSION file also. Now fixed in mail-2.6.1-r1.