From: Yuval Lifshitz Date: Thu, 11 May 2023 18:59:32 +0000 (+0300) Subject: rgw/lua: add lib64 to the package search path X-Git-Tag: v17.2.8~143^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=15682a6fd3c1eb166ac9e8910761f1d7d588be94;p=ceph.git rgw/lua: add lib64 to the package search path Fixes: https://tracker.ceph.com/issues/59733 Signed-off-by: Yuval Lifshitz (cherry picked from commit 001e0c004ebb871fe09e70ba66fddbc545705c34) --- diff --git a/src/rgw/rgw_lua_utils.cc b/src/rgw/rgw_lua_utils.cc index 6af87d2c045a8..143d77ae82d01 100644 --- a/src/rgw/rgw_lua_utils.cc +++ b/src/rgw/rgw_lua_utils.cc @@ -50,11 +50,11 @@ void set_package_path(lua_State* L, const std::string& install_dir) { if (!lua_istable(L, -1)) { return; } - const auto path = install_dir+"/share/lua/"+CEPH_LUA_VERSION+"/?.lua"; + const auto path = install_dir+"/share/lua/"+CEPH_LUA_VERSION+"/?.lua"; pushstring(L, path); lua_setfield(L, -2, "path"); - const auto cpath = install_dir+"/lib/lua/"+CEPH_LUA_VERSION+"/?.so"; + const auto cpath = install_dir+"/lib/lua/"+CEPH_LUA_VERSION+"/?.so;"+install_dir+"/lib64/lua/"+CEPH_LUA_VERSION+"/?.so"; pushstring(L, cpath); lua_setfield(L, -2, "cpath"); }