OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 25-Aug-2007 10:12:28
Branch: HEAD Handle: 2007082509122700
Modified files:
openpkg-src/lua lua.patch lua.spec
Log:
apply upstream vendor patches 1-7
Summary:
Revision Changes Path
1.4 +76 -0 openpkg-src/lua/lua.patch
1.22 +1 -1 openpkg-src/lua/lua.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/lua/lua.patch
============================================================================
$ cvs diff -u -r1.3 -r1.4 lua.patch
--- openpkg-src/lua/lua.patch 2 Apr 2007 15:11:23 -0000 1.3
+++ openpkg-src/lua/lua.patch 25 Aug 2007 08:12:27 -0000 1.4
@@ -58,3 +58,79 @@
#endif
#if defined(LUA_USE_MACOSX)
+
+-----------------------------------------------------------------------------
+
+Lua 5.1.2 patches 1-7
+http://www.lua.org/bugs.html
+
+Index: src/lcode.c
+--- src/lcode.c 15 Jul 2007 17:56:10 -0000 1.3
++++ src/lcode.c 25 Aug 2007 08:09:13 -0000
+@@ -699,7 +699,7 @@
+ e2.t = e2.f = NO_JUMP; e2.k = VKNUM; e2.u.nval = 0;
+ switch (op) {
+ case OPR_MINUS: {
+- if (e->k == VK)
++ if (!isnumeral(e))
+ luaK_exp2anyreg(fs, e); /* cannot operate on non-numeric constants
*/
+ codearith(fs, OP_UNM, e, &e2);
+ break;
+Index: src/ldebug.c
+--- src/ldebug.c 15 Jul 2007 17:56:10 -0000 1.3
++++ src/ldebug.c 25 Aug 2007 08:09:14 -0000
+@@ -563,8 +563,8 @@
+
+
+ void luaG_concaterror (lua_State *L, StkId p1, StkId p2) {
+- if (ttisstring(p1)) p1 = p2;
+- lua_assert(!ttisstring(p1));
++ if (ttisstring(p1) || ttisnumber(p1)) p1 = p2;
++ lua_assert(!ttisstring(p1) && !ttisnumber(p1));
+ luaG_typeerror(L, p1, "concatenate");
+ }
+
+Index: src/lparser.c
+--- src/lparser.c 15 Jul 2007 17:56:10 -0000 1.4
++++ src/lparser.c 25 Aug 2007 08:09:14 -0000
+@@ -938,6 +938,8 @@
+ primaryexp(ls, &nv.v);
+ if (nv.v.k == VLOCAL)
+ check_conflict(ls, lh, &nv.v);
++ luaY_checklimit(ls->fs, nvars, LUAI_MAXCCALLS - ls->L->nCcalls,
++ "variable names");
+ assignment(ls, &nv, nvars+1);
+ }
+ else { /* assignment -> `=' explist1 */
+Index: src/ltable.c
+--- src/ltable.c 15 Jul 2007 17:56:11 -0000 1.3
++++ src/ltable.c 25 Aug 2007 08:09:14 -0000
+@@ -84,8 +84,8 @@
+ static Node *hashnum (const Table *t, lua_Number n) {
+ unsigned int a[numints];
+ int i;
+- n += 1; /* normalize number (avoid -0) */
+- lua_assert(sizeof(a) <= sizeof(n));
++ if (luai_numeq(n, 0)) /* avoid problems with -0 */
++ return gnode(t, 0);
+ memcpy(a, &n, sizeof(a));
+ for (i = 1; i < numints; i++) a[0] += a[i];
+ return hashmod(t, a[0]);
+Index: src/lvm.c
+--- src/lvm.c 15 Jul 2007 17:56:11 -0000 1.4
++++ src/lvm.c 25 Aug 2007 08:09:14 -0000
+@@ -61,11 +61,9 @@
+ lu_byte mask = L->hookmask;
+ const Instruction *oldpc = L->savedpc;
+ L->savedpc = pc;
+- if (mask > LUA_MASKLINE) { /* instruction-hook set? */
+- if (L->hookcount == 0) {
+- resethookcount(L);
+- luaD_callhook(L, LUA_HOOKCOUNT, -1);
+- }
++ if ((mask & LUA_MASKCOUNT) && L->hookcount == 0) {
++ resethookcount(L);
++ luaD_callhook(L, LUA_HOOKCOUNT, -1);
+ }
+ if (mask & LUA_MASKLINE) {
+ Proto *p = ci_func(L->ci)->l.p;
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/lua/lua.spec
============================================================================
$ cvs diff -u -r1.21 -r1.22 lua.spec
--- openpkg-src/lua/lua.spec 2 Apr 2007 15:11:23 -0000 1.21
+++ openpkg-src/lua/lua.spec 25 Aug 2007 08:12:27 -0000 1.22
@@ -33,7 +33,7 @@
Group: Language
License: MIT
Version: 5.1.2
-Release: 20070402
+Release: 20070825
# package options
%option with_readline no
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]