[btanks] lua 5.2

Tom Callaway spot at fedoraproject.org
Mon May 13 14:52:01 UTC 2013


commit a5c79dd29d07bdd784a2378c78fb470a2889adbc
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Mon May 13 10:51:35 2013 -0400

    lua 5.2

 btanks-0.9.8083-lua-5.2.patch |   23 +++++++++++++++++++++++
 btanks.spec                   |    7 ++++++-
 2 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/btanks-0.9.8083-lua-5.2.patch b/btanks-0.9.8083-lua-5.2.patch
new file mode 100644
index 0000000..59a86e6
--- /dev/null
+++ b/btanks-0.9.8083-lua-5.2.patch
@@ -0,0 +1,23 @@
+diff -up btanks-0.9.8083/engine/luaxx/state.cpp.lua-52 btanks-0.9.8083/engine/luaxx/state.cpp
+--- btanks-0.9.8083/engine/luaxx/state.cpp.lua-52	2008-06-08 05:02:39.000000000 -0400
++++ btanks-0.9.8083/engine/luaxx/state.cpp	2013-05-13 10:43:52.493334782 -0400
+@@ -5,6 +5,10 @@
+ #include <assert.h>
+ #include "mrt/chunk.h"
+ 
++#ifndef lua_open
++#define lua_open()     luaL_newstate()
++#endif
++
+ using namespace luaxx;
+ /*
+ static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) {
+@@ -59,7 +63,7 @@ static const char * chunk_reader(lua_Sta
+ void State::load(const std::string &fname, const mrt::Chunk &data) {
+ 	//throw_ex(("implement me[%s]", fname.c_str()));
+ 	reader_state x(data);
+-	int err = lua_load(state, chunk_reader, &x, fname.c_str());
++	int err = lua_load(state, chunk_reader, &x, fname.c_str(), NULL);
+ 	check_error(state, err);
+ }
+ 
diff --git a/btanks.spec b/btanks.spec
index 8252085..b62fc58 100644
--- a/btanks.spec
+++ b/btanks.spec
@@ -1,6 +1,6 @@
 Name:           btanks
 Version:        0.9.8083
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Funny battle on your desk
 Summary(ru):    Веселая маленькая война на столе
 
@@ -22,6 +22,7 @@ Patch4:         %{name}-gcc.patch
 Patch5:         %{name}-dso.patch
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
 Patch6:         btanks-gcc47.patch
+Patch7:		btanks-0.9.8083-lua-5.2.patch
 Source1:        %{name}.desktop
 Source2:        bted.desktop
 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
@@ -75,6 +76,7 @@ running %{name}.
 %patch4 -b .gcc
 %patch5 -b .dso
 %patch6 -b .gcc47
+%patch7 -p1 -b .lua-52
 dos2unix -k *.txt ChangeLog *.url LICENSE LICENSE.EXCEPTION
 
 iconv -f latin1 -t utf-8 LICENSE.EXCEPTION > LICENSE.EXCEPTION.new
@@ -170,6 +172,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Mon May 13 2013 Tom Callaway <spot at fedoraproject.org> - 0.9.8083-6
+- lua 5.2
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.8083-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list