Skip to contentSkip to conversation

luajit: Upgrade to 2.1.0-beta3

PATCH Superseded Leo Yan 2 participants 5 messages Feb 25, 2020 – Feb 26, 2020

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Leo Yan

author
#0 lore raw

PATCH v3 1/1 luajit: Upgrade to 2.1.0-beta3

Since luajit 2.1.0-beta3 can support architecture aarch64 and the old misses to support aarch64, the patch upgrades to luajit 2.1.0-beta3.

---
 .../luajit/luajit/clang.patch                 | 19 -------------------
 .../luajit/{luajit_2.0.5.bb => luajit_git.bb} | 14 ++++++--------
 2 files changed, 6 insertions(+), 27 deletions(-)
 delete mode 100644 meta-oe/recipes-devtools/luajit/luajit/clang.patch
 rename meta-oe/recipes-devtools/luajit/{luajit_2.0.5.bb => luajit_git.bb} (89%)
meta-oe/recipes-devtools/luajit/luajit/clang.patch deleted +0 -19
deleted file mode 100644
index c39ef6fd4..000000000
@@ -1,19 +0,0 @@
-clang pretends to be gcc 4.2.0 which is a big lie when it comes
-to features, its same as latest gcc
-
-Signed-off-by: Khem Raj <[email protected]>
-Upstream-Status: Pending
-
-Index: LuaJIT-2.0.5/src/lj_arch.h
-===================================================================
---- LuaJIT-2.0.5.orig/src/lj_arch.h
-+++ LuaJIT-2.0.5/src/lj_arch.h
-@@ -313,7 +313,7 @@
- #error "Need at least GCC 4.2 or newer"
- #endif
- #elif !LJ_TARGET_PS3
--#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3)
-+#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3) && !defined(__clang__)
- #error "Need at least GCC 4.3 or newer"
- #endif
- #endif
meta-oe/recipes-devtools/luajit/luajit_git.bb renamed from meta-oe/recipes-devtools/luajit/luajit_2.0.5.bb +6 -8
similarity index 89%
rename from meta-oe/recipes-devtools/luajit/luajit_2.0.5.bb
rename to meta-oe/recipes-devtools/luajit/luajit_git.bb
index 93128dda8..da798328e 100644
@@ -1,14 +1,13 @@
 SUMMARY = "Just-In-Time Compiler for Lua"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=10a96c93403affcc34765f4c2612bc22"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=d739bb9250a55c124a545b588fd76771"
 HOMEPAGE = "http://luajit.org"
 
-PV .= "+git${SRCPV}"
-SRCREV = "02b521981a1ab919ff2cd4d9bcaee80baf77dce2"
-SRC_URI = "git://luajit.org/git/luajit-2.0.git;protocol=http \
+PV = "2.0.5+2.1.0-beta3"
+SRCREV = "0ad60ccbc3768fa8e3e726858adf261950edbc22"
+SRC_URI = "git://luajit.org/git/luajit-2.0.git;protocol=http;branch=v2.1 \
            file://0001-Do-not-strip-automatically-this-leaves-the-stripping.patch \
-           file://clang.patch \
-"
+           "
 
 S = "${WORKDIR}/git"
 
@@ -90,8 +89,7 @@ FILES_${PN}-dev += "${libdir}/libluajit-5.1.a \
 "
 FILES_luajit-common = "${datadir}/${BPN}-${PV}"
 
-# Aarch64/mips64/ppc/ppc64/riscv64 is not supported in this release
-COMPATIBLE_HOST_aarch64 = "null"
+# mips64/ppc/ppc64/riscv64 is not supported in this release
 COMPATIBLE_HOST_mipsarchn32 = "null"
 COMPATIBLE_HOST_mipsarchn64 = "null"
 COMPATIBLE_HOST_powerpc = "null"
Signature · 1 line
2.17.1
#1 lore raw
Quoted 6 lines · Leo Yan

Since luajit 2.1.0-beta3 can support architecture aarch64 and the old misses to support aarch64, the patch upgrades to luajit 2.1.0-beta3.

---
  .../luajit/luajit/clang.patch                 | 19 -------------------

why is this patch dropped ? it building with clang handled differently now ? if so please add a line or two in commit msg

