Hi, On 2007-04-13 15:27:35 -0600, Troy Telford wrote:
In particular, SLES 10. The 'offending' parts from the spec file are along the lines of:
******* for flavor in %{flavors_to_build}; do rm -rf obj/$flavor cp -r source obj/$flavor make -C %kernel_source $flavor ${MODULES_CONF_PARAMS} \ M=$PWD/obj/$flavor/ \ modules done *******
I receive an error to the extent of:
******* + make -C %kernel_source '%{flavors_to_build}' make: *** %kernel_source: No such file or directory. Stop. error: Bad exit status from /var/tmp/rpm-tmp.25150 (%build) *******
In the SuSE RPM Macros, %kernel_source is defined as part of the %_kernel_module_package macro (which is itself called by %suse_kernel_module_package). For that matter, so is %{flavors_to_build}.
Are you sure? I can't find a "%kernel_source" macro.
Since I'm calling %_kernel_module_package without a problem, why aren't some of the other values it defines available?
The macros are installed as part of the 'rpm' package on SLES 10, which the log shows is installed. (And I'm aware on other distros it's released elsewhere...)
When I run the RPM creation command from a SLES 10 box, it builds fine.
Are you talking about your "bluesmoke" project in the BS? If yes it doesn't build correct on SLE_10 too (have a look at the buildlog, no kernel modules are built) - it just doesn't complain because it seems that the for loops aren't executed. Have a look at this document http://www.suse.de/~agruen/KMPM/KernelModulePackagesManual-CODE10.pdf - it really helps if you try to build kmp packages. At the end of the document there's an example spec file. Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org