On Wed, Feb 09, 2011 at 10:21:45PM +1100, doiggl@velocitynet.com.au wrote:
Hello, How this test be fixed ? spec file see [1] Thanks Glenn
TEST: krel=$(make -s kernelrelease $MAKE_ARGS)
if [ "$krel" != "%kernelrelease-%build_flavor" ]; then echo "Kernel release mismatch: $krel != %kernelrelease-%build_flavor"
&2 exit 1 fi
RESULT:from log[2]
make: Leaving directory `/usr/src/packages/BUILD/kernel-vanilla-2.6.37/linux-2.6.37' ++ make -s kernelrelease -C /usr/src/packages/BUILD/kernel-vanilla-2.6.37/linux-2.6.37 O=/usr/src/packages/BUILD/kernel-vanilla-2.6.37/linux-obj -C /usr/src/packages/BUILD/kernel-vanilla-2.6.37/linux-2.6.37 O=/usr/src/packages/BUILD/kernel-vanilla-2.6.37/linux-obj + krel=2.6.37-%release_major-vanilla + '[' 2.6.37-%release_major-vanilla '!=' 2.6.37-20-vanilla ']' + echo 'Kernel release mismatch: 2.6.37-%release_major-vanilla != 2.6.37-20-vanilla'
It looks like this macro is not defined in your .spec file, otherwise it would be replaced. Your kernel-spec-macros file in your sources is not up to date with the head kernel. I am attaching the current one. Ciao, Marcus