[opensuse-buildservice] using a macro in the BuildRequires tag of a spec file leads to expansion error
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@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Mon, Nov 10, 2008 at 11:19:08PM +0100, Christopher Lang wrote:
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?
It has to be defined in the project configuration file. We already have that definition for the SUSE projects, but forgot to add it for Fedora. We now define it to "kernel-devel" for Fedora8/9. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Christopher Lang
-
Michael Schroeder