Date: Thursday, March 30, 2023 @ 17:20:00
  Author: arojas
Revision: 1431299

upgpkg: mame 0.253-1: Fix lua linking

Modified:
  mame/trunk/PKGBUILD
  mame/trunk/lua-no-cpp.patch

------------------+
 PKGBUILD         |    2 +-
 lua-no-cpp.patch |   31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-30 17:04:44 UTC (rev 1431298)
+++ PKGBUILD    2023-03-30 17:20:00 UTC (rev 1431299)
@@ -19,7 +19,7 @@
             'ee1c59bafc5e5441e99fa4c58108a3e18048e60672f34de865c8a5a976094dba'
             '0e5e93f84673c2d17a1bf7a6b256cfa54ef89a086a828df19bc054c12776d821'
             '17c442c933d764175e4ce1de50a80c0c2ddd5d733caf09c3cd5e6ba697ac43f4'
-            '1bca876381c711ddd08e571493e1e7894b8e56fbb8b5cc65fd484131d997f3e3')
+            '7febeab1d8a26079ae80b53118f1ee6ceb647e8ce3e3a1e95757d0f62133c728')
 options=(!debug !lto) # debug build fails
 
 prepare() {

Modified: lua-no-cpp.patch
===================================================================
--- lua-no-cpp.patch    2023-03-30 17:04:44 UTC (rev 1431298)
+++ lua-no-cpp.patch    2023-03-30 17:20:00 UTC (rev 1431299)
@@ -18,3 +18,34 @@
        }
  
        configuration { "gmake or ninja" }
+diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp
+index ebf2f701e15..9adfd413321 100644
+--- a/src/frontend/mame/luaengine.cpp
++++ b/src/frontend/mame/luaengine.cpp
+@@ -41,11 +41,12 @@
+ //  LUA ENGINE
+ //**************************************************************************
+ 
++extern "C" {
+ int luaopen_zlib(lua_State *const L);
+-extern "C" int luaopen_lfs(lua_State *L);
++int luaopen_lfs(lua_State *L);
+ int luaopen_linenoise(lua_State *L);
+ int luaopen_lsqlite3(lua_State *L);
+-
++}
+ 
+ template <typename T>
+ struct lua_engine::devenum
+diff --git a/src/frontend/mame/luaengine.h b/src/frontend/mame/luaengine.h
+index 0767a349ae2..c848952db14 100644
+--- a/src/frontend/mame/luaengine.h
++++ b/src/frontend/mame/luaengine.h
+@@ -20,7 +20,6 @@
+ #include <tuple>
+ #include <vector>
+ 
+-#define SOL_USING_CXX_LUA 1
+ #ifdef MAME_DEBUG
+ #define SOL_ALL_SAFETIES_ON 1
+ #else

Reply via email to