[OpenAFS-devel] openafs on debian with linux 2.6.18 kernel

Marcus Watts mdw@umich.edu
Wed, 04 Oct 2006 06:14:57 -0400


It seems UTS_RELEASE is no longer to be found in include/linux/version.h
in 2.6.18.  The following patch to the debian openafs source seems to
work (or at least compile):

				-Marcus Watts

diff -ru modules/openafs/debian/kernel-version modules+/openafs/debian/kernel-version
--- modules/openafs/debian/kernel-version       2006-09-30 03:39:31.000000000 -0400
+++ modules+/openafs/debian/kernel-version      2006-10-04 06:03:42.000000000 -0400
@@ -11,5 +11,13 @@
 my $line = <VERSION>;
 if ($line =~ /"(.+)"/) {
     print "$1\n";
+    $found = 1;
+}
+exit(0) if ($found);
+unless ($ksrc && open (VERSION, "$ksrc/include/config/kernel.release")) {
+    exit 0;
+}
+if ($line = <VERSION>) {
+    print "$line";
 }
 exit 0;