RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Ralf S. Engelschall
Root: /v/rpm/cvs Email: rse@rpm5.org
Module: rpm lua Date: 23-Aug-2008 09:38:12
Branch: HEAD Handle: 2008082307381101
Modified files:
lua lapi.c loadlib.c lobject.h lstrlib.c lua.h
lualib.h
rpm CHANGES INSTALL devtool.conf
Log:
upgrade to Lua 5.1.4
Summary:
Revision Changes Path
1.6 +7 -4 lua/lapi.c
1.3 +5 -3 lua/loadlib.c
1.5 +2 -2 lua/lobject.h
1.3 +3 -2 lua/lstrlib.c
1.3 +2 -2 lua/lua.h
1.4 +1 -0 lua/lualib.h
1.2539 +1 -0 rpm/CHANGES
2.109 +1 -1 rpm/INSTALL
2.243 +1 -1 rpm/devtool.conf
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: lua/lapi.c
============================================================================
$ cvs diff -u -r1.5 -r1.6 lapi.c
--- lua/lapi.c 8 Jun 2008 09:23:25 -0000 1.5
+++ lua/lapi.c 23 Aug 2008 07:38:12 -0000 1.6
@@ -1,5 +1,5 @@
/*
-** $Id: lapi.c,v 2.55.1.4 2008/02/14 16:46:39 roberto Exp $
+** $Id: lapi.c,v 2.55.1.5 2008/07/04 18:41:18 roberto Exp $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -929,10 +929,13 @@
g->GCthreshold = g->totalbytes - a;
else
g->GCthreshold = 0;
- while (g->GCthreshold <= g->totalbytes)
+ while (g->GCthreshold <= g->totalbytes) {
luaC_step(L);
- if (g->gcstate == GCSpause) /* end of cycle? */
- res = 1; /* signal it */
+ if (g->gcstate == GCSpause) { /* end of cycle? */
+ res = 1; /* signal it */
+ break;
+ }
+ }
break;
}
case LUA_GCSETPAUSE: {
@@ .
patch -p0 <<'@@ .'
Index: lua/loadlib.c
============================================================================
$ cvs diff -u -r1.2 -r1.3 loadlib.c
--- lua/loadlib.c 25 Jan 2008 16:54:30 -0000 1.2
+++ lua/loadlib.c 23 Aug 2008 07:38:12 -0000 1.3
@@ -1,5 +1,5 @@
/*
-** $Id: loadlib.c,v 1.52.1.2 2007/12/28 14:58:43 roberto Exp $
+** $Id: loadlib.c,v 1.52.1.3 2008/08/06 13:29:28 roberto Exp $
** Dynamic library loader for Lua
** See Copyright Notice in lua.h
**
@@ -506,8 +506,10 @@
static void setfenv (lua_State *L) {
lua_Debug ar;
- lua_getstack(L, 1, &ar);
- lua_getinfo(L, "f", &ar);
+ if (lua_getstack(L, 1, &ar) == 0 ||
+ lua_getinfo(L, "f", &ar) == 0 || /* get calling function */
+ lua_iscfunction(L, -1))
+ luaL_error(L, LUA_QL("module") " not called from a Lua function");
lua_pushvalue(L, -2);
lua_setfenv(L, -2);
lua_pop(L, 1);
@@ .
patch -p0 <<'@@ .'
Index: lua/lobject.h
============================================================================
$ cvs diff -u -r1.4 -r1.5 lobject.h
--- lua/lobject.h 25 Jan 2008 16:54:30 -0000 1.4
+++ lua/lobject.h 23 Aug 2008 07:38:12 -0000 1.5
@@ -1,5 +1,5 @@
/*
-** $Id: lobject.h,v 2.20.1.1 2007/12/27 13:02:25 roberto Exp $
+** $Id: lobject.h,v 2.20.1.2 2008/08/06 13:29:48 roberto Exp $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
@@ -208,7 +208,7 @@
#define getstr(ts) cast(const char *, (ts) + 1)
-#define svalue(o) getstr(tsvalue(o))
+#define svalue(o) getstr(rawtsvalue(o))
@@ .
patch -p0 <<'@@ .'
Index: lua/lstrlib.c
============================================================================
$ cvs diff -u -r1.2 -r1.3 lstrlib.c
--- lua/lstrlib.c 25 Jan 2008 16:54:30 -0000 1.2
+++ lua/lstrlib.c 23 Aug 2008 07:38:12 -0000 1.3
@@ -1,5 +1,5 @@
/*
-** $Id: lstrlib.c,v 1.132.1.3 2007/12/28 15:32:23 roberto Exp $
+** $Id: lstrlib.c,v 1.132.1.4 2008/07/11 17:27:21 roberto Exp $
** Standard library for string operations and pattern-matching
** See Copyright Notice in lua.h
*/
@@ -35,7 +35,8 @@
static ptrdiff_t posrelat (ptrdiff_t pos, size_t len) {
/* relative string position: negative means back from end */
- return (pos>=0) ? pos : (ptrdiff_t)len+pos+1;
+ if (pos < 0) pos += (ptrdiff_t)len + 1;
+ return (pos >= 0) ? pos : 0;
}
@@ .
patch -p0 <<'@@ .'
Index: lua/lua.h
============================================================================
$ cvs diff -u -r1.2 -r1.3 lua.h
--- lua/lua.h 25 Jan 2008 16:54:30 -0000 1.2
+++ lua/lua.h 23 Aug 2008 07:38:12 -0000 1.3
@@ -1,5 +1,5 @@
/*
-** $Id: lua.h,v 1.218.1.4 2008/01/03 15:41:15 roberto Exp $
+** $Id: lua.h,v 1.218.1.5 2008/08/06 13:30:12 roberto Exp $
** Lua - An Extensible Extension Language
** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
** See Copyright Notice at the end of this file
@@ -17,7 +17,7 @@
#define LUA_VERSION "Lua 5.1"
-#define LUA_RELEASE "Lua 5.1.3"
+#define LUA_RELEASE "Lua 5.1.4"
#define LUA_VERSION_NUM 501
#define LUA_COPYRIGHT "Copyright (C) 1994-2008 Lua.org, PUC-Rio"
#define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo & W. Celes"
@@ .
patch -p0 <<'@@ .'
Index: lua/lualib.h
============================================================================
$ cvs diff -u -r1.3 -r1.4 lualib.h
--- lua/lualib.h 17 Aug 2008 18:31:34 -0000 1.3
+++ lua/lualib.h 23 Aug 2008 07:38:12 -0000 1.4
@@ -39,6 +39,7 @@
#define LUA_LOADLIBNAME "package"
LUALIB_API int (luaopen_package) (lua_State *L);
+
/* open all previous libraries */
LUALIB_API void (luaL_openlibs) (lua_State *L);
@@ .
patch -p0 <<'@@ .'
Index: rpm/CHANGES
============================================================================
$ cvs diff -u -r1.2538 -r1.2539 CHANGES
--- rpm/CHANGES 22 Aug 2008 04:58:05 -0000 1.2538
+++ rpm/CHANGES 23 Aug 2008 07:38:11 -0000 1.2539
@@ -1,5 +1,6 @@
5.1.0 -> 5.2a0:
+ - rse: upgrade embedded Lua from version 5.1.3 to 5.1.4
- jbj: WR: remove --with-path-versioned in devtool targets.
- jbj: WR: remove $(VERION) from macros paths in devtool targets.
- jbj: WR: add devtool windriver-{host,target} configuration targets.
@@ .
patch -p0 <<'@@ .'
Index: rpm/INSTALL
============================================================================
$ cvs diff -u -r2.108 -r2.109 INSTALL
--- rpm/INSTALL 19 Aug 2008 21:32:58 -0000 2.108
+++ rpm/INSTALL 23 Aug 2008 07:38:12 -0000 2.109
@@ -35,7 +35,7 @@
Neon optional 0.26.0 0.28.1 http://www.webdav.org/neon/
Berkeley-DB [1] optional 4.5 4.7.25 http://www.oracle.com/database/berkeley-db.html
SQLite [1] optional 3.3 3.6.1 http://www.sqlite.org/
-Lua [2] optional 5.1 5.1.3 http://www.lua.org/
+Lua [2] optional 5.1 5.1.4 http://www.lua.org/
ZLib optional 1.2 1.2.3 http://www.zlib.net/
Bzip2 optional 1.0 1.0.5 http://www.bzip.org/
LZMA Utils [3] optional 4.42.2 4.999.3 http://tukaani.org/lzma/
@@ .
patch -p0 <<'@@ .'
Index: rpm/devtool.conf
============================================================================
$ cvs diff -u -r2.242 -r2.243 devtool.conf
--- rpm/devtool.conf 22 Aug 2008 04:58:06 -0000 2.242
+++ rpm/devtool.conf 23 Aug 2008 07:38:12 -0000 2.243
@@ -301,7 +301,7 @@
v_beecrypt="4.1.2"
v_db="4.7.25"
v_sqlite="3.6.1"
- v_lua="5.1.3"
+ v_lua="5.1.4"
v_file="4.25"
v_popt="1.14"
v_libxml2="2.6.32"
@@ .
Received on Sat Aug 23 09:38:12 2008