Bug 627454 - rubygem-haml VERSION and VERSION_NAME files should not be %doc
Summary: rubygem-haml VERSION and VERSION_NAME files should not be %doc
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rubygem-haml
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Mo Morsi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-26 04:13 UTC by Mo Morsi
Modified: 2011-03-29 18:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-29 18:28:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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