rpm build error with 6.1

Farkas Levente lfarkas at lfarkas.org
Sat May 21 21:09:43 UTC 2011


hi,
it seems most of the rpm in 6.1 have the same problems as described in:
http://www.mail-archive.com/buildsys@lists.fedoraproject.org/msg00741.html

many src.rpm (i mean many hundreds of packages) in rhel-6.1 when try to
rebuild in mock gives such an error:
------------------------------------------------
Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target i686
--nodeps builddir/build/SPECS/OpenEXR.spec']
error: Macro % has illegal name (%define)
error: Macro % has illegal name (%define)
error: parse error in expression
error: /builddir/build/SPECS/OpenEXR.spec:2: parseExpressionBoolean
returns -1
error: Macro % has illegal name (%define)
Building target platforms: i686
Building for target i686
Child returncode was: 1
------------------------------------------------
where the spec contains this line:
%if 0%{?fedora} > 7 || 0%{?rhel} >= 6
which seems to good to me. and such problems don't happened with 6.0.

does anybody know the reason for this and even better the solution to
build these packages?
thanks in advance.
regards.

-- 
  Levente                               "Si vis pacem para bellum!"


More information about the buildsys mailing list