]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
makefile: remove dependency on libedit 7284/head
authorKefu Chai <kchai@redhat.com>
Tue, 19 Jan 2016 13:08:24 +0000 (21:08 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 19 Jan 2016 16:35:50 +0000 (00:35 +0800)
turns out we are not using it anymore

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt
ceph.spec.in
cmake/modules/Findlibedit.cmake [deleted file]
configure.ac
debian/control
src/CMakeLists.txt
src/client/Makefile.am

index 7b267745c66611249682ccfdcb5cab1fa216e904..1ea2519a03f956e570fb2121d43e1c7f7dfdfd7b 100644 (file)
@@ -196,8 +196,6 @@ find_package(libuuid REQUIRED)
 
 find_package(libcurl REQUIRED)
 
-find_package(libedit REQUIRED)
-
 option(USE_CRYPTOPP "Cryptopp is ON" ON)
 find_package(cryptopp)
 if(CRYPTOPP_FOUND)
index b2175bd643f6768024481b6f8438452bfcb4a6e5..68091dc2ed2cc8f0a0ead2089d2f8089ddfe3978 100644 (file)
@@ -117,7 +117,6 @@ BuildRequires:      hdparm
 BuildRequires: leveldb-devel > 1.2
 BuildRequires: libaio-devel
 BuildRequires: libcurl-devel
-BuildRequires: libedit-devel
 BuildRequires: libxml2-devel
 BuildRequires: libblkid-devel >= 2.17
 BuildRequires: libudev-devel
diff --git a/cmake/modules/Findlibedit.cmake b/cmake/modules/Findlibedit.cmake
deleted file mode 100644 (file)
index 0fab569..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-# Try to find libedit
-# Once done, this will define
-#
-# LIBEDIT_FOUND - system has Profiler
-# LIBEDIT_INCLUDE_DIR - the Profiler include directories
-# LIBEDIT_LIBRARIES - link these to use Profiler
-
-if(LIBEDIT_INCLUDE_DIR AND LIBEDIT_LIBRARIES)
-       set(LIBEDIT_FIND_QUIETLY TRUE)
-endif(LIBEDIT_INCLUDE_DIR AND LIBEDIT_LIBRARIES)
-
-INCLUDE(CheckCXXSymbolExists)
-
-# include dir
-
-find_path(LIBEDIT_INCLUDE_DIR histedit.h NO_DEFAULT_PATH PATHS
-  /usr/include
-  /opt/local/include
-  /usr/local/include
-)
-
-
-# finally the library itself
-find_library(LIBLIBEDIT NAMES edit)
-set(LIBEDIT_LIBRARIES ${LIBLIBEDIT})
-
-# handle the QUIETLY and REQUIRED arguments and set LIBEDIT_FOUND to TRUE if
-# all listed variables are TRUE
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(libedit DEFAULT_MSG LIBEDIT_LIBRARIES LIBEDIT_INCLUDE_DIR)
-
-mark_as_advanced(LIBEDIT_LIBRARIES LIBEDIT_INCLUDE_DIR)
index b79f6ff3ce7fdf2fd2ff24e72e3261e40891c3cf..330424d6015ee0fb09c11ff158c2b56d6946bc22 100644 (file)
@@ -716,16 +716,6 @@ if test "x$enable_xio" = x"yes"; then
    AC_SUBST(XIO_LIBS)
 fi
 
-#
-# FreeBSD has it in base.
-#
-if test x"$freebsd" != x"yes" -a x"$with_radosgw" = x"yes"; then
-PKG_CHECK_MODULES([LIBEDIT], [libedit >= 2.11],
-                [], AC_MSG_FAILURE([No usable version of libedit found.]))
-else
-       LIBEDIT_LIBS="-ledit"
-fi
-
 #libatomic-ops? You want it!
 AC_ARG_WITH([libatomic-ops],
             [AS_HELP_STRING([--without-libatomic-ops],
index e31a1d542af4d6822a79f1beb9ee3ab2ba01be6a..de628453a10ddc96be84a44a9cbfaa3d555b74c5 100644 (file)
@@ -31,7 +31,6 @@ Build-Depends: autoconf,
               libboost-regex-dev,
               libboost-random-dev,
                libcurl4-gnutls-dev,
-               libedit-dev,
                libexpat1-dev,
                libfcgi-dev,
                libfuse-dev,
index 60a299ccf646869bd44f5bbcde0793742565dcb9..0b9a8e497282c9fc2ed42d9d73ea508107fbe181 100644 (file)
@@ -144,8 +144,6 @@ endif()
 set(heap_profiler_files ${TCMALLOC_srcs})
 add_library(heap_profiler_objs OBJECT ${heap_profiler_files})
 
-set(LIBEDIT_LIBS edit)
-
 # Common infrastructure
 configure_file(
   ${CMAKE_SOURCE_DIR}/src/ceph_ver.h.in.cmake
@@ -813,10 +811,6 @@ add_executable(ceph-kvstore-tool tools/ceph_kvstore_tool.cc)
 target_link_libraries(ceph-kvstore-tool os global ${UNITTEST_CXX_FLAGS})
 install(TARGETS ceph-kvstore-tool DESTINATION bin)
 
-#set(ceph_srcs tools/ceph.cc tools/common.cc)
-#add_executable(ceph ${ceph_srcs})
-#target_link_libraries(ceph global ${LIBEDIT_LIBS})
-
 set(ceph_conf_srcs
   tools/ceph_conf.cc)
 add_executable(ceph-conf ${ceph_conf_srcs})
@@ -901,7 +895,7 @@ if(WITH_LIBCEPHFS)
     client/Trace.cc
     client/posix_acl.cc)
   add_library(client ${libclient_srcs})
-  target_link_libraries(client osdc mds ${LIBEDIT_LIBS})
+  target_link_libraries(client osdc mds)
   set(libcephfs_srcs libcephfs.cc)
   add_library(cephfs SHARED ${libcephfs_srcs})
 if(${ENABLE_SHARED})
index 31ca60c935dbb3360aa863900261a0fe1aeda177..fa0dc80f4cf8b26b38bf6e87cd0c2bf74b1013e2 100644 (file)
@@ -8,7 +8,7 @@ libclient_la_SOURCES = \
        client/MetaSession.cc \
        client/Trace.cc \
        client/posix_acl.cc
-libclient_la_LIBADD = $(LIBOSDC) $(LIBEDIT_LIBS)
+libclient_la_LIBADD = $(LIBOSDC)
 noinst_LTLIBRARIES += libclient.la
 
 noinst_HEADERS += \