All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] wsapi: fix Lua 5.3 compatibility
@ 2017-09-24 10:51 Arnout Vandecappelle
  0 siblings, 0 replies; only message in thread
From: Arnout Vandecappelle @ 2017-09-24 10:51 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=551449bfc91cd69366db2840f19c8b403fce50f8
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
[Arnout: use git-formatted patch]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 package/wsapi/0001-Lua-5.3-compatibility.patch | 41 ++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/package/wsapi/0001-Lua-5.3-compatibility.patch b/package/wsapi/0001-Lua-5.3-compatibility.patch
new file mode 100644
index 0000000..d55c818
--- /dev/null
+++ b/package/wsapi/0001-Lua-5.3-compatibility.patch
@@ -0,0 +1,41 @@
+From 2d824d2fce31b6a9cc60b2c3f215fbbf1d99c611 Mon Sep 17 00:00:00 2001
+From: mpeterv <mpeterval@gmail.com>
+Date: Thu, 3 Dec 2015 13:10:14 +0300
+Subject: [PATCH] Lua 5.3 compatibility
+
+Fetched from: https://github.com/keplerproject/wsapi/commit/2d824d2fce31b6a9cc60b2c3f215fbbf1d99c611
+
+Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
+---
+ src/wsapi/ringer.lua | 1 +
+ src/wsapi/util.lua   | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/wsapi/ringer.lua b/src/wsapi/ringer.lua
+index 58309f2..db7b68f 100644
+--- a/src/wsapi/ringer.lua
++++ b/src/wsapi/ringer.lua
+@@ -5,6 +5,7 @@ local rings = require "rings"
+ local _M = {}
+ 
+ local init = [==[
++  local loadstring = loadstring or load
+   local app_name, bootstrap_code, is_file = ...
+   if bootstrap_code then
+     local bootstrap, err
+diff --git a/src/wsapi/util.lua b/src/wsapi/util.lua
+index 24d3cfe..34e5816 100644
+--- a/src/wsapi/util.lua
++++ b/src/wsapi/util.lua
+@@ -174,7 +174,7 @@ function _M.make_env_post(pd, type, qs)
+ end
+ 
+ function _M.loadfile(filename, env)
+-  if _VERSION == "Lua 5.2" then
++  if _VERSION ~= "Lua 5.1" then
+     return loadfile(filename, "bt", env)
+   else
+     local f, err = loadfile(filename)
+-- 
+2.14.1
+

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-24 10:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-24 10:51 [Buildroot] [git commit] wsapi: fix Lua 5.3 compatibility Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.