Bug 555284

Summary: test for unexpanded macros in srpms
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: rpmlintAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: ajax, manuel.wolfshant, tmz, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rpmlint-0.94-1.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-25 23:19:56 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 Kamil Páral 2010-01-14 09:56:37 UTC
Koji builds the SRPM in a fairly empty environment. Not all rpm macro definitions may be available at that time. The built SRPM should not contain unexpanded macros in any text field like %description.

----
We have received this ticket as a part of our comparative testing tool - rpmguard:
https://fedorahosted.org/autoqa/ticket/108
We believe this is more likely concern of rpmlint so we redirect the request here.

Comment 1 Ville Skyttä 2010-01-14 17:25:03 UTC
rpmlint should already do that for summary, description, group, buildhost, license, and changelog.  Do you have an reproducer where it doesn't?  I suppose more tags could be added to the list of checked ones though.

$ rpm -qp --qf="%{DESCRIPTION}\n" foo-1.0-1.fc11.src.rpm
Foo %foo bar

$ rpmlint foo-1.0-1.fc11.src.rpm
foo.src: W: macro-in-%description %foo

$ rpmlint -I macro-in-%description
macro-in-%description:
This tag contains something that looks like an unexpanded macro; this is often
the sign of a misspelling. Please check your specfile.

Comment 2 Kamil Páral 2010-01-15 08:50:34 UTC
Adding Adam Jackson to needinfo as he is the reporter of the original bug.

Comment 3 Ville Skyttä 2010-01-19 22:09:18 UTC
Upstream rpmlint svn now checks for unexpanded macros in a lot more tags, this will most likely be in rpmlint 0.93 once released.
http://rpmlint.zarb.org/cgi-bin/trac.cgi/changeset/1697

Comment 4 Ville Skyttä 2010-01-25 23:19:56 UTC
Closing as rawhide (0.93-2 will hopefully appear in the next push), feel free to reopen or submit another bug if some tags for which this would be beneficial got left out.

Comment 5 Fedora Update System 2010-01-25 23:28:51 UTC
rpmlint-0.93-2.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/rpmlint-0.93-2.fc12

Comment 6 Fedora Update System 2010-01-31 23:23:14 UTC
rpmlint-0.94-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/rpmlint-0.94-1.fc12

Comment 7 Fedora Update System 2010-02-20 00:09:41 UTC
rpmlint-0.94-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.