tag 561569 + patch
thanks

Hi,

The attached patch makes make-kpkg look for utsrelease.h in its new
location.

-- 
Matt                                            http://ftbfs.org/kraai
diff -ru kernel-package-12.031~/kernel/ruleset/misc/version_vars.mk kernel-package-12.031/kernel/ruleset/misc/version_vars.mk
--- kernel-package-12.031~/kernel/ruleset/misc/version_vars.mk	2009-02-17 00:43:08.000000000 -0800
+++ kernel-package-12.031/kernel/ruleset/misc/version_vars.mk	2009-12-22 06:03:02.000000000 -0800
@@ -138,11 +138,13 @@
 EXTRAV_ARG :=
 endif
 
-UTS_RELEASE_HEADER=$(call doit,if [ -f include/linux/utsrelease.h ]; then  \
-	                       echo include/linux/utsrelease.h;            \
-	                   else                                            \
-                               echo include/linux/version.h ;              \
-	                   fi)
+UTS_RELEASE_HEADER=$(call doit,if [ -f include/generated/utsrelease.h ]; then \
+                               echo include/generated/utsrelease.h;           \
+                           elif [ -f include/linux/utsrelease.h ]; then       \
+                               echo include/linux/utsrelease.h;               \
+                           else                                               \
+                               echo include/linux/version.h;                  \
+                           fi)
 UTS_RELEASE_VERSION=$(call doit,if [ -f $(UTS_RELEASE_HEADER) ]; then                    \
                  grep 'define UTS_RELEASE' $(UTS_RELEASE_HEADER) |                       \
                  perl -nle  'm/^\s*\#define\s+UTS_RELEASE\s+("?)(\S+)\1/g && print $$2;';\

Reply via email to