[Pkg-chromium-maint] Bug#660187: #660187 chromium-browser: Entry #3 in data pack points off end of file. Was the file corrupted?

shawn shawnlandden at gmail.com
Tue Jun 12 04:49:25 UTC 2012


tags 660187 + patch

As these unaligned memory accesses are not going to be fixed in time for
wheezy, here is an addition to the existing wrapper script that informs
the user if they are trying to run chromium on armel in a know-bad
configuration, and tells them what they need to do to make it work.

diff --git a/chromium b/usr/bin/chromium
index 0c9960f..8aa83a3 100755
--- a/chromium
+++ b/usr/bin/chromium
@@ -24,6 +24,22 @@ usage () {
   echo " See 'man chromium' for more details"
}

+if uname -m | grep -q "armv[45]" ; then
+  if grep -q fixup /proc/cpu/alignment ; then
+    true # We are good
+  else
+    echo "$APPNAME is buggy on armel in that it performs unaligned
memory accesses,"
+    echo "which are not supported by the arm architecture before
armv6."
+    echo ""
+    echo "To run $APPNAME on armv4t and armv5t you must:"
+    echo ""
+    echo "echo 2 > /proc/cpu/alignment"
+    echo ""
+    echo "as root, and then rerun $APPNAME"
+    exit 1
+  fi
+fi
+
if [ -f /etc/$APPNAME/default ] ; then
   . /etc/$APPNAME/default
fi

-- 
-Shawn Landden






More information about the Pkg-chromium-maint mailing list