Quoted 68 lines
  .../luajit/{luajit_2.0.5.bb => luajit_git.bb} | 14 ++++++--------
  2 files changed, 6 insertions(+), 27 deletions(-)

delete mode 100644 meta-oe/recipes-devtools/luajit/luajit/clang.patch rename meta-oe/recipes-devtools/luajit/{luajit_2.0.5.bb => luajit_git.bb} (89%)

meta-oe/recipes-devtools/luajit/luajit/clang.patch deleted +0 -19
deleted file mode 100644
index c39ef6fd4..000000000
@@ -1,19 +0,0 @@
-clang pretends to be gcc 4.2.0 which is a big lie when it comes
-to features, its same as latest gcc
-
-Signed-off-by: Khem Raj <[email protected]>
-Upstream-Status: Pending
-
-Index: LuaJIT-2.0.5/src/lj_arch.h
-===================================================================
---- LuaJIT-2.0.5.orig/src/lj_arch.h
-+++ LuaJIT-2.0.5/src/lj_arch.h
-@@ -313,7 +313,7 @@
- #error "Need at least GCC 4.2 or newer"
- #endif
- #elif !LJ_TARGET_PS3
--#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3)
-+#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3) && !defined(__clang__)
- #error "Need at least GCC 4.3 or newer"
- #endif
- #endif
meta-oe/recipes-devtools/luajit/luajit_git.bb renamed from meta-oe/recipes-devtools/luajit/luajit_2.0.5.bb +6 -8
similarity index 89%
rename from meta-oe/recipes-devtools/luajit/luajit_2.0.5.bb
rename to meta-oe/recipes-devtools/luajit/luajit_git.bb
index 93128dda8..da798328e 100644
@@ -1,14 +1,13 @@
  SUMMARY = "Just-In-Time Compiler for Lua"
  LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=10a96c93403affcc34765f4c2612bc22"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=d739bb9250a55c124a545b588fd76771"
  HOMEPAGE = "http://luajit.org"
 
-PV .= "+git${SRCPV}"
-SRCREV = "02b521981a1ab919ff2cd4d9bcaee80baf77dce2"
-SRC_URI = "git://luajit.org/git/luajit-2.0.git;protocol=http \
+PV = "2.0.5+2.1.0-beta3"
+SRCREV = "0ad60ccbc3768fa8e3e726858adf261950edbc22"
+SRC_URI = "git://luajit.org/git/luajit-2.0.git;protocol=http;branch=v2.1 \
             file://0001-Do-not-strip-automatically-this-leaves-the-stripping.patch \
-           file://clang.patch \
-"
+           "
 
  S = "${WORKDIR}/git"
 
@@ -90,8 +89,7 @@ FILES_${PN}-dev += "${libdir}/libluajit-5.1.a \
  "
  FILES_luajit-common = "${datadir}/${BPN}-${PV}"
 
-# Aarch64/mips64/ppc/ppc64/riscv64 is not supported in this release
-COMPATIBLE_HOST_aarch64 = "null"
+# mips64/ppc/ppc64/riscv64 is not supported in this release
  COMPATIBLE_HOST_mipsarchn32 = "null"
  COMPATIBLE_HOST_mipsarchn64 = "null"
  COMPATIBLE_HOST_powerpc = "null"
author
#2 lore raw

Hi Khem,

Quoted 6 lines · Khem Raj
Quoted 3 lines · Leo Yan

Since luajit 2.1.0-beta3 can support architecture aarch64 and the old misses to support aarch64, the patch upgrades to luajit 2.1.0-beta3.

Quoted 7 lines
Quoted 3 lines
---
  .../luajit/luajit/clang.patch                 | 19 -------------------

why is this patch dropped ? it building with clang handled differently now ? if so please add a line or two in commit msg

To be honest, I don't know how to hit the condition for '#elif !LJ_TARGET_PS3', and since considering Clang has upgraded to new version (9.0.1), this is another reason I dropped this patch.

But I cannot give out any concrete reason, will keep this patch.

Thanks,
Leo

Quoted 64 lines
Quoted 64 lines
  .../luajit/{luajit_2.0.5.bb => luajit_git.bb} | 14 ++++++--------
  2 files changed, 6 insertions(+), 27 deletions(-)

