[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#728649: Acknowledgement (kde-runtime: FTBFS: cannot stat 'debian/tmp/usr/lib/kde4/kio_smb.so': No such file or directory)



Control: tags -1 + patch

If I apply the attached patch to FindSamba.cmake from kdelibs5-dev, then the 
cmake configuration can find the smbclient library again, and the package build 
succeeds.  (The latest uploads of samba4 moved the header to 
/usr/include/samba-4.0 so it wasn't being found.  The patch uses pkg-config to 
locate where to search for the smbclient.h header.)
-- 
Daniel Schepler
--- /usr/share/kde4/apps/cmake/modules/FindSamba.cmake.orig	2013-06-28 17:03:40.000000000 +0000
+++ /usr/share/kde4/apps/cmake/modules/FindSamba.cmake	2013-11-03 19:00:24.840100021 +0000
@@ -17,9 +17,20 @@
     set(Samba_FIND_QUIETLY TRUE)
 endif(SAMBA_INCLUDE_DIR AND SAMBA_LIBRARIES)
 
-find_path(SAMBA_INCLUDE_DIR NAMES libsmbclient.h )
+if(NOT WIN32)
+   find_package(PkgConfig)
+   pkg_check_modules(PC_SAMBA QUIET smbclient)
+endif(NOT WIN32)
 
-find_library(SAMBA_LIBRARIES NAMES smbclient )
+find_path(SAMBA_INCLUDE_DIR NAMES libsmbclient.h
+          HINTS
+          ${PC_SAMBA_INCLUDEDIR}
+          ${PC_SAMBA_INCLUDE_DIRS} )
+
+find_library(SAMBA_LIBRARIES NAMES smbclient
+             HINTS
+             ${PC_SAMBA_LIBDIR}
+             ${PC_SAMBA_LIBRARY_DIRS} )
 
 
 if(SAMBA_INCLUDE_DIR AND SAMBA_LIBRARIES)

Reply to: