Bug 90856

Summary: [rpmbuild] fails to parse nested %if's
Product: [Retired] Red Hat Raw Hide Reporter: Enrico Scholz <rh-bugzilla>
Component: rpm-buildAssignee: Jeff Johnson <jbj>
Status: CLOSED UPSTREAM QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-29 21:49:32 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 Enrico Scholz 2003-05-14 18:51:10 UTC
Description of problem:

rpmbuild fails to parse spec-files like

---
%define var	0

Summary:	none
Name:		foo
Version:	0.1
Release:	1
License:	none
Group:		none

%description

%if 0
%if %{var}

%endif
%endif
---

| $ rpmbuild -bb foo.spec  
| error: parse error in expression
| error: /tmp/foo.spec:13: parseExpressionBoolean returns -1


When the condition in the first %if evaluates to true, things are fine.


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

rpm-build-4.2-0.69


How reproducible:

100%

Comment 1 Bill Nottingham 2005-09-29 21:49:32 UTC
Closing bugs on older, no longer supported, releases. Apologies for any lack of
response.

For RPM issues, please try a current release such as Fedora Core 4; if bugs
persist, please open a new issue.