From 15682a6fd3c1eb166ac9e8910761f1d7d588be94 Mon Sep 17 00:00:00 2001 From: Yuval Lifshitz Date: Thu, 11 May 2023 21:59:32 +0300 Subject: [PATCH] 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) --- src/rgw/rgw_lua_utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_lua_utils.cc b/src/rgw/rgw_lua_utils.cc index 6af87d2c045a..143d77ae82d0 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"); } -- 2.47.3