[oe-commits] Petr Štetiar : lua-lanes: add recipe for git version 2 .1.0 and delete the old one

git version control git at git.openembedded.org
Sun May 8 18:04:17 UTC 2011


Module: openembedded.git
Branch: master
Commit: 9bfd0836bbea1d8200e462add2f7079d2fefbcca
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=9bfd0836bbea1d8200e462add2f7079d2fefbcca

Author: Petr Štetiar <ynezz at true.cz>
Date:   Sun Mar 13 22:47:18 2011 +0100

lua-lanes: add recipe for git version 2.1.0 and delete the old one

I'm removing the old version 2.0.6, because it shouldn't have been commited at
the first place anyway. It was quite buggy and untested version.

- renamed package name and use it as git version from now, because they do not
  tag it so frequently
- fix homepage URL to the maintained version
- added license checksum

Signed-off-by: Petr Štetiar <ynezz at true.cz>

---

 .../0001-fix-LanesTimer-inifinite-thread-GC.patch  |   31 --------------------
 .../{lua-lanes-2.0.6 => lua-lanes}/makefile.patch  |    0
 .../{lua-lanes-2.0.6 => lua-lanes}/uclibc.patch    |    0
 .../lua/{lua-lanes_2.0.6.bb => lua-lanes_git.bb}   |   18 ++++++------
 4 files changed, 9 insertions(+), 40 deletions(-)

diff --git a/recipes/lua/lua-lanes-2.0.6/0001-fix-LanesTimer-inifinite-thread-GC.patch b/recipes/lua/lua-lanes-2.0.6/0001-fix-LanesTimer-inifinite-thread-GC.patch
deleted file mode 100644
index 18fb36b..0000000
--- a/recipes/lua/lua-lanes-2.0.6/0001-fix-LanesTimer-inifinite-thread-GC.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 69583ec6fc6cd18a0248d1233193bb2407dbda04 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz at true.cz>
-Date: Sun, 31 Oct 2010 23:02:49 +0100
-Subject: [PATCH] fix LanesTimer inifinite thread GC
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-threading.c 394: pthread_cond_destroy(ref) failed, 16 EBUSY
-
-Signed-off-by: Petr Štetiar <ynezz at true.cz>
----
- src/lanes.c |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/src/lanes.c b/src/lanes.c
-index c02c540..54cfa7a 100644
---- a/src/lanes.c
-+++ b/src/lanes.c
-@@ -1559,7 +1559,7 @@ LUAG_FUNC( thread_gc ) {
- 
-     // We can read 's->status' without locks, but not wait for it
-     //
--    if (s->status < DONE) {
-+    if (s->status < DONE && strcmp(s->threadName, "LanesTimer")) {
-         //
-         selfdestruct_add(s);
-         assert( s->selfdestruct_next );
--- 
-1.7.0.4
-
diff --git a/recipes/lua/lua-lanes-2.0.6/makefile.patch b/recipes/lua/lua-lanes/makefile.patch
similarity index 100%
rename from recipes/lua/lua-lanes-2.0.6/makefile.patch
rename to recipes/lua/lua-lanes/makefile.patch
diff --git a/recipes/lua/lua-lanes-2.0.6/uclibc.patch b/recipes/lua/lua-lanes/uclibc.patch
similarity index 100%
rename from recipes/lua/lua-lanes-2.0.6/uclibc.patch
rename to recipes/lua/lua-lanes/uclibc.patch
diff --git a/recipes/lua/lua-lanes_2.0.6.bb b/recipes/lua/lua-lanes_git.bb
similarity index 59%
rename from recipes/lua/lua-lanes_2.0.6.bb
rename to recipes/lua/lua-lanes_git.bb
index dc9a60d..06ac3d5 100644
--- a/recipes/lua/lua-lanes_2.0.6.bb
+++ b/recipes/lua/lua-lanes_git.bb
@@ -1,16 +1,19 @@
 DESCRIPTION = "Lua Lanes is a Lua extension library providing the possibility to run multiple Lua states in parallel."
+HOMEPAGE = "https://github.com/LuaLanes/lanes"
 LICENSE = "MIT"
-HOMEPAGE = "http://kotisivu.dnainternet.net/askok/bin/lanes/index.html"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=8cd4045dac80d5036b8a09fed113236e"
 
 DEPENDS += "lua5.1-native"
 RDEPENDS_${PN} += "lua5.1"
 
-PR = "r1"
-S = "${WORKDIR}/lanes-${PV}"
+PR = "r0"
+PV = "2.1.0+gitr${SRCREV}"
 
-SRC_URI = "http://luaforge.net/frs/download.php/4652/lanes-2.0.6.tgz \
+S = "${WORKDIR}/git/"
+SRCREV = "507e02b20f4ce2c57c18992fe68430b0ffb3eee9"
+
+SRC_URI = "git://github.com/LuaLanes/lanes.git;protocol=git \
            file://makefile.patch \
-           file://0001-fix-LanesTimer-inifinite-thread-GC.patch \
           "
 
 UCLIBC_PATCHES = "file://uclibc.patch"
@@ -26,8 +29,5 @@ FILES_${PN}-dbg = "${LUA_LIB_DIR}/.debug/lua51-lanes.so"
 EXTRA_OEMAKE = "MYFLAGS='${CFLAGS} ${LDFLAGS}'"
 
 do_install() {
-	oe_runmake install DESTDIR='${D}/usr' 
+	oe_runmake install DESTDIR='${D}/usr'
 }
-
-SRC_URI[md5sum] = "1716bdf138fcc65b7069aaad864da677"
-SRC_URI[sha256sum] = "7b07fa1c21749981ec0addcf8e9e85acfca91efe8d3f64982a6ac0bc6a615e70"





More information about the Openembedded-commits mailing list