[Bug 1058378] Re: Got a %endif with no %if

Mike Miller mike.t.miller at gmail.com
Sun Sep 30 15:12:50 UTC 2012


You must have a custom RPM configuration that I don't have, either in
/etc/rpm or ~/.rpmmacros, to define %if_target_cpu. Here's what I get
attempting to build this package on Ubuntu 12.04:

mike at precise:~$ rpm --version
RPM version 4.9.1.1
mike at precise:~$ rpmbuild -bb rpmbuild/SPECS/stm-cross-gcc.spec 
error: parse error in expression
error: /home/mike/rpmbuild/SPECS/stm-cross-gcc.spec:3: parseExpressionBoolean returns -1

and on Ubuntu 12.10 beta:

mike at quantal:~$ rpm --version
RPM version 4.10.0
mike at quantal:~$ rpmbuild -bb rpmbuild/SPECS/stm-cross-gcc.spec 
error: line 3: Unknown tag: %if_target_cpu sh

What do you get from running "rpm --eval %if_target_cpu"?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rpm in Ubuntu.
https://bugs.launchpad.net/bugs/1058378

Title:
  Got a %endif with no %if

Status in “rpm” package in Ubuntu:
  New

Bug description:
  Ubuntu 12.10 beta2
  rpm 4.10

  When compiling this spec

  Summary: GNU Compiler Collection
  Name:% {_stm_pkg_prefix}-cross-gcc
  % if_target_cpu sh
  Version: 4.5.2
  % else
  % if_target_cpu arm
  Version: 4.5.0
  % else
  Version: 4.2.4
  % endif
  % endif
  Release: 78
  License: GPL / LGPL
  Group: Development / Languages

  Compilation stops with an error

  Got a% endif with no% if

  With version 4.9.9 compiles ok.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rpm/+bug/1058378/+subscriptions




More information about the foundations-bugs mailing list