liboil 0.3.17: fix cross-compile on x86_64
authorMichael Smith <msmith@cbnco.com>
Wed, 3 Nov 2010 06:39:10 +0000 (06:39 +0000)
committerMichael Smith <msmith@cbnco.com>
Thu, 4 Nov 2010 15:37:02 +0000 (11:37 -0400)
Fix typo in whitelist of hosts allowing unaligned memory access.

Signed-off-by: Michael Smith <msmith@cbnco.com>
recipes/liboil/liboil-0.3.17/fix-unaligned-whitelist.patch [new file with mode: 0644]
recipes/liboil/liboil_0.3.17.bb

diff --git a/recipes/liboil/liboil-0.3.17/fix-unaligned-whitelist.patch b/recipes/liboil/liboil-0.3.17/fix-unaligned-whitelist.patch
new file mode 100644 (file)
index 0000000..79d53b6
--- /dev/null
@@ -0,0 +1,17 @@
+Upstream: https://bugs.freedesktop.org/show_bug.cgi?id=31358
+
+configure: fix whitelisting of x86_64 unaligned memory access
+
+Fix typo in whitelist so cross-compile works for x86_64.
+
+--- liboil-0.3.17/m4/as-unaligned-access.m4.orig       2009-02-26 14:40:08.000000000 -0500
++++ liboil-0.3.17/m4/as-unaligned-access.m4    2010-11-03 12:19:55.000000000 -0400
+@@ -9,7 +9,7 @@
+         _AS_ECHO_N([(blacklisted) ])
+         as_cv_unaligned_access=no
+       ;;
+-      i?86*|x86_64|amd64|powerpc*|m68k*|cris*)
++      i?86*|x86_64*|amd64*|powerpc*|m68k*|cris*)
+         _AS_ECHO_N([(whitelisted) ])
+         as_cv_unaligned_access=yes
+       ;;
index 83cf4c1..2267821 100644 (file)
@@ -1,11 +1,14 @@
 DESCRIPTION = "Liboil is a library of simple functions that are optimized for various CPUs."
 HOMEPAGE = "http://liboil.freedesktop.org/"
 LICENSE = "liboil"
-PR = "r0"
+PR = "r1"
 
 DEPENDS = "glib-2.0"
 
-SRC_URI = "http://liboil.freedesktop.org/download/${P}.tar.gz"
+SRC_URI = " \
+       http://liboil.freedesktop.org/download/${P}.tar.gz \
+       file://fix-unaligned-whitelist.patch;apply=yes \
+"
 
 inherit autotools pkgconfig