From 58b406b5673f5f9a4f470e1d9f284858d1781097 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Mon, 17 Jan 2011 16:50:21 +0100 Subject: [PATCH] Run with own LuaSec. --- prosody | 3 +++ util/dependencies.lua | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/prosody b/prosody index 7c819214..c86eea42 100755 --- a/prosody +++ b/prosody @@ -16,6 +16,9 @@ CFG_CONFIGDIR=os.getenv("PROSODY_CFGDIR"); CFG_PLUGINDIR=os.getenv("PROSODY_PLUGINDIR"); CFG_DATADIR=os.getenv("PROSODY_DATADIR"); +package.path = "/Users/tfar/share/lua/5.1/?.lua;"..package.path; +package.cpath = "/Users/tfar/lib/lua/5.1/?.so;"..package.cpath; + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Tell Lua where to find our libraries diff --git a/util/dependencies.lua b/util/dependencies.lua index 9371521c..9258be88 100644 --- a/util/dependencies.lua +++ b/util/dependencies.lua @@ -11,9 +11,9 @@ module("dependencies", package.seeall) function softreq(...) local ok, lib = pcall(require, ...); if ok then return lib; else return nil, lib; end end -- Required to be able to find packages installed with luarocks -if not softreq "luarocks.loader" then -- LuaRocks 2.x - softreq "luarocks.require"; -- LuaRocks <1.x -end +--if not softreq "luarocks.loader" then -- LuaRocks 2.x +-- softreq "luarocks.require"; -- LuaRocks <1.x +--end function missingdep(name, sources, msg) print(""); -- 2.30.2