Bug 456420 - syntax error in expression when building packages
syntax error in expression when building packages
Status: CLOSED DUPLICATE of bug 456103
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
rawhide
All Linux
low Severity low
: ---
: ---
Assigned To: Panu Matilainen
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-23 10:00 EDT by Karsten Hopp
Modified: 2008-07-24 03:49 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-07-24 03:49:17 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Karsten Hopp 2008-07-23 10:00:37 EDT
Description of problem:
hagen:[RHEL-2_1] >make prep                                             
error: syntax error in expression                                       
error: vim.spec:8: parseExpressionBoolean returns -1                    
error: query of specfile vim.spec failed, can't parse                   
error: syntax error in expression                                       
error: vim.spec:8: parseExpressionBoolean returns -1                    
error: query of specfile vim.spec failed, can't parse 

Version-Release number of selected component (if applicable):
rpm-4.5.90-0.git8426.9

How reproducible:


Steps to Reproduce:
1. use a spec file with the following lines (used to switch features on/off)
%define alpha %{nil}
%define rescue %{nil}
%define rel 7.22
%if "%{alpha}" != ""
Release: 0.%{alpha}.%{rel}%{rescue}
%else
Release: %{rel}%{rescue}

This bails out at the %if line, same happens p.e. for
%if %alpha
%if %{alpha}
%if "%{alpha}" == "%{nil}"
  
Actual results:
hagen:[RHEL-2_1] >make prep                                             
error: syntax error in expression                                       
error: vim.spec:8: parseExpressionBoolean returns -1                    
error: query of specfile vim.spec failed, can't parse                   
error: syntax error in expression                                       
error: vim.spec:8: parseExpressionBoolean returns -1                    
error: query of specfile vim.spec failed, can't parse
Comment 1 Panu Matilainen 2008-07-24 03:49:17 EDT

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

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