Skip to content

Commit

Permalink
rpm/deb/cmake: remove the lua submodule
Browse files Browse the repository at this point in the history
instead use the official lua-dev/el packages

Signed-off-by: Yuval Lifshitz <[email protected]>
  • Loading branch information
yuvalif committed Nov 4, 2020
1 parent 799f65e commit 80223d8
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 14 deletions.
5 changes: 0 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@
[submodule "src/isa-l"]
path = src/isa-l
url = https://github.com/ceph/isa-l
[submodule "src/lua"]
path = src/lua
url = https://github.com/ceph/lua.git
branch = lua-5.3-ceph
ignore = dirty
[submodule "src/zstd"]
path = src/zstd
url = https://github.com/facebook/zstd
Expand Down
1 change: 1 addition & 0 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ BuildRequires: xfsprogs
BuildRequires: xfsprogs-devel
BuildRequires: xmlstarlet
BuildRequires: nasm
BuildRequires: lua-devel
%if 0%{with amqp_endpoint}
BuildRequires: librabbitmq-devel
%endif
Expand Down
1 change: 1 addition & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Build-Depends: cmake (>= 3.10.2),
libldap2-dev,
libleveldb-dev,
liblttng-ust-dev,
liblua5.3-dev,
liblz4-dev (>= 0.0~r131),
libncurses-dev,
libnss3-dev,
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ endif(${WITH_LTTNG})

add_subdirectory(global)

add_subdirectory(lua)
find_package(Lua REQUIRED)

# rados object classes
add_subdirectory(cls)
Expand Down
3 changes: 2 additions & 1 deletion src/cls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,9 @@ set_target_properties(cls_lua PROPERTIES
CXX_VISIBILITY_PRESET hidden)
install(TARGETS cls_lua DESTINATION ${cls_dir})
target_link_libraries(cls_lua
liblua
${LUA_LIBRARIES}
json_spirit)
target_include_directories(cls_lua PRIVATE "${LUA_INCLUDE_DIR}")

set(cls_lua_client_srcs
lua/cls_lua_client.cc)
Expand Down
2 changes: 1 addition & 1 deletion src/cls/lua/lua_bufferlist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static const struct luaL_Reg bllib_f[] = {
{NULL, NULL}
};

LUALIB_API int luaopen_bufferlist(lua_State *L)
int luaopen_bufferlist(lua_State *L)
{
/* Setup bufferlist user-data type */
luaL_newmetatable(L, LUA_BUFFERLIST);
Expand Down
1 change: 0 additions & 1 deletion src/lua
Submodule lua deleted from 1fce39
3 changes: 2 additions & 1 deletion src/mds/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ set(mds_srcs
${CMAKE_SOURCE_DIR}/src/mgr/MDSPerfMetricTypes.cc)
add_library(mds STATIC ${mds_srcs})
target_link_libraries(mds PRIVATE
heap_profiler cpu_profiler osdc liblua)
heap_profiler cpu_profiler osdc ${LUA_LIBRARIES})
target_include_directories(mds PRIVATE "${LUA_INCLUDE_DIR}")
5 changes: 2 additions & 3 deletions src/rgw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ target_include_directories(rgw_common SYSTEM PUBLIC "services")
target_include_directories(rgw_common PUBLIC "${CMAKE_SOURCE_DIR}/src/dmclock/support/src")
target_include_directories(rgw_common PUBLIC "${CMAKE_SOURCE_DIR}/src/fmt/include")
target_include_directories(rgw_common PUBLIC "${CMAKE_SOURCE_DIR}/src/rgw")
target_include_directories(rgw_common PRIVATE "${CMAKE_SOURCE_DIR}/src/lua/src")
target_include_directories(rgw_common PRIVATE "${CMAKE_BINARY_DIR}/src/lua")
target_include_directories(rgw_common PRIVATE "${LUA_INCLUDE_DIR}")


target_include_directories(rgw_common PRIVATE
Expand Down Expand Up @@ -256,7 +255,7 @@ if(WITH_CURL_OPENSSL)
target_link_libraries(rgw_a PRIVATE OpenSSL::Crypto)
endif()

target_link_libraries(rgw_a PRIVATE liblua)
target_link_libraries(rgw_a PRIVATE ${LUA_LIBRARIES})
target_link_libraries(rgw_a PUBLIC spawn)

set(rgw_libs rgw_a)
Expand Down
3 changes: 2 additions & 1 deletion src/test/cls_lua/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ add_executable(ceph_test_cls_lua
)
target_link_libraries(ceph_test_cls_lua
cls_lua_client
liblua
${LUA_LIBRARIES}
librados
global
${UNITTEST_LIBS}
${EXTRALIBS}
${CMAKE_DL_LIBS}
radostest-cxx)
target_include_directories(ceph_test_cls_lua PRIVATE "${LUA_INCLUDE_DIR}")
install(TARGETS
ceph_test_cls_lua
DESTINATION ${CMAKE_INSTALL_BINDIR})

0 comments on commit 80223d8

Please sign in to comment.