Skip to contentSkip to conversation

terminology: upgrade to 0.5.1

PATCH In review Martin Jansa 2 participants 8 messages Jun 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 terminology: upgrade to 0.5.1

* announcement:
https://phab.enlightenment.org/phame/post/view/57/
* LIC_FILES_CHKSUM change is just Copyright year update:
< Copyright (C) 2012-2014 Carsten Haitzler and various contributors (see AUTHORS)
---

Quoted 1 line

Copyright (C) 2012-2012 Carsten Haitzler and various contributors (see AUTHORS)

---
 meta-efl/recipes-efl/e17/terminology.inc      | 2 +-
 meta-efl/recipes-efl/e17/terminology_0.4.0.bb | 8 --------
 meta-efl/recipes-efl/e17/terminology_0.5.1.bb | 8 ++++++++
 meta-efl/recipes-efl/e17/terminology_svn.bb   | 9 ---------
 4 files changed, 9 insertions(+), 18 deletions(-)
 delete mode 100644 meta-efl/recipes-efl/e17/terminology_0.4.0.bb
 create mode 100644 meta-efl/recipes-efl/e17/terminology_0.5.1.bb
 delete mode 100644 meta-efl/recipes-efl/e17/terminology_svn.bb
meta-efl/recipes-efl/e17/terminology.inc +1 -1
index 89c9ee5..9dd2264 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Enlightenment Terminal Emulator"
 LICENSE = "MIT BSD"
-LIC_FILES_CHKSUM = "file://COPYING;md5=03f6c2cf2bef233fadf7d0769f5bfda7"
+LIC_FILES_CHKSUM = "file://COPYING;md5=9a8682b561bdfa219d59483a679ed80a"
 DEPENDS = "evas ecore edje elementary eina eet emotion"
 
 inherit e gettext
meta-efl/recipes-efl/e17/terminology_0.4.0.bb deleted +0 -8
deleted file mode 100644
index 83ceee8..0000000
@@ -1,8 +0,0 @@
-require ${BPN}.inc
-
-SRC_URI = "\
-    ${E_RELEASES}/apps/${SRCNAME}/${SRCNAME}-${SRCVER}.tar.gz \
-"
-
-SRC_URI[md5sum] = "5a2eee4849d4fa44db4caf743b3beb37"
-SRC_URI[sha256sum] = "63f2d1fa584ecda6c4ef61b05b8956415feb955c4bb13c0872c11d98024dcfc6"
meta-efl/recipes-efl/e17/terminology_0.5.1.bb new file +8 -0
new file mode 100644
index 0000000..642b658
@@ -0,0 +1,8 @@
+require ${BPN}.inc
+
+SRC_URI = "\
+    ${E_RELEASES}/apps/${SRCNAME}/${SRCNAME}-${SRCVER}.tar.gz \
+"
+
+SRC_URI[md5sum] = "d46cda519cf198cb19970146d31a9e8b"
+SRC_URI[sha256sum] = "ceef9e5a73f1dfdb412d074df1ead684fd31f630414c65eac8cd89fea13315ad"
meta-efl/recipes-efl/e17/terminology_svn.bb deleted +0 -9
deleted file mode 100644
index 2518dba..0000000
@@ -1,9 +0,0 @@
-require ${BPN}.inc
-
-DEFAULT_PREFERENCE = "-1"
-PV = "0.2.0+svnr${SRCPV}"
-PR = "${INC_PR}.0"
-SRCREV = "${EFL_SRCREV}"
-
-SRC_URI = "${E_SVN}/trunk;module=${SRCNAME};protocol=http;scmdata=keep"
-S = "${WORKDIR}/${SRCNAME}"
Signature · 1 line
2.0.0
#1 lore raw

PATCH 2/7 efl, elementary: upgrade to 1.10.0

* announcement:
https://phab.enlightenment.org/phame/post/view/59/

---
 meta-efl/classes/efl.bbclass                       |  5 +++++
 meta-efl/recipes-efl/efl/efl.inc                   |  5 ++++-
 meta-efl/recipes-efl/efl/efl_1.10.0.bb             | 25 ++++++++++++++++++++++
 meta-efl/recipes-efl/efl/efl_1.9.3.bb              | 17 ---------------
 meta-efl/recipes-efl/efl/elementary.inc            |  6 ++++++
 .../{elementary_1.9.3.bb => elementary_1.10.0.bb}  |  4 ++--
 .../efl/emotion-generic-players_1.10.0.bb          |  8 +++++++
 .../efl/emotion-generic-players_1.9.0.bb           |  8 -------
 .../recipes-efl/efl/evas-generic-loaders_1.10.0.bb |  8 +++++++
 .../recipes-efl/efl/evas-generic-loaders_1.9.0.bb  |  8 -------
 10 files changed, 58 insertions(+), 36 deletions(-)
 create mode 100644 meta-efl/recipes-efl/efl/efl_1.10.0.bb
 delete mode 100644 meta-efl/recipes-efl/efl/efl_1.9.3.bb
 rename meta-efl/recipes-efl/efl/{elementary_1.9.3.bb => elementary_1.10.0.bb} (79%)
 create mode 100644 meta-efl/recipes-efl/efl/emotion-generic-players_1.10.0.bb
 delete mode 100644 meta-efl/recipes-efl/efl/emotion-generic-players_1.9.0.bb
 create mode 100644 meta-efl/recipes-efl/efl/evas-generic-loaders_1.10.0.bb
 delete mode 100644 meta-efl/recipes-efl/efl/evas-generic-loaders_1.9.0.bb
