[oe] [PATCH] liboil 0.3.17: fix cross-compile on x86_64

Michael Smith msmith at cbnco.com
Wed Nov 3 16:39:10 UTC 2010


Fix typo in whitelist of hosts allowing unaligned memory access.

Signed-off-by: Michael Smith <msmith at cbnco.com>
---
 .../liboil-0.3.17/fix-unaligned-whitelist.patch    |   17 +++++++++++++++++
 recipes/liboil/liboil_0.3.17.bb                    |    7 +++++--
 2 files changed, 22 insertions(+), 2 deletions(-)
 create mode 100644 recipes/liboil/liboil-0.3.17/fix-unaligned-whitelist.patch

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
index 0000000..79d53b6
--- /dev/null
+++ b/recipes/liboil/liboil-0.3.17/fix-unaligned-whitelist.patch
@@ -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
+ 	;;
diff --git a/recipes/liboil/liboil_0.3.17.bb b/recipes/liboil/liboil_0.3.17.bb
index 83cf4c1..2267821 100644
--- a/recipes/liboil/liboil_0.3.17.bb
+++ b/recipes/liboil/liboil_0.3.17.bb
@@ -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
 
-- 
1.7.0.4





More information about the Openembedded-devel mailing list