Bug 1339457

Summary: %check RPM macro used in %changelog needs to be escaped
Product: Red Hat Enterprise Linux 7 Reporter: Kamil Dudka <kdudka>
Component: nss-softoknAssignee: Kai Engert (:kaie) (inactive account) <kengert>
Status: CLOSED ERRATA QA Contact: Alicja Kario <hkario>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: emaldona, hkario, kengert, ksrot, qe-baseos-security, rrelyea
Target Milestone: pre-dev-freezeKeywords: EasyFix, Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nss-softokn-3.16.2.3-14.4.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1332842 Environment:
Last Closed: 2016-11-04 03:57:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Escape rpm macro in spec file comment rrelyea: review+

Description Kamil Dudka 2016-05-25 05:57:37 UTC
Same bug in nss-softokn:

* Wed Apr 20 2016 Elio Maldonado <emaldona> - 3.16.2.3-14.3
- Fix a flaw in %check for nss not building on arm
- Resolves: Bug 1200856


+++ This bug was initially created as a clone of Bug #1332842 +++

Description of problem:
The following change log entry contains unescaped RPM macro, which is not allowed:

* Wed Apr 20 2016 Elio Maldonado <emaldona> - 3.21.0-12
- Fix a flaw in %check for nss not building on arm
- Resolves: Bug 1200856

%check should be spelled as %%check instead.


Version-Release number of selected component (if applicable):
nss-3.21.0-12.el7


How reproducible:
Easily.


Steps to Reproduce:
1. rpmlint nss.spec


Actual results:
[...]
nss.spec:874: W: macro-in-%changelog %check
[...]


Additional info:
This causes problems to csmock (a tool for fully automatic static analysis of RPM packages).

Comment 4 Elio Maldonado Batiz 2016-05-25 14:18:49 UTC
Created attachment 1161457 [details]
Escape rpm macro in spec file comment

Comment 5 Bob Relyea 2016-05-25 19:23:20 UTC
Comment on attachment 1161457 [details]
Escape rpm macro in spec file comment

err, this diff only had comment changes, no actual changes to the .spec.

Comment 6 Bob Relyea 2016-05-25 19:42:18 UTC
Comment on attachment 1161457 [details]
Escape rpm macro in spec file comment

r+ ok, caught up with the bug comments. The patch is indeed only a change to the comments, but the comments were causing issues.

Comment 12 errata-xmlrpc 2016-11-04 03:57:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2335.html