meta-efl/classes/efl.bbclass +5 -0
index d8cdd11..fb96ef0 100644
@@ -21,6 +21,7 @@ do_install_prepend () {
 
 PACKAGES =+ "${PN}-themes"
 PACKAGES += "${PN}-tests"
+PACKAGES += "${PN}-eolian"
 
 FILES_${PN} = "${libdir}/*.so.* \
                ${libdir}/edje/modules/${PN}/*/module.so \
@@ -49,6 +50,10 @@ FILES_${PN}-dev   += "${bindir}/${PN}-config \
                       ${libdir}/edje/modules/${PN}/*/module.la \
 "
 
+FILES_${PN}-eolian = " \
+    ${datadir}/eolian/include \
+"
+
 FILES_${PN}-staticdev += "${libdir}/${BPN}/*/*.a"
 
 FILES_${PN}-dbg +=   "${libdir}/${PN}/.debug \
meta-efl/recipes-efl/efl/efl.inc +4 -1
index 929fc20..752e3b7 100644
@@ -22,7 +22,9 @@ EXTRA_OECONF = " \
     --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aaa \
 "
 EXTRA_OECONF_append_class-target = " \
-    --with-bin-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc \
+    --with-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc \
+    --with-eolian-gen=${STAGING_BINDIR_NATIVE}/eolian_gen \
+    --with-eolian-cxx=${STAGING_BINDIR_NATIVE}/eolian_cxx \
 "
 EXTRA_OECONF_append_class-native = " \
     --disable-fontconfig \
@@ -186,6 +188,7 @@ FILES_efreet = " \
 "
 FILES_eet = " \
     ${bindir}/eet \
+    ${bindir}/vieet \
     ${libdir}/libeet${SOLIBS} \
 "
 FILES_emotion = " \
meta-efl/recipes-efl/efl/efl_1.10.0.bb new file +25 -0
new file mode 100644
index 0000000..deeb92a
@@ -0,0 +1,25 @@
+require ${BPN}.inc
+
+SRC_URI = "\
+    ${E_RELEASES}/libs/${SRCNAME}/${SRCNAME}-${SRCVER}.tar.gz \
+"
+
+SRC_URI[md5sum] = "4dedbbbd03ccd3c8ac227b8682d0d0e4"
+SRC_URI[sha256sum] = "55ab54150e4c53781f7b3239f39c11a06c3b9208f4109700bca049c36cd6c49b"
+
+# Temporary disable until error like the one following are fixed
+# efl-native/2_1.8.4-r0/efl-1.8.4/src/lib/eet/.libs/libeet.so: file not recognized: File truncated
+# collect2: error: ld returned 1 exit status
+# x86_64-linux-libtool: install: error: relink `modules/evas/savers/tiff/module.la' with the above command before installing it
+# Makefile:11031: recipe for target 'install-savertiffpkgLTLIBRARIES' failed
+PARALLEL_MAKE_class-native = ""
+
+#EFL_RUN_IN_TREE=1 ../src/bin/eolian/eolian_gen --eo --legacy -I/OE/build/shr-core/tmp-eglibc/work/x86_64-linux/efl-native/2_1.10.0-r0/efl-1.10.0/src/lib/eo -I/OE/build/shr-core/tmp-eglibc/work/x86_64-linux/efl-native/2_1.10.0-r0/efl-1.10.0/src/lib/evas/canvas -I/OE/build/shr-core/tmp-eglibc/work/x86_64-linux/efl-native/2_1.10.0-r0/efl-1.10.0/src/lib/edje -I/OE/build/shr-core/tmp-eglibc/work/x86_64-linux/efl-native/2_1.10.0-r0/efl-1.10.0/src/lib/ecore_audio --gc -o lib/evas/canvas/evas_line.eo.c /OE/build/shr-core/tmp-eglibc/work/x86_64-linux/efl-native/2_1.10.0-r0/efl-1.10.0/src/lib/evas/canvas/evas_line.eo
+#ERR<32439>:eolian_gen /OE/build/shr-core/tmp-eglibc/work/x86_64-linux/efl-native/2_1.10.0-r0/efl-1.10.0/src/bin/eolian/main.c:103 _generate_c_file() Couldnt open file lib/evas/canvas/evas_line.eo.c for writing
+#Makefile:30738: recipe for target 'lib/evas/canvas/evas_line.eo.c' failed
+#make[2]: *** [lib/evas/canvas/evas_line.eo.c] Error 1
+#Makefile:2163: recipe for target 'all-recursive' failed
+# autotools-brokensep
+B = "${S}"
+
+SRC_URI += "file://0001-configure.ac-Don-t-check-for-Xprint-extension.patch"
meta-efl/recipes-efl/efl/efl_1.9.3.bb deleted +0 -17
deleted file mode 100644
index 61e6a9e..0000000
@@ -1,17 +0,0 @@
-require ${BPN}.inc
-
-SRC_URI = "\
-    ${E_RELEASES}/libs/${SRCNAME}/${SRCNAME}-${SRCVER}.tar.gz \
-"
-
-SRC_URI[md5sum] = "102acebaf453346d745b0974f736a5e6"
-SRC_URI[sha256sum] = "46da18ce5ec6ded559dbf461ff58113f82937efb6e26a098a82b2f360e8faf88"
-
-# Temporary disable until error like the one following are fixed
-# efl-native/2_1.8.4-r0/efl-1.8.4/src/lib/eet/.libs/libeet.so: file not recognized: File truncated
-# collect2: error: ld returned 1 exit status
-# x86_64-linux-libtool: install: error: relink `modules/evas/savers/tiff/module.la' with the above command before installing it
-# Makefile:11031: recipe for target 'install-savertiffpkgLTLIBRARIES' failed
-PARALLEL_MAKE_class-native = ""
-
-SRC_URI += "file://0001-configure.ac-Don-t-check-for-Xprint-extension.patch"
meta-efl/recipes-efl/efl/elementary.inc +6 -0
index dd18abe..c22070f 100644
@@ -11,6 +11,7 @@ EXTRA_OECONF_append_class-target = "\
     --with-eet-eet=${STAGING_BINDIR_NATIVE}/eet \
     --with-elementary-codegen=${STAGING_BINDIR_NATIVE}/elementary_codegen \
     --with-elm-prefs-cc=${STAGING_BINDIR_NATIVE}/elm_prefs_cc \
+    --with-eolian-gen=${STAGING_BINDIR_NATIVE}/eolian_gen \
 "
 
 BBCLASSEXTEND = "native"
@@ -18,6 +19,11 @@ BBCLASSEXTEND = "native"
 PACKAGECONFIG[eweather] = "--enable-eweather,--disable-eweather,libeweather"
 PACKAGECONFIG[ewebkit] = "--with-elementary-web-backend=ewebkit,--with-elementary-web-backend=none,webkit-efl"
 
+do_configure_prepend() {
+    # prefix returned eolian paths with STAGING_DIR_HOST also use $PKG_CONFIG instead of pkg-config directly
+    sed -i "s^DEPS_EOLIAN_FLAGS=\`pkg-config --variable=eolian_flags eo evas edje ecore\`$^DEPS_EOLIAN_FLAGS=\`\$PKG_CONFIG --variable=eolian_flags eo evas edje ecore | sed 's#-I${prefix}#-I${STAGING_DIR_HOST}${prefix}#g'\`^g" ${S}/configure.ac
+}
+
 do_compile_append_class-target() {
     sed -i -e s:${STAGING_DIR_TARGET}::g \
            -e s:/${TARGET_SYS}::g \
meta-efl/recipes-efl/efl/elementary_1.10.0.bb renamed from meta-efl/recipes-efl/efl/elementary_1.9.3.bb +2 -2
similarity index 79%
rename from meta-efl/recipes-efl/efl/elementary_1.9.3.bb
rename to meta-efl/recipes-efl/efl/elementary_1.10.0.bb
index 4f24baf..86e718b 100644
@@ -8,8 +8,8 @@ SRC_URI = "\
 # these paths aren't passed in -native build
 SRC_URI_append_class-target = " file://0001-Makefile-Use-elementary_codegen-defined-in-configure.patch"
 
-SRC_URI[md5sum] = "cc75bb1c7c4c49de120ec33e413130ce"
-SRC_URI[sha256sum] = "49f896066b72ba51eefd8e92f0b7e7b8e190b0dd26323b12cbd4f26216f578fb"
+SRC_URI[md5sum] = "81d4072c728a41518f59f3d115c1556b"
+SRC_URI[sha256sum] = "01c9127f0b29c1a07328199f51fb6d72d7f250be31e8afb26914566fb1c7e612"
 
 # autotools-brokensep - configure updates Elementary.h correctly in ${B}, but then build is using Elementary.h from ${S}
 # which includes #define ELM_EMAP (instead of #undef ELM_EMAP) and building fails
meta-efl/recipes-efl/efl/emotion-generic-players_1.10.0.bb new file +8 -0
new file mode 100644
index 0000000..5d5ed4b
@@ -0,0 +1,8 @@
+require ${BPN}.inc
+
+SRC_URI = "\
+    ${E_RELEASES}/libs/${SRCNAME}/${SRCNAME}-${SRCVER}.tar.gz \
+"
+
+SRC_URI[md5sum] = "f73b1f73b38a323e37bd138b103191a5"
+SRC_URI[sha256sum] = "ccfb1c8c346ba1a84484b82ce1ce871fd2c6660421ca7fa5d911661bd3cc94db"
meta-efl/recipes-efl/efl/emotion-generic-players_1.9.0.bb deleted +0 -8
deleted file mode 100644
index 0337751..0000000
@@ -1,8 +0,0 @@
-require ${BPN}.inc
-
-SRC_URI = "\
-    ${E_RELEASES}/libs/${SRCNAME}/${SRCNAME}-${SRCVER}.tar.gz \
-"
-
-SRC_URI[md5sum] = "dc897ba540560fce0787bbff8455c022"
-SRC_URI[sha256sum] = "d26546adf61db7521f9d46f2baedcb645af72497fc259e93907026970d42d794"
meta-efl/recipes-efl/efl/evas-generic-loaders_1.10.0.bb new file +8 -0
new file mode 100644
index 0000000..732c296
@@ -0,0 +1,8 @@
+require ${BPN}.inc
+
+SRC_URI = "\
+    ${E_RELEASES}/libs/${SRCNAME}/${SRCNAME}-${SRCVER}.tar.gz \
+"
+
+SRC_URI[md5sum] = "ef5ac6a7960528bb12e997f3e304f151"
+SRC_URI[sha256sum] = "f5294c1a86dd4d7d4983ec4217c0d0d1a9cfa3fc2060d4af7eec5fa4ce23a463"
meta-efl/recipes-efl/efl/evas-generic-loaders_1.9.0.bb deleted +0 -8
deleted file mode 100644
index 38d0518..0000000
@@ -1,8 +0,0 @@
-require ${BPN}.inc
-
-SRC_URI = "\
-    ${E_RELEASES}/libs/${SRCNAME}/${SRCNAME}-${SRCVER}.tar.gz \
-"
-
-SRC_URI[md5sum] = "bec6d27fc4afd2f5e4829da5aeccdc0b"
-SRC_URI[sha256sum] = "9447839047b087b0293b2ed6c453249919f66e5c4f62e252a7b7e4f996c2ac5f"
Signature · 1 line
2.0.0
#3 lore raw

PATCH 3/7 python-cython: upgrade to 0.20.1

In reply to Martin Jansa

* 0.19+ version is required by newer python-efl-0.10.0

---
 ...pend-docs-to-_Extension.extension.__doc__.patch | 27 ----------------------
 ...on-cython_0.15.1.bb => python-cython_0.20.1.bb} |  9 +++-----
 2 files changed, 3 insertions(+), 33 deletions(-)
 delete mode 100644 meta-oe/recipes-devtools/python/python-cython-0.15.1/0001-Don-t-append-docs-to-_Extension.extension.__doc__.patch
 rename meta-oe/recipes-devtools/python/{python-cython_0.15.1.bb => python-cython_0.20.1.bb} (68%)
meta-oe/recipes-devtools/python/python-cython-0.15.1/0001-Don-t-append-docs-to-_Extension.extension.__doc__.patch deleted +0 -27
deleted file mode 100644
index 9b9dd46..0000000
@@ -1,27 +0,0 @@
-From bfed128dfe9551a3a40b1ac4269f18ecfeac80a9 Mon Sep 17 00:00:00 2001
-From: Martin Jansa <[email protected]>
-Date: Sat, 1 Oct 2011 11:46:30 +0200
-Subject: [PATCH] Don't append docs to _Extension.extension.__doc__
-
-* here it fails with TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' in setup.py
-
-Signed-off-by: Martin Jansa <[email protected]>
----
- Cython/Distutils/extension.py |    1 -
- 1 files changed, 0 insertions(+), 1 deletions(-)
-
-diff --git a/Cython/Distutils/extension.py b/Cython/Distutils/extension.py
-index a5a6638..e76c1e7 100644
---- a/Cython/Distutils/extension.py
-+++ b/Cython/Distutils/extension.py
-@@ -16,7 +16,6 @@ except ImportError:
-     warnings = None
- 
- class Extension(_Extension.Extension):
--    _Extension.Extension.__doc__ + \
-     """pyrex_include_dirs : [string]
-         list of directories to search for Pyrex header files (.pxd) (in
-         Unix form for portability)
--- 
-1.7.6.1
-
meta-oe/recipes-devtools/python/python-cython_0.20.1.bb renamed from meta-oe/recipes-devtools/python/python-cython_0.15.1.bb +3 -6
similarity index 68%
rename from meta-oe/recipes-devtools/python/python-cython_0.15.1.bb
rename to meta-oe/recipes-devtools/python/python-cython_0.20.1.bb
index 0bf057a..6c7507b 100644
@@ -6,14 +6,11 @@ LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
 SRCNAME = "Cython"
 BBCLASSEXTEND = "native"
-PR = "r3"
 
-SRC_URI = "http://www.cython.org/release/${SRCNAME}-${PV}.tar.gz \
-           file://0001-Don-t-append-docs-to-_Extension.extension.__doc__.patch \
-"
+SRC_URI = "http://www.cython.org/release/${SRCNAME}-${PV}.tar.gz"
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
-SRC_URI[md5sum] = "171021b3845c9ca8bd6d8185b3cde664"
-SRC_URI[sha256sum] = "248123f2f02f2701a28d9452132ac835533b396a273cda9d361cb65c26067edc"
+SRC_URI[md5sum] = "52431696c64e618036537c4d9aa79d99"
+SRC_URI[sha256sum] = "31a563744a21d7b10355f25a3bca96b37ec5d32bdecfc75e93d65a5f7e62766c"
 
 inherit distutils
Signature · 1 line
2.0.0
#4 lore raw

PATCH 4/7 python-efl: upgrade to 1.10.0

In reply to Martin Jansa

* announcement:
https://phab.enlightenment.org/phame/post/view/60/

---
 meta-efl/recipes-devtools/python/python-efl.inc       | 7 ++++++-
 meta-efl/recipes-devtools/python/python-efl_1.10.0.bb | 4 ++++
 meta-efl/recipes-devtools/python/python-efl_1.9.0.bb  | 4 ----
 3 files changed, 10 insertions(+), 5 deletions(-)
 create mode 100644 meta-efl/recipes-devtools/python/python-efl_1.10.0.bb
 delete mode 100644 meta-efl/recipes-devtools/python/python-efl_1.9.0.bb
meta-efl/recipes-devtools/python/python-efl.inc +6 -1
index 0cfe2a5..9780518 100644
@@ -31,7 +31,7 @@ do_install_append() {
     find ${D}${libdir}/${PYTHON_DIR}/site-packages -name \*.pyo -o -name \*.pyc | xargs rm -f
 }
 
-PACKAGES += "python-ecore python-eldbus python-edje python-elementary python-emotion python-evas ${PN}-examples"
+PACKAGES += "python-ecore python-eldbus python-edje python-elementary python-emotion python-evas python-ethumb ${PN}-examples"
 
 FILES_${PN} = " \
     ${libdir}/${PYTHON_DIR}/site-packages/python_efl*egg-info \
@@ -47,6 +47,7 @@ FILES_${PN}-examples = "${datadir}/${PN}/examples"
 FILES_python-ecore = " \
     ${libdir}/${PYTHON_DIR}/site-packages/ecore/ \
     ${libdir}/${PYTHON_DIR}/site-packages/efl/ecore.so \
+    ${libdir}/${PYTHON_DIR}/site-packages/efl/ecore \
 "
 FILES_python-eldbus = " \
     ${libdir}/${PYTHON_DIR}/site-packages/e_dbus/ \
@@ -68,3 +69,7 @@ FILES_python-evas = " \
     ${libdir}/${PYTHON_DIR}/site-packages/evas/ \
     ${libdir}/${PYTHON_DIR}/site-packages/efl/evas.so \
 "
+FILES_python-ethumb = " \
+    ${libdir}/${PYTHON_DIR}/site-packages/ethumb/ \
+    ${libdir}/${PYTHON_DIR}/site-packages/efl/ethumb*so \
+"
meta-efl/recipes-devtools/python/python-efl_1.10.0.bb new file +4 -0
new file mode 100644
index 0000000..43f0e0a
@@ -0,0 +1,4 @@
+require ${BPN}.inc
+
+SRC_URI[md5sum] = "46166e51bdbab4f2fa790dee98b1ccf5"
+SRC_URI[sha256sum] = "b144e976a351cd9703771b5e91a45ce9b2eedcc0097ade5c5437554b1516dbc6"
meta-efl/recipes-devtools/python/python-efl_1.9.0.bb deleted +0 -4
deleted file mode 100644
index f34e428..0000000
@@ -1,4 +0,0 @@
-require ${BPN}.inc
-
-SRC_URI[md5sum] = "c643d66157cac9b2892af8b6d1a803b1"
-SRC_URI[sha256sum] = "f6d6fecca20df016acc79a12348ae0a0f6db82e6cceaf53c4b46d7ca72bb8f07"
Signature · 1 line
2.0.0
#5 lore raw

PATCH 5/7 luajit: upgrade to 2.0.3, add native support

In reply to Martin Jansa

* http://luajit.org/changes.html says:
This release has the new PS4 port and various important bugfixes over 2.0.2 - an update is recommended.
* add native support (used by efl-native)
* drop lua dependency, it doesn't need lua to be built before luajit
* LIC_FILES_CHKSUM change is only from copyright year update < Copyright (C) 2005-2013 Mike Pall. All rights reserved.
---

Quoted 1 line

Copyright (C) 2005-2014 Mike Pall. All rights reserved.

---
 .../luajit/{luajit_2.0.2.bb => luajit_2.0.3.bb}         | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
 rename meta-oe/recipes-devtools/luajit/{luajit_2.0.2.bb => luajit_2.0.3.bb} (76%)
meta-oe/recipes-devtools/luajit/luajit_2.0.3.bb renamed from meta-oe/recipes-devtools/luajit/luajit_2.0.2.bb +9 -8
similarity index 76%
rename from meta-oe/recipes-devtools/luajit/luajit_2.0.2.bb
rename to meta-oe/recipes-devtools/luajit/luajit_2.0.3.bb
index b719b48..de3a40b 100644
@@ -1,14 +1,13 @@
 SUMMARY = "Just-In-Time Compiler for Lua"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=1793ef52a5d577794cd886a501a7f861"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=97b6446bbf9d55616838f821585c5978"
 HOMEPAGE = "http://luajit.org"
 
-DEPENDS += "lua5.1"
-SRC_URI = "http://luajit.org/download/LuaJIT-${PV}.tar.gz;name=tarball \
+SRC_URI = "http://luajit.org/download/LuaJIT-${PV}.tar.gz \
            file://0001-Do-not-strip-automatically-this-leaves-the-stripping.patch \
-          "
-SRC_URI[tarball.md5sum] = "112dfb82548b03377fbefbba2e0e3a5b"
-SRC_URI[tarball.sha256sum] = "c05202974a5890e777b181908ac237625b499aece026654d7cc33607e3f46c38"
+"
+SRC_URI[md5sum] = "f14e9104be513913810cd59c8c658dc0"
+SRC_URI[sha256sum] = "55be6cb2d101ed38acca32c5b1f99ae345904b365b642203194c585d27bebd79"
 
 SRC_URI_append_fslmachine = " file://ppc-fixplt.patch "
 
@@ -16,6 +15,8 @@ S = "${WORKDIR}/LuaJIT-${PV}"
 
 inherit pkgconfig binconfig
 
+BBCLASSEXTEND = "native"
+
 do_configure_prepend() {
     sed -i -e s:/usr/local:${prefix}:g ${S}/Makefile
     sed -i -e s:/lib$:${base_libdir}:g ${S}/Makefile
@@ -35,9 +36,9 @@ do_compile () {
 
 do_install () {
     oe_runmake 'DESTDIR=${D}' install
-    rmdir ${D}${datadir}/lua/5.1 \
+    rmdir ${D}${datadir}/lua/5.* \
           ${D}${datadir}/lua \
-          ${D}${libdir}/lua/5.1 \
+          ${D}${libdir}/lua/5.* \
           ${D}${libdir}/lua
 }
 
Signature · 1 line
2.0.0
#6 lore raw

PATCH 6/7 efl: use luajit by default

In reply to Martin Jansa

* lua-old is less tested and supported by upstream and luajit seems to work OK with 1.10.0
* luajit will be hard dependency with elua

---
 meta-efl/recipes-efl/efl/efl.inc | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)
meta-efl/recipes-efl/efl/efl.inc +3 -9
index 752e3b7..deca4bf 100644
@@ -44,8 +44,8 @@ EXTRA_OECONF_append_class-native = " \
     --disable-image-loader-xpm \
 "
 
-PACKAGECONFIG ?= "opengl-es gstreamer1 pulseaudio lua-old"
-PACKAGECONFIG_class-native = "lua-old"
+PACKAGECONFIG ?= "opengl-es gstreamer1 pulseaudio luajit"
+PACKAGECONFIG_class-native = "luajit"
 
 # sort of tri-state
 PACKAGECONFIG[opengl-full] = "--with-opengl=full,,virtual/libgl"
@@ -55,14 +55,8 @@ PACKAGECONFIG[gstreamer] = "--enable-gstreamer,--disable-gstreamer,gstreamer"
 PACKAGECONFIG[gstreamer1] = "--enable-gstreamer1,--disable-gstreamer1,gstreamer1.0 gstreamer1.0-plugins-base"
 PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio"
 PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
-# we don't have luajit-native now, so use old lua for -native and
-# for target it's also currently failing with luajit
-# | /OE/build/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/libexec/core2-64-oe-linux/gcc/x86_64-oe-linux/4.8.2/ld: /OE/build/shr-core/tmp-eglibc/sysroots/qemux86-64/usr/lib/libluajit-5.1.a(lj_err.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
-# | /OE/build/shr-core/tmp-eglibc/sysroots/qemux86-64/usr/lib/libluajit-5.1.a: error adding symbols: Bad value
-# | collect2: error: ld returned 1 exit status
-# | Makefile:12007: recipe for target 'lib/edje/libedje.la' failed
 PACKAGECONFIG[luajit] = "--disable-lua-old,--enable-lua-old,luajit"
-PACKAGECONFIG[lua-old] = "--enable-lua-old,--disable-lua-old,lua5.1"
+PACKAGECONFIG[lua-old] = "--enable-lua-old,--disable-lua-old,lua"
 
 # new efl doesn't have option to disable eeze build and we don't want to provide udev-native just to build eeze-native we don't need
 do_configure_prepend_class-native() {
Signature · 1 line
2.0.0
#7 lore raw

PATCH 7/7 lua: Remove lua5.1

In reply to Martin Jansa

* we have lua-5.2 in "lua" recipe and lua-5.1 in "lua5.1", but these
aren't completely separate in sysroot:
WARNING: The recipe lua is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
/OE/build/oe-core/tmp-eglibc/sysroots/qemux86/usr/include/lauxlib.h
Matched in manifest-qemux86-lua5.1.populate_sysroot
/OE/build/oe-core/tmp-eglibc/sysroots/qemux86/usr/include/lua.h
Matched in manifest-qemux86-lua5.1.populate_sysroot
/OE/build/oe-core/tmp-eglibc/sysroots/qemux86/usr/include/lua.hpp
Matched in manifest-qemux86-lua5.1.populate_sysroot
/OE/build/oe-core/tmp-eglibc/sysroots/qemux86/usr/include/luaconf.h
Matched in manifest-qemux86-lua5.1.populate_sysroot
/OE/build/oe-core/tmp-eglibc/sysroots/qemux86/usr/include/lualib.h
Matched in manifest-qemux86-lua5.1.populate_sysroot
/OE/build/oe-core/tmp-eglibc/sysroots/qemux86/usr/lib/liblua.a
Matched in manifest-qemux86-lua5.1.populate_sysroot
Please verify which package should provide the above files.
Causing some undeterministic behavior.
* keep only 5.2 in "lua"

---
 .../lua/lua5.1/bitwise_operators.patch             | 605 ---------------------
 meta-oe/recipes-devtools/lua/lua5.1/lua5.1.pc      |  11 -
 meta-oe/recipes-devtools/lua/lua5.1/luaorg_1.patch |  18 -
 meta-oe/recipes-devtools/lua/lua5.1/luaorg_2.patch |  44 --
 .../lua/lua5.1/uclibc-pthread.patch                |  13 -
 meta-oe/recipes-devtools/lua/lua5.1_5.1.5.bb       |  55 --
 6 files changed, 746 deletions(-)
 delete mode 100644 meta-oe/recipes-devtools/lua/lua5.1/bitwise_operators.patch
 delete mode 100644 meta-oe/recipes-devtools/lua/lua5.1/lua5.1.pc
 delete mode 100644 meta-oe/recipes-devtools/lua/lua5.1/luaorg_1.patch
 delete mode 100644 meta-oe/recipes-devtools/lua/lua5.1/luaorg_2.patch
 delete mode 100644 meta-oe/recipes-devtools/lua/lua5.1/uclibc-pthread.patch
 delete mode 100644 meta-oe/recipes-devtools/lua/lua5.1_5.1.5.bb
meta-oe/recipes-devtools/lua/lua5.1/bitwise_operators.patch deleted +0 -605
deleted file mode 100644
index 4f0331e..0000000
@@ -1,605 +0,0 @@
-diff -Nurd lua-5.1.5/src/lcode.c lua-5.1.5/src/lcode.c
---- lua-5.1.5/src/lcode.c	2011-01-31 16:53:16.000000000 +0200
-+++ lua-5.1.5/src/lcode.c	2012-11-28 21:12:23.958419501 +0200
-@@ -642,6 +642,17 @@
-     case OP_POW: r = luai_numpow(v1, v2); break;
-     case OP_UNM: r = luai_numunm(v1); break;
-     case OP_LEN: return 0;  /* no constant folding for 'len' */
-+#if defined(LUA_BITWISE_OPERATORS)
-+    case OP_BOR: luai_logor(r, v1, v2); break;
-+    case OP_BAND: luai_logand(r, v1, v2); break;
-+    case OP_BXOR: luai_logxor(r, v1, v2);  break;
-+    case OP_BLSHFT: luai_loglshft(r, v1, v2); break;
-+    case OP_BRSHFT: luai_logrshft(r, v1, v2); break;
-+    case OP_BNOT: luai_lognot(r, v1); break;
-+    case OP_INTDIV:
-+      if (v2 == 0) return 0;  /* do not attempt to divide by 0 */
-+      r = luai_numintdiv(v1, v2); break;
-+#endif
-     default: lua_assert(0); r = 0; break;
-   }
-   if (luai_numisnan(r)) return 0;  /* do not attempt to produce NaN */
-@@ -654,7 +665,11 @@
-   if (constfolding(op, e1, e2))
-     return;
-   else {
-+#if defined(LUA_BITWISE_OPERATORS)
-+    int o2 = (op != OP_UNM && op != OP_LEN && op != OP_BNOT) ? luaK_exp2RK(fs, e2) : 0;
-+#else
-     int o2 = (op != OP_UNM && op != OP_LEN) ? luaK_exp2RK(fs, e2) : 0;
-+#endif
-     int o1 = luaK_exp2RK(fs, e1);
-     if (o1 > o2) {
-       freeexp(fs, e1);
-@@ -690,6 +705,14 @@
-   expdesc e2;
-   e2.t = e2.f = NO_JUMP; e2.k = VKNUM; e2.u.nval = 0;
-   switch (op) {
-+#if defined(LUA_BITWISE_OPERATORS)
-+    case OPR_BNOT: {
-+      if (e->k == VK)
-+        luaK_exp2anyreg(fs, e);  /* cannot operate on non-numeric constants */
-+      codearith(fs, OP_BNOT, e, &e2);
-+      break;
-+    }
-+#endif
-     case OPR_MINUS: {
-       if (!isnumeral(e))
-         luaK_exp2anyreg(fs, e);  /* cannot operate on non-numeric constants */
-@@ -770,6 +793,14 @@
-     case OPR_DIV: codearith(fs, OP_DIV, e1, e2); break;
-     case OPR_MOD: codearith(fs, OP_MOD, e1, e2); break;
-     case OPR_POW: codearith(fs, OP_POW, e1, e2); break;
-+#if defined(LUA_BITWISE_OPERATORS)
-+    case OPR_BOR: codearith(fs, OP_BOR, e1, e2); break;
-+    case OPR_BAND: codearith(fs, OP_BAND, e1, e2); break;
-+    case OPR_BXOR: codearith(fs, OP_BXOR, e1, e2); break;
-+    case OPR_BLSHFT: codearith(fs, OP_BLSHFT, e1, e2); break;
-+    case OPR_BRSHFT: codearith(fs, OP_BRSHFT, e1, e2); break;
-+    case OPR_INTDIV: codearith(fs, OP_INTDIV, e1, e2); break;
-+#endif
-     case OPR_EQ: codecomp(fs, OP_EQ, 1, e1, e2); break;
-     case OPR_NE: codecomp(fs, OP_EQ, 0, e1, e2); break;
-     case OPR_LT: codecomp(fs, OP_LT, 1, e1, e2); break;
-diff -Nurd lua-5.1.5/src/lcode.h lua-5.1.5/src/lcode.h
---- lua-5.1.5/src/lcode.h	2007-12-27 15:02:25.000000000 +0200
-+++ lua-5.1.5/src/lcode.h	2012-11-28 21:12:23.958419501 +0200
-@@ -25,6 +25,9 @@
- */
- typedef enum BinOpr {
-   OPR_ADD, OPR_SUB, OPR_MUL, OPR_DIV, OPR_MOD, OPR_POW,
-+#if defined(LUA_BITWISE_OPERATORS)
-+  OPR_BOR, OPR_BAND, OPR_BXOR, OPR_BLSHFT, OPR_BRSHFT, OPR_INTDIV,
-+#endif
-   OPR_CONCAT,
-   OPR_NE, OPR_EQ,
-   OPR_LT, OPR_LE, OPR_GT, OPR_GE,
-@@ -33,8 +36,11 @@
- } BinOpr;
- 
- 
-+#if defined(LUA_BITWISE_OPERATORS)
-+typedef enum UnOpr { OPR_BNOT, OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr;
-+#else
- typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr;
--
-+#endif
- 
- #define getcode(fs,e)	((fs)->f->code[(e)->u.s.info])
- 
-diff -Nurd lua-5.1.5/src/ldebug.c lua-5.1.5/src/ldebug.c
---- lua-5.1.5/src/ldebug.c	2008-05-08 19:56:26.000000000 +0300
-+++ lua-5.1.5/src/ldebug.c	2012-11-28 21:12:23.958419501 +0200
-@@ -592,6 +592,16 @@
-   luaG_typeerror(L, p2, "perform arithmetic on");
- }
- 
-+#if defined (LUA_BITWISE_OPERATORS)
-+void luaG_logicerror (lua_State *L, const TValue *p1, const TValue *p2) {
-+  TValue temp;
-+  if (luaV_tonumber(p1, &temp) == NULL)
-+    p2 = p1;  /* first operand is wrong */
-+  luaG_typeerror(L, p2, "perform bitwise operation on");
-+}
-+#endif
-+
-+
- 
- int luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) {
-   const char *t1 = luaT_typenames[ttype(p1)];
-diff -Nurd lua-5.1.5/src/ldebug.h lua-5.1.5/src/ldebug.h
---- lua-5.1.5/src/ldebug.h	2007-12-27 15:02:25.000000000 +0200
-+++ lua-5.1.5/src/ldebug.h	2012-11-28 21:12:23.958419501 +0200
-@@ -30,4 +30,9 @@
- LUAI_FUNC int luaG_checkcode (const Proto *pt);
- LUAI_FUNC int luaG_checkopenop (Instruction i);
- 
-+#if defined (LUA_BITWISE_OPERATORS)
-+LUAI_FUNC void luaG_logicerror (lua_State *L, const TValue *p1,
-+                                              const TValue *p2);
-+#endif
-+
- #endif
-diff -Nurd lua-5.1.5/src/llex.c lua-5.1.5/src/llex.c
---- lua-5.1.5/src/llex.c	2009-11-23 16:58:22.000000000 +0200
-+++ lua-5.1.5/src/llex.c	2012-11-28 21:12:23.958419501 +0200
-@@ -39,7 +39,11 @@
-     "end", "false", "for", "function", "if",
-     "in", "local", "nil", "not", "or", "repeat",
-     "return", "then", "true", "until", "while",
-+#if defined(LUA_BITWISE_OPERATORS)
-+    "..", "...", "==", ">=", ">>", "<=", "<<", "^^", "~=", "!="
-+#else
-     "..", "...", "==", ">=", "<=", "~=",
-+#endif
-     "<number>", "<name>", "<string>", "<eof>",
-     NULL
- };
-@@ -373,6 +377,30 @@
-         if (ls->current != '=') return '=';
-         else { next(ls); return TK_EQ; }
-       }
-+#if defined(LUA_BITWISE_OPERATORS)
-+      case '<': {
-+        next(ls);
-+        if (ls->current == '=') { next(ls); return TK_LE; }
-+        else if (ls->current == '<') { next(ls); return TK_LSHFT; }
-+        else  return '<';
-+      }
-+      case '>': {
-+        next(ls);
-+        if (ls->current == '=') { next(ls); return TK_GE; }
-+        else if (ls->current == '>') { next(ls); return TK_RSHFT; }
-+        else return '>';
-+      }
-+      case '^': {
-+        next(ls);
-+        if (ls->current != '^') return '^';
-+        else { next(ls); return TK_XOR; }
-+      }
-+      case '!': {
-+        next(ls);
-+        if (ls->current != '=') return '!';
-+        else { next(ls); return TK_NE; }
-+      }
-+#else
-       case '<': {
-         next(ls);
-         if (ls->current != '=') return '<';
-@@ -381,8 +409,9 @@
-       case '>': {
-         next(ls);
-         if (ls->current != '=') return '>';
--        else { next(ls); return TK_GE; }
-+        else  { next(ls); return TK_GE; }
-       }
-+#endif
-       case '~': {
-         next(ls);
-         if (ls->current != '=') return '~';
-diff -Nurd lua-5.1.5/src/llex.h lua-5.1.5/src/llex.h
---- lua-5.1.5/src/llex.h	2007-12-27 15:02:25.000000000 +0200
-+++ lua-5.1.5/src/llex.h	2012-11-28 21:12:23.962419499 +0200
-@@ -28,7 +28,11 @@
-   TK_IF, TK_IN, TK_LOCAL, TK_NIL, TK_NOT, TK_OR, TK_REPEAT,
-   TK_RETURN, TK_THEN, TK_TRUE, TK_UNTIL, TK_WHILE,
-   /* other terminal symbols */
-+#if defined(LUA_BITWISE_OPERATORS)
-+  TK_CONCAT, TK_DOTS, TK_EQ, TK_GE, TK_LSHFT, TK_LE, TK_RSHFT, TK_XOR, TK_NE, TK_CNE, TK_NUMBER,
-+#else
-   TK_CONCAT, TK_DOTS, TK_EQ, TK_GE, TK_LE, TK_NE, TK_NUMBER,
-+#endif
-   TK_NAME, TK_STRING, TK_EOS
- };
- 
-diff -Nurd lua-5.1.5/src/lopcodes.c lua-5.1.5/src/lopcodes.c
---- lua-5.1.5/src/lopcodes.c	2007-12-27 15:02:25.000000000 +0200
-+++ lua-5.1.5/src/lopcodes.c	2012-11-28 21:12:23.962419499 +0200
-@@ -32,6 +32,15 @@
-   "DIV",
-   "MOD",
-   "POW",
-+#if defined(LUA_BITWISE_OPERATORS)
-+  "BOR",
-+  "BAND",
-+  "OP_BXOR"
-+  "BLSHFT",
-+  "BRSHFT",
-+  "BNOT",
-+  "INTDIV",
-+#endif
-   "UNM",
-   "NOT",
-   "LEN",
-@@ -78,6 +87,15 @@
-  ,opmode(0, 1, OpArgK, OpArgK, iABC)		/* OP_DIV */
-  ,opmode(0, 1, OpArgK, OpArgK, iABC)		/* OP_MOD */
-  ,opmode(0, 1, OpArgK, OpArgK, iABC)		/* OP_POW */
-+#if defined(LUA_BITWISE_OPERATORS)
-+ ,opmode(0, 1, OpArgK, OpArgK, iABC)		/* OP_BOR */
-+ ,opmode(0, 1, OpArgK, OpArgK, iABC)		/* OP_BAND */
-+ ,opmode(0, 1, OpArgK, OpArgK, iABC)		/* OP_BXOR */
-+ ,opmode(0, 1, OpArgK, OpArgK, iABC)		/* OP_BLSHFT */
-+ ,opmode(0, 1, OpArgK, OpArgK, iABC)		/* OP_BRSHFT */
-+ ,opmode(0, 1, OpArgR, OpArgN, iABC)		/* OP_BNOT */
-+ ,opmode(0, 1, OpArgK, OpArgK, iABC)		/* OP_INTDIV */
-+#endif
-  ,opmode(0, 1, OpArgR, OpArgN, iABC)		/* OP_UNM */
-  ,opmode(0, 1, OpArgR, OpArgN, iABC)		/* OP_NOT */
-  ,opmode(0, 1, OpArgR, OpArgN, iABC)		/* OP_LEN */
-diff -Nurd lua-5.1.5/src/lopcodes.h lua-5.1.5/src/lopcodes.h
---- lua-5.1.5/src/lopcodes.h	2007-12-27 15:02:25.000000000 +0200
-+++ lua-5.1.5/src/lopcodes.h	2012-11-28 21:12:23.962419499 +0200
-@@ -174,10 +174,20 @@
- OP_DIV,/*	A B C	R(A) := RK(B) / RK(C)				*/
- OP_MOD,/*	A B C	R(A) := RK(B) % RK(C)				*/
- OP_POW,/*	A B C	R(A) := RK(B) ^ RK(C)				*/
-+#if defined(LUA_BITWISE_OPERATORS)
-+OP_BOR,/*	A B C	R(A) := RK(B) | RK(C)				*/
-+OP_BAND,/*	A B C	R(A) := RK(B) & RK(C)				*/
-+OP_BXOR,/*	A B C	R(A) := RK(B) ^| RK(C)				*/
-+OP_BLSHFT,/*	A B C	R(A) := RK(B) << RK(C)				*/
-+OP_BRSHFT,/*	A B C	R(A) := RK(B) >> RK(C)				*/
-+OP_BNOT,/*	A B	R(A) := ~ R(B)				*/
-+OP_INTDIV,/*	A B C	R(A) := RK(B) \ RK(C)				*/
-+#endif
- OP_UNM,/*	A B	R(A) := -R(B)					*/
- OP_NOT,/*	A B	R(A) := not R(B)				*/
- OP_LEN,/*	A B	R(A) := length of R(B)				*/
- 
-+
- OP_CONCAT,/*	A B C	R(A) := R(B).. ... ..R(C)			*/
- 
- OP_JMP,/*	sBx	pc+=sBx					*/
-@@ -186,8 +196,8 @@
- OP_LT,/*	A B C	if ((RK(B) <  RK(C)) ~= A) then pc++  		*/
- OP_LE,/*	A B C	if ((RK(B) <= RK(C)) ~= A) then pc++  		*/
- 
--OP_TEST,/*	A C	if not (R(A) <=> C) then pc++			*/ 
--OP_TESTSET,/*	A B C	if (R(B) <=> C) then R(A) := R(B) else pc++	*/ 
-+OP_TEST,/*	A C	if not (R(A) <=> C) then pc++			*/
-+OP_TESTSET,/*	A B C	if (R(B) <=> C) then R(A) := R(B) else pc++	*/
- 
- OP_CALL,/*	A B C	R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1)) */
- OP_TAILCALL,/*	A B C	return R(A)(R(A+1), ... ,R(A+B-1))		*/
-@@ -197,8 +207,8 @@
- 			if R(A) <?= R(A+1) then { pc+=sBx; R(A+3)=R(A) }*/
- OP_FORPREP,/*	A sBx	R(A)-=R(A+2); pc+=sBx				*/
- 
--OP_TFORLOOP,/*	A C	R(A+3), ... ,R(A+2+C) := R(A)(R(A+1), R(A+2)); 
--                        if R(A+3) ~= nil then R(A+2)=R(A+3) else pc++	*/ 
-+OP_TFORLOOP,/*	A C	R(A+3), ... ,R(A+2+C) := R(A)(R(A+1), R(A+2));
-+                        if R(A+3) ~= nil then R(A+2)=R(A+3) else pc++	*/
- OP_SETLIST,/*	A B C	R(A)[(C-1)*FPF+i] := R(A+i), 1 <= i <= B	*/
- 
- OP_CLOSE,/*	A 	close all variables in the stack up to (>=) R(A)*/
-diff -Nurd lua-5.1.5/src/lparser.c lua-5.1.5/src/lparser.c
---- lua-5.1.5/src/lparser.c	2011-10-21 22:31:42.000000000 +0300
-+++ lua-5.1.5/src/lparser.c	2012-11-28 21:12:23.962419499 +0200
-@@ -780,6 +780,9 @@
-     case TK_NOT: return OPR_NOT;
-     case '-': return OPR_MINUS;
-     case '#': return OPR_LEN;
-+#if defined(LUA_BITWISE_OPERATORS)
-+    case '~': return OPR_BNOT;
-+#endif
-     default: return OPR_NOUNOPR;
-   }
- }
-@@ -793,6 +796,14 @@
-     case '/': return OPR_DIV;
-     case '%': return OPR_MOD;
-     case '^': return OPR_POW;
-+#if defined(LUA_BITWISE_OPERATORS)
-+    case '|': return OPR_BOR;
-+    case '&': return OPR_BAND;
-+    case TK_XOR: return OPR_BXOR;
-+    case TK_LSHFT: return OPR_BLSHFT;
-+    case TK_RSHFT: return OPR_BRSHFT;
-+    case '\\': return OPR_INTDIV;
-+#endif
-     case TK_CONCAT: return OPR_CONCAT;
-     case TK_NE: return OPR_NE;
-     case TK_EQ: return OPR_EQ;
-@@ -812,6 +823,9 @@
-   lu_byte right; /* right priority */
- } priority[] = {  /* ORDER OPR */
-    {6, 6}, {6, 6}, {7, 7}, {7, 7}, {7, 7},  /* `+' `-' `/' `%' */
-+#if defined(LUA_BITWISE_OPERATORS)
-+   {6, 6}, {6, 6}, {6, 6}, {7, 7}, {7, 7}, {7, 7}, /* `|' `&' `!' `<<' `>>' `\' */
-+#endif
-    {10, 9}, {5, 4},                 /* power and concat (right associative) */
-    {3, 3}, {3, 3},                  /* equality and inequality */
-    {3, 3}, {3, 3}, {3, 3}, {3, 3},  /* order */
-diff -Nurd lua-5.1.5/src/ltm.c lua-5.1.5/src/ltm.c
---- lua-5.1.5/src/ltm.c	2007-12-27 15:02:25.000000000 +0200
-+++ lua-5.1.5/src/ltm.c	2012-11-28 21:12:23.962419499 +0200
-@@ -34,6 +34,9 @@
-     "__add", "__sub", "__mul", "__div", "__mod",
-     "__pow", "__unm", "__len", "__lt", "__le",
-     "__concat", "__call"
-+#if defined(LUA_BITWISE_OPERATORS)
-+    ,"__or", "__and", "__xor", "__shl", "__shr", "__not", "__intdiv"
-+#endif
-   };
-   int i;
-   for (i=0; i<TM_N; i++) {
-diff -Nurd lua-5.1.5/src/ltm.h lua-5.1.5/src/ltm.h
---- lua-5.1.5/src/ltm.h	2007-12-27 15:02:25.000000000 +0200
-+++ lua-5.1.5/src/ltm.h	2012-11-28 21:12:23.962419499 +0200
-@@ -33,6 +33,15 @@
-   TM_LE,
-   TM_CONCAT,
-   TM_CALL,
-+#if defined(LUA_BITWISE_OPERATORS)
-+  TM_BOR,
-+  TM_BAND,
-+  TM_BXOR,
-+  TM_BLSHFT,
-+  TM_BRSHFT,
-+  TM_BNOT,
-+  TM_INTDIV,
-+#endif
-   TM_N		/* number of elements in the enum */
- } TMS;
- 
-diff -Nurd lua-5.1.5/src/luaconf.h lua-5.1.5/src/luaconf.h
---- lua-5.1.5/src/luaconf.h	2008-02-11 18:25:08.000000000 +0200
-+++ lua-5.1.5/src/luaconf.h	2012-11-28 21:12:23.962419499 +0200
-@@ -2,6 +2,7 @@
- ** $Id: luaconf.h,v 1.82.1.7 2008/02/11 16:25:08 roberto Exp $
- ** Configuration file for Lua
- ** See Copyright Notice in lua.h
-+** Added logic operators : & | ^^ (xor) << >> ~, arithmetic operator \ (integer division) and != as an alternative to ~=
- */
- 
- 
-@@ -209,6 +210,12 @@
- */
- #define LUA_IDSIZE	60
- 
-+/*
-+@@ LUA_BITWISE_OPERATORS enable logical operators | & ^| >> << ~ on lua_Number
-+@* but also arithmetic operator \ (integer division) and != as an alernative to ~=
-+*/
-+#define LUA_BITWISE_OPERATORS
-+
- 
- /*
- ** {==================================================================
-@@ -216,6 +223,7 @@
- ** ===================================================================
- */
- 
-+
- #if defined(lua_c) || defined(luaall_c)
- 
- /*
-@@ -526,25 +534,6 @@
- 
- 
- /*
--@@ The luai_num* macros define the primitive operations over numbers.
--*/
--#if defined(LUA_CORE)
--#include <math.h>
--#define luai_numadd(a,b)	((a)+(b))
--#define luai_numsub(a,b)	((a)-(b))
--#define luai_nummul(a,b)	((a)*(b))
--#define luai_numdiv(a,b)	((a)/(b))
--#define luai_nummod(a,b)	((a) - floor((a)/(b))*(b))
--#define luai_numpow(a,b)	(pow(a,b))
--#define luai_numunm(a)		(-(a))
--#define luai_numeq(a,b)		((a)==(b))
--#define luai_numlt(a,b)		((a)<(b))
--#define luai_numle(a,b)		((a)<=(b))
--#define luai_numisnan(a)	(!luai_numeq((a), (a)))
--#endif
--
--
--/*
- @@ lua_number2int is a macro to convert lua_Number to int.
- @@ lua_number2integer is a macro to convert lua_Number to lua_Integer.
- ** CHANGE them if you know a faster way to convert a lua_Number to
-@@ -560,7 +549,7 @@
- /* On a Microsoft compiler, use assembler */
- #if defined(_MSC_VER)
- 
--#define lua_number2int(i,d)   __asm fld d   __asm fistp i
-+#define lua_number2int(i,d)   { __asm fld d   __asm fistp i }
- #define lua_number2integer(i,n)		lua_number2int(i, n)
- 
- /* the next trick should work on any Pentium, but sometimes clashes
-@@ -582,6 +571,38 @@
- 
- #endif
- 
-+
-+/*
-+@@ The luai_num* macros define the primitive operations over numbers.
-+*/
-+#if defined(LUA_CORE)
-+#include <math.h>
-+#define luai_numadd(a,b)	((a)+(b))
-+#define luai_numsub(a,b)	((a)-(b))
-+#define luai_nummul(a,b)	((a)*(b))
-+#define luai_numdiv(a,b)	((a)/(b))
-+#ifdef LUA_BITWISE_OPERATORS
-+#define luai_numintdiv(a,b)	(floor((a)/(b)))
-+#endif
-+#define luai_nummod(a,b)	((a) - floor((a)/(b))*(b))
-+#define luai_numpow(a,b)	(pow(a,b))
-+#define luai_numunm(a)		(-(a))
-+#define luai_numeq(a,b)		((a)==(b))
-+#define luai_numlt(a,b)		((a)<(b))
-+#define luai_numle(a,b)		((a)<=(b))
-+#define luai_numisnan(a)	(!luai_numeq((a), (a)))
-+
-+#if defined(LUA_BITWISE_OPERATORS)
-+#define luai_logor(r, a, b)	{ lua_Integer ai,bi; lua_number2int(ai,a); lua_number2int(bi,b); r = ai|bi; }
-+#define luai_logand(r, a,b)	{ lua_Integer ai,bi; lua_number2int(ai,a); lua_number2int(bi,b); r = ai&bi; }
-+#define luai_logxor(r, a,b)	{ lua_Integer ai,bi; lua_number2int(ai,a); lua_number2int(bi,b); r = ai^bi; }
-+#define luai_lognot(r,a)	{ lua_Integer ai; lua_number2int(ai,a); r = ~ai; }
-+#define luai_loglshft(r, a,b)	{ lua_Integer ai,bi; lua_number2int(ai,a); lua_number2int(bi,b); r = ai<<bi; }
-+#define luai_logrshft(r, a,b)	{ lua_Integer ai,bi; lua_number2int(ai,a); lua_number2int(bi,b); r = ai>>bi; }
-+#endif
-+
-+#endif
-+
- /* }================================================================== */
- 
- 
-diff -Nurd lua-5.1.5/src/lua.h lua-5.1.5/src/lua.h
---- lua-5.1.5/src/lua.h	2012-01-13 22:36:20.000000000 +0200
-+++ lua-5.1.5/src/lua.h	2012-11-28 21:13:01.266418680 +0200
-@@ -17,7 +17,7 @@
- 
- 
- #define LUA_VERSION	"Lua 5.1"
--#define LUA_RELEASE	"Lua 5.1.5"
-+#define LUA_RELEASE	"Lua 5.1.5+bitwiseops"
- #define LUA_VERSION_NUM	501
- #define LUA_COPYRIGHT	"Copyright (C) 1994-2012 Lua.org, PUC-Rio"
- #define LUA_AUTHORS 	"R. Ierusalimschy, L. H. de Figueiredo & W. Celes"
-diff -Nurd lua-5.1.5/src/lvm.c lua-5.1.5/src/lvm.c
---- lua-5.1.5/src/lvm.c	2011-08-17 23:43:11.000000000 +0300
-+++ lua-5.1.5/src/lvm.c	2012-11-28 21:12:23.966419498 +0200
-@@ -329,6 +329,9 @@
-       case TM_MOD: setnvalue(ra, luai_nummod(nb, nc)); break;
-       case TM_POW: setnvalue(ra, luai_numpow(nb, nc)); break;
-       case TM_UNM: setnvalue(ra, luai_numunm(nb)); break;
-+#if defined(LUA_BITWISE_OPERATORS)
-+      case TM_INTDIV: setnvalue(ra, luai_numintdiv(nb, nc)); break;
-+#endif
-       default: lua_assert(0); break;
-     }
-   }
-@@ -336,7 +339,30 @@
-     luaG_aritherror(L, rb, rc);
- }
- 
--
-+#if defined(LUA_BITWISE_OPERATORS)
-+static void Logic (lua_State *L, StkId ra, const TValue *rb,
-+                   const TValue *rc, TMS op) {
-+  TValue tempb, tempc;
-+  const TValue *b, *c;
-+  if ((b = luaV_tonumber(rb, &tempb)) != NULL &&
-+      (c = luaV_tonumber(rc, &tempc)) != NULL) {
-+    lua_Number nb = nvalue(b), nc = nvalue(c);
-+    lua_Integer r;
-+    switch (op) {
-+      case TM_BLSHFT: luai_loglshft(r, nb, nc); break;
-+      case TM_BRSHFT: luai_logrshft(r, nb, nc); break;
-+      case TM_BOR: luai_logor(r, nb, nc); break;
-+      case TM_BAND: luai_logand(r, nb, nc); break;
-+      case TM_BXOR: luai_logxor(r, nb, nc); break;
-+      case TM_BNOT: luai_lognot(r, nb); break;
-+      default: lua_assert(0); r = 0; break;
-+    }
-+    setnvalue(ra, r);
-+  }
-+  else if (!call_binTM(L, rb, rc, ra, op))
-+    luaG_logicerror(L, rb, rc);
-+}
-+#endif
- 
- /*
- ** some macros for common tasks in `luaV_execute'
-@@ -373,6 +399,22 @@
-       }
- 
- 
-+#if defined(LUA_BITWISE_OPERATORS)
-+#define logic_op(op,tm) { \
-+        TValue *rb = RKB(i); \
-+        TValue *rc = RKC(i); \
-+        if (ttisnumber(rb) && ttisnumber(rc)) { \
-+          lua_Integer r; \
-+          lua_Number nb = nvalue(rb), nc = nvalue(rc); \
-+          op(r, nb, nc); \
-+          setnvalue(ra, r); \
-+        } \
-+        else \
-+          Protect(Logic(L, ra, rb, rc, tm)); \
-+      }
-+#endif
-+
-+
- 
- void luaV_execute (lua_State *L, int nexeccalls) {
-   LClosure *cl;
-@@ -506,6 +548,45 @@
-         }
-         continue;
-       }
-+#if defined(LUA_BITWISE_OPERATORS)
-+      case OP_BOR: {
-+        logic_op(luai_logor, TM_BOR);
-+        continue;
-+      }
-+      case OP_BAND: {
-+        logic_op(luai_logand, TM_BAND);
-+        continue;
-+      }
-+      case OP_BXOR: {
-+        logic_op(luai_logxor, TM_BXOR);
-+        continue;
-+      }
-+      case OP_BLSHFT: {
-+        logic_op(luai_loglshft, TM_BLSHFT);
-+        continue;
-+      }
-+      case OP_BRSHFT: {
-+        logic_op(luai_logrshft, TM_BRSHFT);
-+        continue;
-+      }
-+      case OP_BNOT: {
-+        TValue *rb = RB(i);
-+        if (ttisnumber(rb)) {
-+          lua_Integer r;
-+          lua_Number nb = nvalue(rb);
-+          luai_lognot(r, nb);
-+          setnvalue(ra, r);
-+        }
-+        else {
-+          Protect(Logic(L, ra, rb, rb, TM_BNOT));
-+        }
-+        continue;
-+      }
-+      case OP_INTDIV: {
-+        arith_op(luai_numintdiv, TM_DIV);
-+        continue;
-+      }
-+#endif
-       case OP_NOT: {
-         int res = l_isfalse(RB(i));  /* next assignment may change this value */
-         setbvalue(ra, res);
-diff -Nurd lua-5.1.5/test/bitwisepatchtest.lua lua-5.1.5/test/bitwisepatchtest.lua
---- lua-5.1.5/test/bitwisepatchtest.lua	1970-01-01 02:00:00.000000000 +0200
-+++ lua-5.1.5/test/bitwisepatchtest.lua	2012-11-28 21:12:23.966419498 +0200
-@@ -0,0 +1,24 @@
-+hex=function (i) return "0x"..string.format("%X", i) end
-+print(hex(0x54|0x55))
-+print(hex(0x54&0x66))
-+print(hex(0x54^|0x66))
-+print(hex(~0x54))
-+print(hex(0xF<< 4))
-+print(hex(0xF0>> 4))
-+a,b=0x54,0x55
-+print(hex(a),"|",hex(b), "=",hex(a|b))
-+print(hex(a),"|","0x55", "=",hex(a|0x55))
-+print(hex(a),"|","0x5|0x50 (", hex(0x5|0x50), ") =",hex(a|(0x5|0x50)))
-+a,b=0x54,0x66
-+print(hex(a),"&",hex(b), "=",hex(a&b))
-+print(hex(a),"&","0x66", "=",hex(a&0x66))
-+print(hex(a),"^|",hex(b), "=",hex(a^|b))
-+print(hex(a),"^|","0x66", "=",hex(a^|0x66))
-+print("~"..hex(a),"=",hex(~a))
-+a,b=0xF,0xF0
-+print(hex(a).."<<4","=",hex(a<<4))
-+print(hex(b)..">>4","=",hex(b>>4))
-+a,b=0xF,4
-+print(hex(a).."<<"..b,"=",hex(a<<b))
-+a,b=0xF0,4
-+print(hex(a)..">>"..b,"=",hex(a>>b))
meta-oe/recipes-devtools/lua/lua5.1/lua5.1.pc deleted +0 -11
deleted file mode 100644
index 64c03d2..0000000
@@ -1,11 +0,0 @@
-prefix=/usr
-libdir=${prefix}/lib
-includedir=${prefix}/include
-
-Name: Lua
-Description: Lua language engine
-Version: 5.1.5
-Requires:
-Libs: -L${libdir} -llua
-Libs.private: -lm
-Cflags: -I${includedir}
meta-oe/recipes-devtools/lua/lua5.1/luaorg_1.patch deleted +0 -18
deleted file mode 100644
index b64a6a2..0000000
@@ -1,18 +0,0 @@
-lua.org patch 1 for lua-5.1.5.
-from http://www.lua.org/bugs.html
-
-Upstream-Status: Backport
-
-Signed-off-by: Marko Lindqvist <[email protected]>
-diff -Nurd lua-5.1.5/src/Makefile lua-5.1.5/src/Makefile
---- lua-5.1.5/src/Makefile	2012-02-13 22:41:22.000000000 +0200
-+++ lua-5.1.5/src/Makefile	2013-10-25 11:29:49.769540434 +0300
-@@ -48,7 +48,7 @@
- a:	$(ALL_A)
- 
- $(LUA_A): $(CORE_O) $(LIB_O)
--	$(AR) $@ $(CORE_O) $(LIB_O)	# DLL needs all object files
-+	$(AR) $@ $(CORE_O) $(LIB_O)
- 	$(RANLIB) $@
- 
- $(LUA_T): $(LUA_O) $(LUA_A)
meta-oe/recipes-devtools/lua/lua5.1/luaorg_2.patch deleted +0 -44

44 lines not on this page · raw message

meta-oe/recipes-devtools/lua/lua5.1/uclibc-pthread.patch deleted +0 -13
deleted file mode 100644
index 0555e81..0000000
@@ -1,13 +0,0 @@
-Index: lua-5.1.4/src/Makefile
-===================================================================
---- lua-5.1.4.orig/src/Makefile	2010-10-16 09:51:52.000000000 +0200
-+++ lua-5.1.4/src/Makefile	2010-10-16 09:52:15.000000000 +0200
-@@ -12,7 +12,7 @@
- AR= ar rcu
- RANLIB= ranlib
- RM= rm -f
--LIBS= -lm $(MYLIBS)
-+LIBS= -lm -lpthread $(MYLIBS)
- 
- MYCFLAGS=
- MYLDFLAGS=
meta-oe/recipes-devtools/lua/lua5.1_5.1.5.bb deleted +0 -55

55 lines not on this page · raw message

Signature · 1 line
2.0.0