kernel macros

Elan Ruusamäe glen at delfi.ee
Wed Feb 9 18:02:22 CET 2005


hi

maybe 2>/dev/null the kernel macros. because the missing dependancy error is 
generated anyway?

error: file /usr/src/linux/include/linux/version.h: No such file or directory
error: file /usr/src/linux/include/linux/version.h: No such file or directory
error: Failed build dependencies:
        kernel-module-build is needed by zaptel-1.0.0-2.1
Error: package build failed. (no more info)


$ grep version.h /usr/lib/rpm/macros|cut -c-60
%releq_kernel_up()              %(LC_ALL="C" rpm -qf --qf 'kernel-up = %
%releq_kernel_smp()             %(LC_ALL="C" rpm -qf --qf 'kernel-smp
%requires_releq_kernel_up()     %(LC_ALL="C" rpm -qf --qf 'Pre
%requires_releq_kernel_smp()    %(LC_ALL="C" rpm -qf --qf 'Pr
%__kernel_ver   %([ -f %{_kernelsrcdir}/include/linux/versio


$ rpm --eval '%releq_kernel_up'
error: file /usr/src/linux/include/linux/version.h: No such file or directory

$ rpm --eval '%releq_kernel_smp'
error: file /usr/src/linux/include/linux/version.h: No such file or directory

$ rpm --eval '%requires_releq_kernel_up'
error: file /usr/src/linux/include/linux/version.h: No such file or directory

$ rpm --eval '%requires_releq_kernel_smp'
error: file /usr/src/linux/include/linux/version.h: No such file or directory




-- 
glen




More information about the pld-devel-en mailing list