Skip to contentSkip to conversation

package/lua-msgpack-native: fix build with moonjit

PATCH New Francois Perrad 2 participants 2 messages Dec 10, 2019 – Dec 18, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/lua-msgpack-native: fix build with moonjit

compatibility with Lua 5.0 was removed in LuaJIT/moonjit 2.1.x (Lua 5.1.x and LuaJIT 2.0.x have this compatibility)

see http://autobuild.buildroot.org/results/4e4/4e428df01def186cb034a1774f6c00e2e7c9468c/build-end.log

---
 package/lua-msgpack-native/lua-msgpack-native.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/lua-msgpack-native/lua-msgpack-native.mk +1 -1
index acd3a0e1c..b3ca7aef4 100644
@@ -11,7 +11,7 @@ LUA_MSGPACK_NATIVE_LICENSE = Apache-2.0
 LUA_MSGPACK_NATIVE_LICENSE_FILES = LICENSE.txt
 
 define LUA_MSGPACK_NATIVE_BUILD_CMDS
-	$(TARGET_CC) $(TARGET_CFLAGS) -fPIC -shared -o $(@D)/msgpack.so $(@D)/mp.c
+	$(TARGET_CC) $(TARGET_CFLAGS) -DluaL_reg=luaL_Reg -fPIC -shared -o $(@D)/msgpack.so $(@D)/mp.c
 endef
 
 define LUA_MSGPACK_NATIVE_INSTALL_TARGET_CMDS
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/lua-msgpack-native: fix build with moonjit

Quoted 4 lines · On Tue, 10 Dec 2019 18:40:04 +0100 Francois Perrad <[email protected]> wrote:

compatibility with Lua 5.0 was removed in LuaJIT/moonjit 2.1.x (Lua 5.1.x and LuaJIT 2.0.x have this compatibility)

see http://autobuild.buildroot.org/results/4e4/4e428df01def186cb034a1774f6c00e2e7c9468c/build-end.log

This should have been:

Fixes:

http://autobuild.buildroot.org/results/4e428df01def186cb034a1774f6c00e2e7c9468c/

Quoted 11 lines
---
 package/lua-msgpack-native/lua-msgpack-native.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/lua-msgpack-native/lua-msgpack-native.mk +0 -0
index acd3a0e1c..b3ca7aef4 100644

package/lua-msgpack-native/lua-msgpack-native.mk LUA_MSGPACK_NATIVE_LICENSE = Apache-2.0 · line 14

Quoted 5 lines
package/lua-msgpack-native/lua-msgpack-native.mk +1 -1
@@ -11,7 +11,7 @@ LUA_MSGPACK_NATIVE_LICENSE = Apache-2.0
 LUA_MSGPACK_NATIVE_LICENSE_FILES = LICENSE.txt
 
 define LUA_MSGPACK_NATIVE_BUILD_CMDS
-	$(TARGET_CC) $(TARGET_CFLAGS) -fPIC -shared -o $(@D)/msgpack.so $(@D)/mp.c
+	$(TARGET_CC) $(TARGET_CFLAGS) -DluaL_reg=luaL_Reg -fPIC -shared -o $(@D)/msgpack.so $(@D)/mp.c

I've added a comment in the .mk file to explain this, as it is a bit weird, and then I've applied to master.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com