delete mode 100644 meta-oe/recipes-devtools/luajit/luajit/clang.patch rename meta-oe/recipes-devtools/luajit/{luajit_2.0.5.bb => luajit_git.bb} (89%)

meta-oe/recipes-devtools/luajit/luajit/clang.patch deleted +0 -19
deleted file mode 100644
index c39ef6fd4..000000000
@@ -1,19 +0,0 @@
-clang pretends to be gcc 4.2.0 which is a big lie when it comes
-to features, its same as latest gcc
-
-Signed-off-by: Khem Raj <[email protected]>
-Upstream-Status: Pending
-
-Index: LuaJIT-2.0.5/src/lj_arch.h
-===================================================================
---- LuaJIT-2.0.5.orig/src/lj_arch.h
-+++ LuaJIT-2.0.5/src/lj_arch.h
-@@ -313,7 +313,7 @@
- #error "Need at least GCC 4.2 or newer"
- #endif
- #elif !LJ_TARGET_PS3
--#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3)
-+#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3) && !defined(__clang__)
- #error "Need at least GCC 4.3 or newer"
- #endif
- #endif
meta-oe/recipes-devtools/luajit/luajit_git.bb renamed from meta-oe/recipes-devtools/luajit/luajit_2.0.5.bb +6 -8
similarity index 89%
rename from meta-oe/recipes-devtools/luajit/luajit_2.0.5.bb
rename to meta-oe/recipes-devtools/luajit/luajit_git.bb
index 93128dda8..da798328e 100644
@@ -1,14 +1,13 @@
  SUMMARY = "Just-In-Time Compiler for Lua"
  LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=10a96c93403affcc34765f4c2612bc22"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=d739bb9250a55c124a545b588fd76771"
  HOMEPAGE = "http://luajit.org"
-PV .= "+git${SRCPV}"
-SRCREV = "02b521981a1ab919ff2cd4d9bcaee80baf77dce2"
-SRC_URI = "git://luajit.org/git/luajit-2.0.git;protocol=http \
+PV = "2.0.5+2.1.0-beta3"
+SRCREV = "0ad60ccbc3768fa8e3e726858adf261950edbc22"
+SRC_URI = "git://luajit.org/git/luajit-2.0.git;protocol=http;branch=v2.1 \
             file://0001-Do-not-strip-automatically-this-leaves-the-stripping.patch \
-           file://clang.patch \
-"
+           "
  S = "${WORKDIR}/git"
@@ -90,8 +89,7 @@ FILES_${PN}-dev += "${libdir}/libluajit-5.1.a \
  "
  FILES_luajit-common = "${datadir}/${BPN}-${PV}"
-# Aarch64/mips64/ppc/ppc64/riscv64 is not supported in this release
-COMPATIBLE_HOST_aarch64 = "null"
+# mips64/ppc/ppc64/riscv64 is not supported in this release
  COMPATIBLE_HOST_mipsarchn32 = "null"
  COMPATIBLE_HOST_mipsarchn64 = "null"
  COMPATIBLE_HOST_powerpc = "null"
 
#3 lore raw
Quoted 14 lines · Leo Yan

Hi Khem,

Quoted 11 lines · Khem Raj
Quoted 6 lines · Leo Yan

Since luajit 2.1.0-beta3 can support architecture aarch64 and the old misses to support aarch64, the patch upgrades to luajit 2.1.0-beta3.

---
   .../luajit/luajit/clang.patch                 | 19 -------------------
Quoted 7 lines
Quoted 2 lines

why is this patch dropped ? it building with clang handled differently now ? if so please add a line or two in commit msg

To be honest, I don't know how to hit the condition for '#elif !LJ_TARGET_PS3', and since considering Clang has upgraded to new version (9.0.1), this is another reason I dropped this patch.

you could easily excercise the need for it, by adding meta-clang and setting

TOOLCHAIN_pn-luajit = "clang" (in local.conf)
bitbake luajit

Quoted 69 lines

But I cannot give out any concrete reason, will keep this patch.

Thanks,
Leo

Quoted 64 lines
Quoted 64 lines
   .../luajit/{luajit_2.0.5.bb => luajit_git.bb} | 14 ++++++--------
   2 files changed, 6 insertions(+), 27 deletions(-)

