Gentoo Archives: gentoo-commits

From: "Matti Bickel (mabi)" <mabi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/lua/files: lua-5.1.4-deprecated.patch lua-5.1.4-test.patch
Date: Wed, 01 Oct 2008 15:31:43
Message-Id: E1Kl3fv-0008OB-QS@stork.gentoo.org
1 mabi 08/10/01 15:31:39
2
3 Added: lua-5.1.4-deprecated.patch lua-5.1.4-test.patch
4 Log:
5 add missing patch files (bug #239134)
6 (Portage version: 2.2_rc11/cvs/Linux 2.6.23-gentoo-r3-20080120 ppc)
7
8 Revision Changes Path
9 1.1 dev-lang/lua/files/lua-5.1.4-deprecated.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/files/lua-5.1.4-deprecated.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/files/lua-5.1.4-deprecated.patch?rev=1.1&content-type=text/plain
13
14 Index: lua-5.1.4-deprecated.patch
15 ===================================================================
16 diff -rdu lua-5.1.3.orig/src/luaconf.h lua-5.1.3/src/luaconf.h
17 --- lua-5.1.3.orig/src/luaconf.h 2008-02-12 17:00:03.000000000 +0000
18 +++ lua-5.1.3/src/luaconf.h 2008-02-12 17:07:55.000000000 +0000
19 @@ -340,14 +340,14 @@
20 ** CHANGE it to undefined as soon as your programs use only '...' to
21 ** access vararg parameters (instead of the old 'arg' table).
22 */
23 -#define LUA_COMPAT_VARARG
24 +#undef LUA_COMPAT_VARARG
25
26 /*
27 @@ LUA_COMPAT_MOD controls compatibility with old math.mod function.
28 ** CHANGE it to undefined as soon as your programs use 'math.fmod' or
29 ** the new '%' operator instead of 'math.mod'.
30 */
31 -#define LUA_COMPAT_MOD
32 +#undef LUA_COMPAT_MOD
33
34 /*
35 @@ LUA_COMPAT_LSTR controls compatibility with old long string nesting
36 @@ -355,14 +355,14 @@
37 ** CHANGE it to 2 if you want the old behaviour, or undefine it to turn
38 ** off the advisory error when nesting [[...]].
39 */
40 -#define LUA_COMPAT_LSTR 1
41 +#undef LUA_COMPAT_LSTR
42
43 /*
44 @@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name.
45 ** CHANGE it to undefined as soon as you rename 'string.gfind' to
46 ** 'string.gmatch'.
47 */
48 -#define LUA_COMPAT_GFIND
49 +#undef LUA_COMPAT_GFIND
50
51 /*
52 @@ LUA_COMPAT_OPENLIB controls compatibility with old 'luaL_openlib'
53 @@ -370,7 +370,7 @@
54 ** CHANGE it to undefined as soon as you replace to 'luaL_register'
55 ** your uses of 'luaL_openlib'
56 */
57 -#define LUA_COMPAT_OPENLIB
58 +#undef LUA_COMPAT_OPENLIB
59
60
61
62
63
64
65 1.1 dev-lang/lua/files/lua-5.1.4-test.patch
66
67 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/files/lua-5.1.4-test.patch?rev=1.1&view=markup
68 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/files/lua-5.1.4-test.patch?rev=1.1&content-type=text/plain
69
70 Index: lua-5.1.4-test.patch
71 ===================================================================
72 --- test/sieve.lua~ 2002-10-31 03:52:58.000000000 +0100
73 +++ test/sieve.lua 2008-02-20 17:44:22.468281121 +0100
74 @@ -14,7 +14,7 @@
75 while 1 do
76 local n = g()
77 if n == nil then return end
78 - if math.mod(n, p) ~= 0 then coroutine.yield(n) end
79 + if math.fmod(n, p) ~= 0 then coroutine.yield(n) end
80 end
81 end)
82 end