summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sat-solver/sat-solver/cmake.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/sat-solver/sat-solver/cmake.patch')
-rw-r--r--meta/recipes-extended/sat-solver/sat-solver/cmake.patch58
1 files changed, 7 insertions, 51 deletions
diff --git a/meta/recipes-extended/sat-solver/sat-solver/cmake.patch b/meta/recipes-extended/sat-solver/sat-solver/cmake.patch
index 854bd40d75..52319f0e4f 100644
--- a/meta/recipes-extended/sat-solver/sat-solver/cmake.patch
+++ b/meta/recipes-extended/sat-solver/sat-solver/cmake.patch
@@ -1,59 +1,15 @@
1check rpm 1Enable debugging for all builds
2not building docs (need oxygen) 2not building docs (need oxygen)
3 3
48/19/2010 - created by Qing He <qing.he@intel.com> 48/19/2010 - created by Qing He <qing.he@intel.com>
51/24/2011 - Disable Fedora/Debian checking/settings by Mark Hatle <mark.hatle@windriver.com> 51/24/2011 - Disable Fedora/Debian checking/settings by Mark Hatle <mark.hatle@windriver.com>
63/15/2011 - Updated to newer version of sat-solver by Mark Hatle <mark.hatle@windriver.com> 63/15/2011 - Updated to newer version of sat-solver by Mark Hatle <mark.hatle@windriver.com>
73/16/2011 - Split original patch and simplify by Mark Hatle <mark.hatle@windriver.com>
7 8
8diff -ur git.orig/CMakeLists.txt git/CMakeLists.txt 9diff -ur git.orig2/CMakeLists.txt git/CMakeLists.txt
9--- git.orig/CMakeLists.txt 2011-03-15 17:14:22.000000000 -0500 10--- git.orig2/CMakeLists.txt 2011-03-16 16:29:43.532032285 -0500
10+++ git/CMakeLists.txt 2011-03-15 17:20:09.648880770 -0500 11+++ git/CMakeLists.txt 2011-03-16 16:32:59.982034501 -0500
11@@ -35,22 +35,15 @@ 12@@ -177,7 +177,7 @@
12 FIND_PACKAGE(Check REQUIRED)
13 FIND_PACKAGE(ZLIB REQUIRED)
14
15-IF ( FEDORA )
16-MESSAGE(STATUS "Building for Fedora")
17-ADD_DEFINITIONS( -DFEDORA )
18-ENDIF ( FEDORA)
19-
20-IF ( DEBIAN )
21-MESSAGE(STATUS "Building for Debian")
22-ADD_DEFINITIONS( -DDEBIAN -DDEBIAN_SEMANTICS)
23-ENDIF ( DEBIAN )
24-
25 IF ( MULTI_SEMANTICS )
26 MESSAGE(STATUS "Enabling multi dist support")
27 ADD_DEFINITIONS( -DMULTI_SEMANTICS)
28 ENDIF ( MULTI_SEMANTICS )
29
30-IF ( NOT DEBIAN )
31+FIND_PACKAGE(PkgConfig REQUIRED)
32+PKG_CHECK_MODULES(RPM REQUIRED rpm)
33+INCLUDE_DIRECTORIES( ${RPM_INCLUDE_DIRS} )
34+
35 FIND_LIBRARY(RPMDB_LIBRARY NAMES rpmdb)
36 IF ( NOT RPMDB_LIBRARY )
37 FIND_LIBRARY(RPMDB_LIBRARY NAMES rpm)
38@@ -59,13 +52,14 @@
39 IF ( RPMIO_LIBRARY )
40 SET( RPMDB_LIBRARY ${RPMIO_LIBRARY} ${RPMDB_LIBRARY} )
41 ENDIF ( RPMIO_LIBRARY )
42-IF ( FEDORA )
43+FIND_LIBRARY(RPMMISC_LIBRARY NAMES rpmmisc)
44+IF ( RPMMISC_LIBRARY )
45+SET( RPMDB_LIBRARY ${RPMMISC_LIBRARY} ${RPMDB_LIBRARY} )
46+ENDIF ( RPMMISC_LIBRARY )
47 FIND_LIBRARY(DB_LIBRARY NAMES db)
48 IF ( DB_LIBRARY )
49 SET( RPMDB_LIBRARY ${DB_LIBRARY} ${RPMDB_LIBRARY} )
50 ENDIF ( DB_LIBRARY )
51-ENDIF ( FEDORA )
52-ENDIF ( NOT DEBIAN )
53
54 INCLUDE ( CheckFunctionExists )
55 INCLUDE ( TestBigEndian )
56@@ -164,7 +158,7 @@
57 13
58 MESSAGE(STATUS "Looking modules in ${CMAKE_MODULE_PATH}") 14 MESSAGE(STATUS "Looking modules in ${CMAKE_MODULE_PATH}")
59 15
@@ -62,7 +18,7 @@ diff -ur git.orig/CMakeLists.txt git/CMakeLists.txt
62 set ( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -g -O3" ) 18 set ( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -g -O3" )
63 set ( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g3 -O0" ) 19 set ( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g3 -O0" )
64 20
65@@ -173,7 +167,7 @@ 21@@ -186,7 +186,7 @@
66 ADD_SUBDIRECTORY(tools) 22 ADD_SUBDIRECTORY(tools)
67 ADD_SUBDIRECTORY(tests) 23 ADD_SUBDIRECTORY(tests)
68 ADD_SUBDIRECTORY(examples) 24 ADD_SUBDIRECTORY(examples)