From 66cc4dfe45b4691a83b1b234bb626b60c16fd020 Mon Sep 17 00:00:00 2001 From: Hisham Date: Fri, 28 Oct 2016 11:53:07 -0200 Subject: Prefer versioned Lua interpreter if it exists. This avoids in practice a problem that occurs in this scenario: 1. user installs Lua 5.1, gets lua and lua5.1 binaries 2. user installs LuaRocks, it detects and uses lua 3. user installs Lua 5.2, gets lua and lua5.2 binaries (lua is replaced) 4. user installs LuaRocks with --lua-version=5.2, it detects and uses lua 5. luarocks-5.1 now uses lua, which is Lua 5.2, rockspecs get passed the wrong value of $(LUA) --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index ae2696d2..ab629f98 100755 --- a/configure +++ b/configure @@ -292,7 +292,7 @@ then else suffixes="5.3 53 -5.3 -53 5.2 52 -5.2 -52 5.1 51 -5.1 -51" fi - for suffix in "" `echo $suffixes` + for suffix in `echo $suffixes` "" do search_interpreter "$suffix" && { lua_interp_found=yes -- cgit v1.2.3-55-g6feb