]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
* The UTS_RELEASE string is no longer found in linux/version.h in
authorRuss Allbery <rra@debian.org>
Wed, 4 Oct 2006 18:52:39 +0000 (18:52 +0000)
committerRuss Allbery <rra@debian.org>
Wed, 4 Oct 2006 18:52:39 +0000 (18:52 +0000)
  2.6.18, so fall back on looking in config/kernel.release.  Thanks to
  Marcus Watts for the patch.

debian/changelog
debian/kernel-version

index 2f8e4dcd7a8ec193d6ac8c9b6c2ed53269d850a7..90eaa1acfdcd0513f5c580c7dda50bb321a75af7 100644 (file)
@@ -1,8 +1,11 @@
 openafs (1.4.2~fc4-3) unstable; urgency=low
 
   * Apply upstream patch to fix klog segfaults.  (Closes: #390940)
+  * The UTS_RELEASE string is no longer found in linux/version.h in
+    2.6.18, so fall back on looking in config/kernel.release.  Thanks to
+    Marcus Watts for the patch.
 
- -- Russ Allbery <rra@debian.org>  Tue,  3 Oct 2006 17:09:23 -0700
+ -- Russ Allbery <rra@stanford.edu>  Wed,  4 Oct 2006 11:52:20 -0700
 
 openafs (1.4.2~fc4-2) unstable; urgency=low
 
index 093e7d91c224969bcbf4aa59b79745b1efe1df44..a1985a277f7dafd1a73d4dc32d4c362d8f9513c9 100755 (executable)
@@ -8,8 +8,17 @@ my $ksrc = shift;
 unless ($ksrc && open (VERSION, "$ksrc/include/linux/version.h")) {
     exit 0;
 }
+my $found;
 my $line = <VERSION>;
 if ($line =~ /"(.+)"/) {
     print "$1\n";
+    $found = 1;
+}
+exit 0 if $found;
+unless (open (VERSION, "$ksrc/include/config/kernel.release")) {
+    exit 0;
+}
+if ($line = <VERSION>) {
+    print "$line";
 }
 exit 0;