Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 456103 - rpm: %if "%{?macro}" == "foo" constructs give error: parseExpressionBoolean returns -1
Summary: rpm: %if "%{?macro}" == "foo" constructs give error: parseExpressionBoolean r...
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
: 456420 (view as bug list)
Depends On:
Blocks: F10Target
TreeView+ depends on / blocked
Reported: 2008-07-21 15:26 UTC by Rex Dieter
Modified: 2008-08-04 06:50 UTC (History)
4 users (show)

Fixed In Version: rpm-4.5.90-0.git8444.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-08-04 06:50:31 UTC

Attachments (Terms of Use)

Description Rex Dieter 2008-07-21 15:26:49 UTC
Constructs of the form
%if "%{?macro}" == "foo"
are no longer accepted, and yield 
foo.spec:12: parseExpressionBoolean returns -1
errors now

Comment 1 Rex Dieter 2008-07-21 15:28:14 UTC
For example,

We worked-around it by simply avoiding using constructs of that form (I think we
converted easy to a numeric compare instead).

Comment 2 Panu Matilainen 2008-07-22 11:43:27 UTC
Easily reproduced, the regression seems to originate from commit

Florian, please have a look... (I'm on vacation and computer time is somewhat
limited ;)

Comment 3 Panu Matilainen 2008-07-24 07:49:18 UTC
*** Bug 456420 has been marked as a duplicate of this bug. ***

Comment 4 Florian Festi 2008-07-25 10:33:53 UTC
One problem was an parsing error from empty double quoted strings ("") that
happen when %{?macro} in not defined. This is fixed upstream.

Comment 5 Panu Matilainen 2008-08-04 06:50:31 UTC
In rawhide now.

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