Skip to contentSkip to conversation

cluster cman-kernel/configure cmirror-kernel/c ...

Cluster-devel [email protected] 1 participant 1 message Feb 22, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: STABLE
Changes by: rpeterso at sourceware.org 2007-02-22 16:20:50

Modified files:
cman-kernel : configure
cmirror-kernel : configure
dlm-kernel : configure
gfs-kernel : configure
gnbd/scripts : linuxver
gnbd-kernel : configure

Log message:
Fix configure scripts so they figure out the correct kernel version and module install location on newer kernels.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman-kernel/configure.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.3&r2=1.3.8.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror-kernel/configure.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.1.4.1&r2=1.1.4.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm-kernel/configure.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.3&r2=1.3.8.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/configure.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.3&r2=1.3.8.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/scripts/linuxver.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.1&r2=1.1.8.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd-kernel/configure.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.3&r2=1.3.8.1

cman-kernel/Attic/configure +1 -1
@@ -92,7 +92,7 @@
 
 print OFILE "# This file was generated by configure from defines.mk.input\n";
 
-open VER, "<$kernel_src/include/linux/version.h" or die "Can't open $kernel_src/include/linux/version.h";
+open VER, "<$kernel_src/include/linux/utsrelease.h" or die "Can't open $kernel_src/include/linux/utsrelease.h";
 while(<VER>){
     chomp;
     if( $_ =~ /^#define\s*UTS_RELEASE\s*\"(.*)\"$/ ){
cmirror-kernel/Attic/configure +1 -1
@@ -92,7 +92,7 @@
 
 print OFILE "# This file was generated by configure from defines.mk.input\n";
 
-open VER, "<$kernel_src/include/linux/version.h" or die "Can't open $kernel_src/include/linux/version.h";
+open VER, "<$kernel_src/include/linux/utsrelease.h" or die "Can't open $kernel_src/include/linux/utsrelease.h";
 while(<VER>){
     chomp;
     if( $_ =~ /^#define\s*UTS_RELEASE\s*\"(.*)\"$/ ){
dlm-kernel/Attic/configure +1 -1
@@ -92,7 +92,7 @@
 
 print OFILE "# This file was generated by configure from defines.mk.input\n";
 
-open VER, "<$kernel_src/include/linux/version.h" or die "Can't open $kernel_src/include/linux/version.h";
+open VER, "<$kernel_src/include/linux/utsrelease.h" or die "Can't open $kernel_src/include/linux/utsrelease.h";
 while(<VER>){
     chomp;
     if( $_ =~ /^#define\s*UTS_RELEASE\s*\"(.*)\"$/ ){
gfs-kernel/configure +1 -1
@@ -92,7 +92,7 @@
 
 print OFILE "# This file was generated by configure from defines.mk.input\n";
 
-open VER, "<$kernel_src/include/linux/version.h" or die "Can't open $kernel_src/include/linux/version.h";
+open VER, "<$kernel_src/include/linux/utsrelease.h" or die "Can't open $kernel_src/include/linux/utsrelease.h";
 while(<VER>){
     chomp;
     if( $_ =~ /^#define\s*UTS_RELEASE\s*\"(.*)\"$/ ){
gnbd/scripts/linuxver +2 -2
@@ -37,11 +37,11 @@
 
     # if there was an argument to linuxver, use it as the linux source directory
     if ($linux_src) {
-      $file = $linux_src . '/include/linux/version.h';
+      $file = $linux_src . '/include/linux/utsrelease.h';
     }
     # otherwise, use the default 
     else {
-       $file = '/usr/src/linux/include/linux/version.h';
+       $file = '/usr/src/linux/include/linux/utsrelease.h';
     }
       
 
gnbd-kernel/configure +1 -1
@@ -92,7 +92,7 @@
 
 print OFILE "# This file was generated by configure from defines.mk.input\n";
 
-open VER, "<$kernel_src/include/linux/version.h" or die "Can't open $kernel_src/include/linux/version.h";
+open VER, "<$kernel_src/include/linux/utsrelease.h" or die "Can't open $kernel_src/include/linux/utsrelease.h";
 while(<VER>){
     chomp;
     if( $_ =~ /^#define\s*UTS_RELEASE\s*\"(.*)\"$/ ){