[zypp-commit] r11946 - in /trunk/sat-solver: CMakeLists.txt tools/repo_rpmdb.c
Author: mlschroe
Date: Wed Dec 17 19:06:30 2008
New Revision: 11946
URL: http://svn.opensuse.org/viewcvs/zypp?rev=11946&view=rev
Log:
- fix fedora builds (bnc#444211)
(cmake needs to be called with -DFEDORA:=1)
Modified:
trunk/sat-solver/CMakeLists.txt
trunk/sat-solver/tools/repo_rpmdb.c
Modified: trunk/sat-solver/CMakeLists.txt
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/CMakeLists.txt?rev=11946&r1=11945&r2=11946&view=diff
==============================================================================
--- trunk/sat-solver/CMakeLists.txt (original)
+++ trunk/sat-solver/CMakeLists.txt Wed Dec 17 19:06:30 2008
@@ -35,7 +35,13 @@
FIND_PACKAGE(Check REQUIRED)
FIND_PACKAGE(ZLIB REQUIRED)
+IF ( FEDORA )
+MESSAGE(STATUS "Building for Fedora")
+ADD_DEFINITIONS( -DFEDORA )
+FIND_LIBRARY(RPMDB_LIBRARY NAMES rpm)
+ELSE ( FEDORA )
FIND_LIBRARY(RPMDB_LIBRARY NAMES rpmdb)
+ENDIF ( FEDORA)
SET( PACKAGE "satsolver" )
SET( VERSION "${LIBSATSOLVER_MAJOR}.${LIBSATSOLVER_MINOR}.${LIBSATSOLVER_PATCH}" )
Modified: trunk/sat-solver/tools/repo_rpmdb.c
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/repo_rpmdb.c?rev=11946&r1=11945&r2=11946&view=diff
==============================================================================
--- trunk/sat-solver/tools/repo_rpmdb.c (original)
+++ trunk/sat-solver/tools/repo_rpmdb.c Wed Dec 17 19:06:30 2008
@@ -22,7 +22,11 @@
#include
participants (1)
-
mlschroe@svn.opensuse.org