From 0327c07ad80d2376f0661970e29666856f6871b6d7b7ed67f00b03e301d08bd7 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 7 Sep 2011 08:10:41 +0000 Subject: [PATCH] Accepting request 81181 from home:a_jaeger:branches:openSUSE:Factory Fix LINUX_VERSION_CODE OBS-URL: https://build.opensuse.org/request/show/81181 OBS-URL: https://build.opensuse.org/package/show/Base:System/linux-glibc-devel?expand=0&rev=36 --- linux-glibc-devel.changes | 5 +++++ linux-glibc-devel.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/linux-glibc-devel.changes b/linux-glibc-devel.changes index b538936..17c19f8 100644 --- a/linux-glibc-devel.changes +++ b/linux-glibc-devel.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 7 08:07:24 UTC 2011 - aj@suse.de + +- Fix LINUX_VERSION_CODE + ------------------------------------------------------------------- Tue Sep 6 13:47:10 UTC 2011 - aj@suse.de diff --git a/linux-glibc-devel.spec b/linux-glibc-devel.spec index e6857e3..4156ada 100644 --- a/linux-glibc-devel.spec +++ b/linux-glibc-devel.spec @@ -85,9 +85,10 @@ cat > version.h <<-BOGUS #error " Please adjust the Makefile accordingly." #error "=======================================================" #else -#define UTS_RELEASE "%{version}" -#define LINUX_VERSION_CODE `bash -c 'v="%{version}";c=0;read a b <<< "${v//./ }";echo "$(( (($a) << 16) + (($b) << 8) + ($c) ))"'` -#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) +BOGUS +# Get LINUX_VERSION_CODE and KERNEL_VERSION directly from kernel +cat usr/include/linux/version.h >> version.h +cat >> version.h <<-BOGUS #endif BOGUS cat version.h