delete mode 100644 meta-oe/recipes-devtools/luajit/luajit/clang.patch rename meta-oe/recipes-devtools/luajit/{luajit_2.0.5.bb => luajit_git.bb} (89%)

meta-oe/recipes-devtools/luajit/luajit/clang.patch deleted +0 -19
deleted file mode 100644
index c39ef6fd4..000000000
@@ -1,19 +0,0 @@
-clang pretends to be gcc 4.2.0 which is a big lie when it comes
-to features, its same as latest gcc
-
-Signed-off-by: Khem Raj <[email protected]>
-Upstream-Status: Pending
-
-Index: LuaJIT-2.0.5/src/lj_arch.h
-===================================================================
---- LuaJIT-2.0.5.orig/src/lj_arch.h
-+++ LuaJIT-2.0.5/src/lj_arch.h
-@@ -313,7 +313,7 @@
- #error "Need at least GCC 4.2 or newer"
- #endif
- #elif !LJ_TARGET_PS3
--#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3)
-+#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3) && !defined(__clang__)
- #error "Need at least GCC 4.3 or newer"
- #endif
- #endif
meta-oe/recipes-devtools/luajit/luajit_git.bb renamed from meta-oe/recipes-devtools/luajit/luajit_2.0.5.bb +6 -8
similarity index 89%
rename from meta-oe/recipes-devtools/luajit/luajit_2.0.5.bb
rename to meta-oe/recipes-devtools/luajit/luajit_git.bb
index 93128dda8..da798328e 100644
@@ -1,14 +1,13 @@
   SUMMARY = "Just-In-Time Compiler for Lua"
   LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=10a96c93403affcc34765f4c2612bc22"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=d739bb9250a55c124a545b588fd76771"
   HOMEPAGE = "http://luajit.org"
-PV .= "+git${SRCPV}"
-SRCREV = "02b521981a1ab919ff2cd4d9bcaee80baf77dce2"
-SRC_URI = "git://luajit.org/git/luajit-2.0.git;protocol=http \
+PV = "2.0.5+2.1.0-beta3"
+SRCREV = "0ad60ccbc3768fa8e3e726858adf261950edbc22"
+SRC_URI = "git://luajit.org/git/luajit-2.0.git;protocol=http;branch=v2.1 \
              file://0001-Do-not-strip-automatically-this-leaves-the-stripping.patch \
-           file://clang.patch \
-"
+           "
   S = "${WORKDIR}/git"
@@ -90,8 +89,7 @@ FILES_${PN}-dev += "${libdir}/libluajit-5.1.a \
   "
   FILES_luajit-common = "${datadir}/${BPN}-${PV}"
-# Aarch64/mips64/ppc/ppc64/riscv64 is not supported in this release
-COMPATIBLE_HOST_aarch64 = "null"
+# mips64/ppc/ppc64/riscv64 is not supported in this release
   COMPATIBLE_HOST_mipsarchn32 = "null"
   COMPATIBLE_HOST_mipsarchn64 = "null"
   COMPATIBLE_HOST_powerpc = "null"
 
author
#4 lore raw

Hi Khem,

Quoted 25 lines · Khem Raj
Quoted 14 lines · Leo Yan

Hi Khem,

Quoted 11 lines · Khem Raj
Quoted 6 lines · Leo Yan

Since luajit 2.1.0-beta3 can support architecture aarch64 and the old misses to support aarch64, the patch upgrades to luajit 2.1.0-beta3.

---
   .../luajit/luajit/clang.patch                 | 19 -------------------
Quoted 7 lines
Quoted 2 lines

why is this patch dropped ? it building with clang handled differently now ? if so please add a line or two in commit msg

To be honest, I don't know how to hit the condition for '#elif !LJ_TARGET_PS3', and since considering Clang has upgraded to new version (9.0.1), this is another reason I dropped this patch.

Quoted 4 lines

you could easily excercise the need for it, by adding meta-clang and setting

TOOLCHAIN_pn-luajit = "clang" (in local.conf)
bitbake luajit

I tested up setting with MACHINE=qemumips, it can hit the condition for '#elif !LJ_TARGET_PS3' and the patch clang.patch is still needed, otherwise, it can cause building error.

So have sent out patch v4 to keep clang.patch with minor updating to dismiss patching warning.

Thanks a lot for guidance.

Leo