[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r1070 - in glibc-package/trunk/debian: . script.in



Author: pb
Date: 2005-12-26 11:57:46 +0000 (Mon, 26 Dec 2005)
New Revision: 1070

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/script.in/kernelcheck.sh
Log:
add kernel version check for arm



Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2005-12-25 20:26:01 UTC (rev 1069)
+++ glibc-package/trunk/debian/changelog	2005-12-26 11:57:46 UTC (rev 1070)
@@ -14,6 +14,8 @@
     64kB pages on PowerPC.  (Closes: #344105)
   * Require binutils 2.16.1cvs20051109-1 to ensure that i386 biarch
     linking works properly.
+  * debian/script.in/kernelcheck.sh: Require kernel >= 2.4.0 on arm to
+    avoid llseek problem.  (Closes: #324795)
 
  -- GOTO Masanori <gotom@debian.org>  Tue, 20 Dec 2005 09:51:34 +0900
 

Modified: glibc-package/trunk/debian/script.in/kernelcheck.sh
===================================================================
--- glibc-package/trunk/debian/script.in/kernelcheck.sh	2005-12-25 20:26:01 UTC (rev 1069)
+++ glibc-package/trunk/debian/script.in/kernelcheck.sh	2005-12-26 11:57:46 UTC (rev 1070)
@@ -23,6 +23,11 @@
     realarch=`uname -m`
     kernel_ver=`uname -r`
 
+    # convert "armv4l" and similar to just "arm"
+    case $realarch in
+      arm*) realarch="arm";;
+    esac
+
     # intel i386 requires a recent kernel
     if [ "$realarch" = i386 ]
     then
@@ -140,3 +145,18 @@
 	    exit_check
 	fi
     fi
+
+    # arm requires 2.4 kernel to avoid "obsolete calling standard" problem
+    # with sys_llseek
+    if [ "$realarch" = arm ] \
+	&& [ "`dpkg --print-architecture`" = arm ]
+    then
+	if dpkg --compare-versions "$kernel_ver" lt 2.4.0
+	then
+	    echo WARNING: This version of glibc requires that you be running
+	    echo kernel version 2.4.0 or later.  Earlier kernels contained
+	    echo bugs that may render the system unusable if a modern version
+	    echo of glibc is installed.
+	    exit_check
+	fi
+    fi



Reply to: