Hello everyone,
Recently I used the document http://www.novell.com/developer/Kmpm-code11.pdf to build hello module.
When I used BUILD command to build hello rpm package. Everything is ok.
However when I used rpmbuild command to build
rpmbuild -ba hello.spec
I got the error: "error: line 10: Dependency tokens must begin with alpha-numeric, ‘_’ or ‘/’: BuildRequires: %kernel_module_package_buildreqs "
I tried to change BuildRequires to BuildRequires: kernel-default-devel kernel-source kernel-syms
and continue building but it meets another issue
“error: line 21: Unknown tag: %kernel_module_package”.
Does rpmbuild support these macro? How can rpmbuild understand the macro %kernel_module_package and %kernel_module_package_buildreqs?
My build machine is currently installed suse 3.0.26
Thank you,
On Fri 17 May 2013 09:26:02 AM CDT, naruto uzu wrote:
Hello everyone,
Recently I used the document
http://www.novell.com/developer/Kmpm-code11.pdf to build hello module.
When I used BUILD command to build hello rpm package. Everything is ok.
However when I used rpmbuild command to build
rpmbuild -ba hello.spec
I got the error: "error: line 10: Dependency tokens must begin with
alpha-numeric, ‘_’ or ‘/’: BuildRequires:
%kernel_module_package_buildreqs "
I tried to change BuildRequires to BuildRequires: kernel-default-devel
kernel-source kernel-syms
and continue building but it meets another issue
“error: line 21: Unknown tag: %kernel_module_package”.
Does rpmbuild support these macro? How can rpmbuild understand the
macro %kernel_module_package and %kernel_module_package_buildreqs?
My build machine is currently installed suse 3.0.26
Thank you,
Hi
It should be %suse_kernel_module_package. Sounds your on a SLE machine
gong by that kernel.
Have you looked at using the Open Build Service and the osc command
locally to build?
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.3 (x86_64) Kernel 3.7.10-1.4-desktop
up 2 days 18:51, 3 users, load average: 0.15, 0.10, 0.07
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Arrandale