Mailinglist Archive: opensuse-buildservice (266 mails)

< Previous Next >
[opensuse-buildservice] using a macro in the BuildRequires tag of a spec file leads to expansion error
  • From: Christopher Lang <christopher.lang@xxxxxxxxxx>
  • Date: Mon, 10 Nov 2008 23:19:08 +0100
  • Message-id: <200811102319.08807.christopher.lang@xxxxxxxxxx>

Hi,

I am just experimenting with a spec file (for Fedora) that includes this line:

BuildRequires: %kernel_module_package_buildreqs

The macro "%kernel_module_package_buildreqs" is defined in the
file "/usr/lib/rpm/redhat/macros" from package redhat-rpm-config, which is
installed (I checked that).


The Build server says: expansion error. Nothing
provides %kernel_module_package_buildreqs


It seems that the spec file walkthrough done by the build server before
running "rpmbuild" does not resolve this macro properly. The
consecutive "rpmbuild" call that the build server does in fact does resolve
the macro (I verified that manually).


Q: Is this the way it is supposed to be or should the build server actually
resolve the macro in the spec file?


There is a bug which is similar but in my case the macro is defined outside
of the .spec file while in the bug the macro is defined inside of the spec
file:

https://bugzilla.novell.com/show_bug.cgi?id=305425


Some hint is much appreciated.

I have to admit, that I am not runnig the latest version of the build server
(NTARS):
obs-server-0.5-3.1
obs-worker-0.5-3.1
obs-api-0.5-3.1

many thanks
Chris

http://www.acurana.de/

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups