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: testing/wip-mchangir-testing-20250205.144241-reef-debug~46^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0849f9d3eabfdb2a017121ef34afbc29b0952ba7;p=ceph-ci.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 3ffe2366211..accb3b3945d 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"); }