Bug 599427 - rpmlint does not ignore comments in the spec
rpmlint does not ignore comments in the spec
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: rpmlint (Show other bugs)
13
All Linux
low Severity high
: ---
: ---
Assigned To: Ville Skyttä
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-03 04:29 EDT by Ankur Sinha (FranciscoD)
Modified: 2010-07-01 14:54 EDT (History)
3 users (show)

See Also:
Fixed In Version: rpmlint-0.98-1.fc13
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-07-01 14:47:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
sample spec for testing (2.27 KB, text/x-rpm-spec)
2010-06-03 04:30 EDT, Ankur Sinha (FranciscoD)
no flags Details

  None (edit)
Description Ankur Sinha (FranciscoD) 2010-06-03 04:29:32 EDT
Description of problem:
rpmlint gives errors/warnings even based on comments in a spec. The comments should be ignored by rpmlint


Version-Release number of selected component (if applicable):
[Ankur@localhost SPECS]$ rpm -q rpmlint
rpmlint-0.97-1.fc13.noarch

How reproducible:
Add a comment to a spec which has an "rpmlint error"


Steps to Reproduce:
1. add a comment which would otherwise be an error
2. run rpmlint

  
Actual results:
It gives warnings on the comment too

Expected results:
Comments should be ignored

Additional info:
Try this spec:

http://ankursinha.fedorapeople.org/libgexiv2/libgexiv2.spec
(attaching it for future reference)

line 36 is a comment on ./configure.

rpmlint gives:

[Ankur@localhost SPECS]$ rpmlint libgexiv2.spec 
libgexiv2.spec:36: W: configure-without-libdir-spec
Comment 1 Ankur Sinha (FranciscoD) 2010-06-03 04:30:23 EDT
Created attachment 419276 [details]
sample spec for testing
Comment 3 Fedora Update System 2010-06-23 15:53:19 EDT
rpmlint-0.98-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/rpmlint-0.98-1.fc13
Comment 4 Fedora Update System 2010-06-23 15:53:52 EDT
rpmlint-0.98-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/rpmlint-0.98-1.fc12
Comment 5 Fedora Update System 2010-06-24 12:23:40 EDT
rpmlint-0.98-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update rpmlint'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/rpmlint-0.98-1.fc13
Comment 6 Fedora Update System 2010-07-01 14:46:54 EDT
rpmlint-0.98-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 7 Fedora Update System 2010-07-01 14:54:06 EDT
rpmlint-0.98-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

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