Bug 627454

Summary: rubygem-haml VERSION and VERSION_NAME files should not be %doc
Product: [Fedora] Fedora Reporter: Mo Morsi <mmorsi>
Component: rubygem-hamlAssignee: Mo Morsi <mmorsi>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: mkent, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-29 18:28:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mo Morsi 2010-08-26 04:13:37 UTC
Description of problem:
The rubygem-haml.spec files list VERSION and VERSION_NAME as %doc files. These files are used by the haml library during runtime for various purposes, see lib/haml/version.rb line 30/31.

Normally doc files are installed, but in some cases, such as when --excludedocs is used as a flag in a kickstart file, as it normally would when creating a minimal virtual appliance with appliance-creator

 http://thincrust.net/kickstarts/baseAppliance-f10.ks

If these files are not present at runtime haml will throw an exception and fail. eg
$ haml
/usr/lib/ruby/gems/1.8/gems/haml-2.2.24/bin/../lib/haml/version.rb:30:in `read': No such file or directory - /usr/lib/ruby/gems/1.8/gems/haml-2.2.24/VERSION (Errno::ENOENT)
	from /usr/lib/ruby/gems/1.8/gems/haml-2.2.24/bin/../lib/haml/version.rb:30:in `version'
	from /usr/lib/ruby/gems/1.8/gems/haml-2.2.24/bin/../lib/haml.rb:20
	from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
	from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /usr/lib/ruby/gems/1.8/gems/haml-2.2.24/bin/haml:5
	from /usr/bin/haml:19:in `load'
	from /usr/bin/haml:19



Version-Release number of selected component (if applicable):
2.2.24

Steps to Reproduce:
1. yumdownloader rubygem-haml
2. sudo rpm -ivh --excludedocs rubygem-haml-2.2.24-1.fc13.noarch.rpm
3. haml
  
Actual results:
The aforementioned error is thrown.

Expected results:
No error should be thrown. Haml should work as expected.

Additional info:
Simply removing the %doc designation from VERSION and VERSION_NAME resolves this issue

Comment 1 Fedora Admin XMLRPC Client 2011-01-14 07:11:42 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Mo Morsi 2011-03-29 18:28:52 UTC
This was fixed a while back with this commit

http://pkgs.fedoraproject.org/gitweb/?p=rubygem-haml.git;a=commitdiff;h=ad95edc852ab4a359c59350613ba1c10bc16c0c5