[opensuse-kernel] Kernel release mismatch query
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' Kernel release mismatch: 2.6.37-%release_major-vanilla != 2.6.37-20-vanilla + exit 1 [1]->https://build.opensuse.org/package/view_file?file=kernel-vanilla.spec&package=kernel-vanilla&project=home%3Adoiggl&srcmd5=984c4dda6610cbc42946637e23d1702f [2]->https://build.opensuse.org/package/rawlog?arch=x86_64&package=kernel-vanilla&project=home%3Adoiggl&repository=openSUSE_11.3 -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
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
participants (2)
-
doiggl@velocitynet.com.au
-
Marcus Meissner