[oe] [meta-oe][PATCH] LuaJIT: Upgrade 2.0.0 -> 2.0.1

Khem Raj raj.khem at gmail.com
Fri May 10 18:07:17 UTC 2013


Fix stripping related warnings
Drop foldarith_for_spe patch not neded anymore
QA Error about elocations in .text are still there like 2.0.0

Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 .../disable_lj_vm_foldarith_for_spe.patch          |   13 --------
 ...p-automatically-this-leaves-the-stripping.patch |   33 ++++++++++++++++++++
 .../luajit/{luajit_2.0.0.bb => luajit_2.0.1.bb}    |   13 ++++----
 3 files changed, 39 insertions(+), 20 deletions(-)
 delete mode 100644 meta-oe/recipes-devtools/luajit/luajit-2.0.0/disable_lj_vm_foldarith_for_spe.patch
 create mode 100644 meta-oe/recipes-devtools/luajit/luajit/0001-Do-not-strip-automatically-this-leaves-the-stripping.patch
 rename meta-oe/recipes-devtools/luajit/{luajit_2.0.0.bb => luajit_2.0.1.bb} (79%)

diff --git a/meta-oe/recipes-devtools/luajit/luajit-2.0.0/disable_lj_vm_foldarith_for_spe.patch b/meta-oe/recipes-devtools/luajit/luajit-2.0.0/disable_lj_vm_foldarith_for_spe.patch
deleted file mode 100644
index c96fc77..0000000
--- a/meta-oe/recipes-devtools/luajit/luajit-2.0.0/disable_lj_vm_foldarith_for_spe.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Index: LuaJIT-2.0.0/src/lj_vmmath.c
-===================================================================
---- LuaJIT-2.0.0.orig/src/lj_vmmath.c	2012-11-08 02:10:00.000000000 -0800
-+++ LuaJIT-2.0.0/src/lj_vmmath.c	2012-11-19 22:15:28.613527136 -0800
-@@ -22,7 +22,7 @@
- LJ_FUNCA double lj_vm_tanh(double x) { return tanh(x); }
- #endif
- 
--#if !LJ_TARGET_X86ORX64
-+#if !(LJ_TARGET_X86ORX64 || LJ_TARGET_PPCSPE)
- double lj_vm_foldarith(double x, double y, int op)
- {
-   switch (op) {
diff --git a/meta-oe/recipes-devtools/luajit/luajit/0001-Do-not-strip-automatically-this-leaves-the-stripping.patch b/meta-oe/recipes-devtools/luajit/luajit/0001-Do-not-strip-automatically-this-leaves-the-stripping.patch
new file mode 100644
index 0000000..f123b3f
--- /dev/null
+++ b/meta-oe/recipes-devtools/luajit/luajit/0001-Do-not-strip-automatically-this-leaves-the-stripping.patch
@@ -0,0 +1,33 @@
+From 528009f5ca0685c95ef27f6c8957160499c0576a Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem at gmail.com>
+Date: Fri, 10 May 2013 10:42:45 -0700
+Subject: [PATCH] Do not strip automatically, this leaves the stripping
+ busines to OE
+
+Upstream-Status: Inappropriate [OE-Specific]
+
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+---
+ src/Makefile |    2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 278324a..5ecd6d5 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -665,12 +665,10 @@ $(LUAJIT_A): $(LJVMCORE_O)
+ $(LUAJIT_SO): $(LJVMCORE_O)
+ 	$(E) "DYNLINK   $@"
+ 	$(Q)$(TARGET_LD) $(TARGET_ASHLDFLAGS) -o $@ $(LJVMCORE_DYNO) $(TARGET_ALIBS)
+-	$(Q)$(TARGET_STRIP) $@
+ 
+ $(LUAJIT_T): $(TARGET_O) $(LUAJIT_O) $(TARGET_DEP)
+ 	$(E) "LINK      $@"
+ 	$(Q)$(TARGET_LD) $(TARGET_ALDFLAGS) -o $@ $(LUAJIT_O) $(TARGET_O) $(TARGET_ALIBS)
+-	$(Q)$(TARGET_STRIP) $@
+ 	$(E) "OK        Successfully built LuaJIT"
+ 
+ ##############################################################################
+-- 
+1.7.9.5
+
diff --git a/meta-oe/recipes-devtools/luajit/luajit_2.0.0.bb b/meta-oe/recipes-devtools/luajit/luajit_2.0.1.bb
similarity index 79%
rename from meta-oe/recipes-devtools/luajit/luajit_2.0.0.bb
rename to meta-oe/recipes-devtools/luajit/luajit_2.0.1.bb
index 3878386..99a2ca6 100644
--- a/meta-oe/recipes-devtools/luajit/luajit_2.0.0.bb
+++ b/meta-oe/recipes-devtools/luajit/luajit_2.0.1.bb
@@ -1,15 +1,14 @@
 DESCRIPTION = " a Just-In-Time Compiler for Lua"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=9511885992e4900014e3b13ca6372b7d"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=1793ef52a5d577794cd886a501a7f861"
 HOMEPAGE = "http://luajit.org"
 
 DEPENDS += "lua5.1"
-PR = "r2"
 SRC_URI = "http://luajit.org/download/LuaJIT-${PV}.tar.gz \
-           file://disable_lj_vm_foldarith_for_spe.patch \
-"
-SRC_URI[md5sum] = "97a2b87cc0490784f54b64cfb3b8f5ad"
-SRC_URI[sha256sum] = "deaed645c4a093c5fb250c30c9933c9131ee05c94b13262d58f6e0b60b338c15"
+           file://0001-Do-not-strip-automatically-this-leaves-the-stripping.patch \
+          "
+SRC_URI[md5sum] = "85e406e8829602988eb1233a82e29f1f"
+SRC_URI[sha256sum] = "2371cceb53453d8a7b36451e6a0ccdb66236924545d6042ddd4c34e9668990c0"
 
 S = "${WORKDIR}/LuaJIT-${PV}"
 
@@ -43,7 +42,7 @@ do_install () {
 PACKAGES += 'luajit-common'
 
 FILES_${PN} += "${libdir}/libluajit-5.1.so.2 \
-    ${libdir}/libluajit-5.1.so.2.0.0 \
+    ${libdir}/libluajit-5.1.so.${PV} \
 "
 FILES_${PN}-dev += "${libdir}/libluajit-5.1.a \
     ${libdir}/libluajit-5.1.so \
-- 
1.7.9.5





More information about the Openembedded-devel mailing list