Patch imported from OE

Signed-off-by: Khem Raj <[email protected]>
---
 .../liboil-0.3.17/fix-unaligned-whitelist.patch    |   17 +++++++++++++++++
 meta/recipes-support/liboil/liboil_0.3.17.bb       |    6 ++++--
 2 files changed, 21 insertions(+), 2 deletions(-)
 create mode 100644 
meta/recipes-support/liboil/liboil-0.3.17/fix-unaligned-whitelist.patch

diff --git 
a/meta/recipes-support/liboil/liboil-0.3.17/fix-unaligned-whitelist.patch 
b/meta/recipes-support/liboil/liboil-0.3.17/fix-unaligned-whitelist.patch
new file mode 100644
index 0000000..79d53b6
--- /dev/null
+++ b/meta/recipes-support/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/meta/recipes-support/liboil/liboil_0.3.17.bb 
b/meta/recipes-support/liboil/liboil_0.3.17.bb
index fe8a22f..f342a82 100644
--- a/meta/recipes-support/liboil/liboil_0.3.17.bb
+++ b/meta/recipes-support/liboil/liboil_0.3.17.bb
@@ -10,10 +10,12 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=ad80780d9c5205d63481a0184e199a15 \
                     
file://testsuite/trans.c;endline=29;md5=380ecd43121fe3dcc0d8d7e5984f283d"
 
 DEPENDS = "glib-2.0"
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "http://liboil.freedesktop.org/download/${P}.tar.gz \
-           file://no-tests.patch;patch=1"
+           file://no-tests.patch \
+           file://fix-unaligned-whitelist.patch \
+          "
 
 SRC_URI[md5sum] = "47dc734f82faeb2964d97771cfd2e701"
 SRC_URI[sha256sum] = 
"105f02079b0b50034c759db34b473ecb5704ffa20a5486b60a8b7698128bfc69"
-- 
1.7.4.1


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to