Bug 567231 - rpmlint macro-in-%description / unexpanded-macro %description seems wrong when we use %% to mean a percent sign
Summary: rpmlint macro-in-%description / unexpanded-macro %description seems wrong whe...
Keywords:
Status: CLOSED DUPLICATE of bug 551366
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-22 11:47 UTC by Richard W.M. Jones
Modified: 2010-02-22 17:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-22 17:38:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2010-02-22 11:47:25 UTC
Description of problem:

I have an RPM %description that contains this text:

%description
[..]
In order to get access to the hive files themselves, you can copy them
from a Windows machine.  They are usually found in
%%systemroot%%\system32\config.  For virtual machines we recommend
[..]

RPM itself correctly converts the double percent signs to single percent
signs, ie:

$ rpm -qip /home/rjones/rpmbuild/SRPMS/hivex-1.1.2-1.fc12.src.rpm
[..]
In order to get access to the hive files themselves, you can copy them
from a Windows machine.  They are usually found in
%systemroot%\system32\config.  For virtual machines we recommend

However rpmlint gives a warning:

hivex.src: W: macro-in-%description %systemroot

I think this warning is wrong.

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

rpmlint-0.91-1.fc12.noarch

rpmlint-0.94-1.fc13.noarch gives a slightly different warning:

hivex.src: W: unexpanded-macro %description -l C %systemroot

How reproducible:

Always.

Steps to Reproduce:
1. Use %%systemroot%% in a description.
2. Build the RPM.
3. Compare RPM output to rpmlint output.

Additional info:

I cannot find any documentation on the correct use of escaping
in RPM spec files...

Comment 1 Ville Skyttä 2010-02-22 17:38:39 UTC

*** This bug has been marked as a duplicate of bug 551366 ***


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