Bug 90856 - [rpmbuild] fails to parse nested %if's
Summary: [rpmbuild] fails to parse nested %if's
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm-build
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-05-14 18:51 UTC by Enrico Scholz
Modified: 2007-04-18 16:53 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-29 21:49:32 UTC
Embargoed:


Attachments (Terms of Use)

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.


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