Adapt to satsolver helix stuff being moved to libsatsolverext.
authorMichael Andres <ma@suse.de>
Mon, 22 Jun 2009 14:00:52 +0000 (16:00 +0200)
committerMichael Andres <ma@suse.de>
Mon, 22 Jun 2009 14:00:52 +0000 (16:00 +0200)
cmake/modules/FindSatsolver.cmake
libzypp.spec.cmake
zypp/CMakeLists.txt
zypp/sat/detail/PoolImpl.cc
zypp/sat/detail/PoolImpl.h

index 890b760..846fdd0 100644 (file)
@@ -20,8 +20,15 @@ FIND_LIBRARY(SATSOLVER_LIBRARY NAMES satsolver
        /usr/lib
 )
 
+FIND_LIBRARY(SATSOLVER_EXT_LIBRARY NAMES satsolverext
+       PATHS
+       ${CMAKE_INSTALL_PREFIX}/lib
+       /usr/local/lib
+       /usr/lib
+)
+
 if(SATSOLVER_INCLUDE_DIR AND SATSOLVER_LIBRARY)
-   MESSAGE( STATUS "satsolver found: includes in ${SATSOLVER_INCLUDE_DIR}, library in ${SATSOLVER_LIBRARY}")
+   MESSAGE( STATUS "satsolver found: includes in ${SATSOLVER_INCLUDE_DIR}, library in ${SATSOLVER_LIBRARY} ${SATSOLVER_EXT_LIBRARY} ")
    set(SATSOLVER_FOUND TRUE)
 else(SATSOLVER_INCLUDE_DIR AND SATSOLVER_LIBRARY)
    MESSAGE( STATUS "** satsolver not found")
index 2ea1858..de9dfb7 100644 (file)
@@ -25,7 +25,7 @@ Provides:       yast2-packagemanager
 Obsoletes:      yast2-packagemanager
 Recommends:     logrotate
 BuildRequires:  cmake
-BuildRequires:  libsatsolver-devel >= 0.14.0 openssl-devel
+BuildRequires:  libsatsolver-devel >= 0.14.2 openssl-devel
 BuildRequires:  boost-devel curl-devel dejagnu doxygen gcc-c++ gettext-devel graphviz hal-devel libxml2-devel
 
 # required for testsuite, webrick
index 96ad6ba..f14a629 100644 (file)
@@ -879,7 +879,7 @@ TARGET_LINK_LIBRARIES(zypp ${HAL_STORAGE_LIBRARY} )
 TARGET_LINK_LIBRARIES(zypp ${CURL_LIBRARY} )
 TARGET_LINK_LIBRARIES(zypp ${LIBXML_LIBRARY} )
 TARGET_LINK_LIBRARIES(zypp ${ZLIB_LIBRARY} )
-TARGET_LINK_LIBRARIES(zypp ${SATSOLVER_LIBRARY} ${EXPAT_LIBRARY})
+TARGET_LINK_LIBRARIES(zypp ${SATSOLVER_LIBRARY} ${SATSOLVER_EXT_LIBRARY} ${EXPAT_LIBRARY})
 TARGET_LINK_LIBRARIES(zypp ${OPENSSL_LIBRARIES} )
 TARGET_LINK_LIBRARIES(zypp ${CRYPTO_LIBRARIES} )
 TARGET_LINK_LIBRARIES(zypp ${SIGNALS_LIBRARY} )
index bddf9f8..f35bee4 100644 (file)
 
 #include "zypp/target/modalias/Modalias.h"
 
+extern "C"
+{
+// Workaround satsolver project not providing a common include
+// directory. (the -devel package does, but the git repo doesn't).
+// #include <satsolver/repo_helix.h>
+void repo_add_helix( ::Repo *repo, FILE *fp, int flags );
+}
+
 using std::endl;
 
 #undef  ZYPP_BASE_LOGGER_LOGGROUP
index da83ecd..003cc35 100644 (file)
@@ -18,7 +18,6 @@ extern "C"
 #include <satsolver/solvable.h>
 #include <satsolver/poolarch.h>
 #include <satsolver/repo_solv.h>
-#include <satsolver/repo_helix.h>
 }
 #include <iosfwd>