diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-01-15 22:05:29 -0600 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2011-01-30 12:09:52 -0800 |
commit | 2c32f494ccf1721d0888bde59be41ba05e221d33 (patch) | |
tree | 0c06ad95a0905a05eaaa7f82a3205f0c35a8d8c7 /meta/recipes-extended/sat-solver | |
parent | ffd12fc476d6061ba1e019a1e789cf1a2d3c82e6 (diff) | |
download | openembedded-core-2c32f494ccf1721d0888bde59be41ba05e221d33.tar.gz openembedded-core-2c32f494ccf1721d0888bde59be41ba05e221d33.tar.bz2 openembedded-core-2c32f494ccf1721d0888bde59be41ba05e221d33.tar.xz openembedded-core-2c32f494ccf1721d0888bde59be41ba05e221d33.zip |
sat-solver: upgrade to newer git version
This works with rpm 5.4.0
Signed-off-by: Qing He <qing.he@intel.com>
Update the CMAKE configuration file to find the proper DB library as used
by RPM5 within Poky.
Disable checking for Fedora and Debian, as this might lead to incorrect
results.
Merge the dso_linking_change_build_fix with the other cmake changes.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'meta/recipes-extended/sat-solver')
5 files changed, 70 insertions, 39 deletions
diff --git a/meta/recipes-extended/sat-solver/sat-solver/cmake.patch b/meta/recipes-extended/sat-solver/sat-solver/cmake.patch index a69d82590..d7b80b084 100644 --- a/meta/recipes-extended/sat-solver/sat-solver/cmake.patch +++ b/meta/recipes-extended/sat-solver/sat-solver/cmake.patch @@ -2,23 +2,56 @@ check rpm not building docs (need oxygen) 8/19/2010 - created by Qing He <qing.he@intel.com> +1/24/2011 - Disable Fedora/Debian checking/settings by Mark Hatle <mark.hatle@windriver.com> -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 24234db..69413e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -50,6 +50,10 @@ MESSAGE(STATUS "Enabling multi dist support") +@@ -35,22 +35,15 @@ + FIND_PACKAGE(Check REQUIRED) + FIND_PACKAGE(ZLIB REQUIRED) + +-IF ( FEDORA ) +-MESSAGE(STATUS "Building for Fedora") +-ADD_DEFINITIONS( -DFEDORA ) +-ENDIF ( FEDORA) +- +-IF ( DEBIAN ) +-MESSAGE(STATUS "Building for Debian") +-ADD_DEFINITIONS( -DDEBIAN -DDEBIAN_SEMANTICS) +-ENDIF ( DEBIAN ) +- + IF ( MULTI_SEMANTICS ) + MESSAGE(STATUS "Enabling multi dist support") ADD_DEFINITIONS( -DMULTI_SEMANTICS) ENDIF ( MULTI_SEMANTICS ) +-IF ( NOT DEBIAN ) +FIND_PACKAGE(PkgConfig REQUIRED) +PKG_CHECK_MODULES(RPM REQUIRED rpm) +INCLUDE_DIRECTORIES( ${RPM_INCLUDE_DIRS} ) + - IF ( NOT DEBIAN ) FIND_LIBRARY(RPMDB_LIBRARY NAMES rpmdb) IF ( NOT RPMDB_LIBRARY ) -@@ -159,22 +163,7 @@ ADD_SUBDIRECTORY(tools) + FIND_LIBRARY(RPMDB_LIBRARY NAMES rpm) +@@ -59,13 +52,14 @@ + IF ( RPMIO_LIBRARY ) + SET( RPMDB_LIBRARY ${RPMIO_LIBRARY} ${RPMDB_LIBRARY} ) + ENDIF ( RPMIO_LIBRARY ) +-IF ( FEDORA ) ++FIND_LIBRARY(RPMMISC_LIBRARY NAMES rpmmisc) ++IF ( RPMMISC_LIBRARY ) ++SET( RPMDB_LIBRARY ${RPMMISC_LIBRARY} ${RPMDB_LIBRARY} ) ++ENDIF ( RPMMISC_LIBRARY ) + FIND_LIBRARY(DB_LIBRARY NAMES db) + IF ( DB_LIBRARY ) + SET( RPMDB_LIBRARY ${DB_LIBRARY} ${RPMDB_LIBRARY} ) + ENDIF ( DB_LIBRARY ) +-ENDIF ( FEDORA ) +-ENDIF ( NOT DEBIAN ) + + SET( PACKAGE "satsolver" ) + SET( VERSION "${LIBSATSOLVER_MAJOR}.${LIBSATSOLVER_MINOR}.${LIBSATSOLVER_PATCH}" ) +@@ -159,22 +153,7 @@ ADD_SUBDIRECTORY(applayer) ADD_SUBDIRECTORY(tests) ADD_SUBDIRECTORY(examples) diff --git a/meta/recipes-extended/sat-solver/sat-solver/db5.patch b/meta/recipes-extended/sat-solver/sat-solver/db5.patch new file mode 100644 index 000000000..98f322ffb --- /dev/null +++ b/meta/recipes-extended/sat-solver/sat-solver/db5.patch @@ -0,0 +1,24 @@ +RPM no longer includes an internal version of db, it now relies on the system +version. The system version in Poky is available at /usr/include/db51 + +Signed-off-by: Mark Hatle <mark.hatle@windriver.com> + +rebased to sat-solver commit 9e1f2a097965debebc69cebf8ed73c6ff31a5220 + +Signed-off-by: Qing He <qing.he@intel.com> + +--- git/ext/repo_rpmdb.c.orig 2011-01-06 10:46:37.369900542 -0600 ++++ git/ext/repo_rpmdb.c 2011-01-06 10:48:35.482919434 -0600 +@@ -29,11 +29,7 @@ + #include <rpm/rpmdb.h> + + #ifndef DB_CREATE +-# ifdef FEDORA +-# include <db.h> +-# else +-# include <rpm/db.h> +-# endif ++# include <db.h> + #endif + + #include "pool.h" diff --git a/meta/recipes-extended/sat-solver/sat-solver/dso_linking_change_build_fix.patch b/meta/recipes-extended/sat-solver/sat-solver/dso_linking_change_build_fix.patch deleted file mode 100644 index 7aeee29c9..000000000 --- a/meta/recipes-extended/sat-solver/sat-solver/dso_linking_change_build_fix.patch +++ /dev/null @@ -1,31 +0,0 @@ -After adding dso patch to gcc, the linking of libraries has to be explicit. -Following error caused by dso patch is fixed for this patch. - -| make[2]: Entering directory `/disk0/pokybuild/build1/tmp/work/i586-poky-linux/sat-solver-0.0-git0+aa799f7bae0ec055e0e527203635001bb7346dbc-r1/git'^M -| Linking C executable findfileconflicts^M -| cd /disk0/pokybuild/build1/tmp/work/i586-poky-linux/sat-solver-0.0-git0+aa799f7bae0ec055e0e527203635001bb7346dbc-r1/git/tools && /disk0/pokybuild/build1/tmp/sysroots/x86_64-linux/usr/bin/cmake -E cmake_link_script CMakeFiles/findfileconflicts.dir/link.txt --verbose=1^M -| /disk0/pokybuild/build1/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/i586-poky-linux-gcc -march=i586 --sysroot=/disk0/pokybuild/build1/tmp/sysroots/i586-poky-linux -Werror -Wall -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed CMakeFiles/findfileconflicts.dir/findfileconflicts.o -o findfileconflicts -rdynamic ../ext/libsatsolverext.a ../src/libsatsolver.a -lrpmio -lrpmdb^M -| /disk0/pokybuild/build1/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.5.1/ld: [: invalid DSO for symbol `db_env_create_rpmdb@@LIBRPMMISC_0' definition^M -| /disk0/pokybuild/build1/tmp/sysroots/i586-poky-linux/usr/lib/librpmmisc-5.0.so: could not read symbols: Bad value^M -| collect2: ld returned 1 exit status^M -| make[2]: *** [tools/findfileconflicts] Error 1^M - -Nitin A Kamble <nitin.a.kamble@intel.com> -Date: 2011/01/11 - - -Index: git/CMakeLists.txt -=================================================================== ---- git.orig/CMakeLists.txt -+++ git/CMakeLists.txt -@@ -63,6 +63,10 @@ FIND_LIBRARY(RPMIO_LIBRARY NAMES rpmio) - IF ( RPMIO_LIBRARY ) - SET( RPMDB_LIBRARY ${RPMIO_LIBRARY} ${RPMDB_LIBRARY} ) - ENDIF ( RPMIO_LIBRARY ) -+FIND_LIBRARY(RPMMISC_LIBRARY NAMES rpmmisc) -+IF ( RPMMISC_LIBRARY ) -+SET( RPMDB_LIBRARY ${RPMMISC_LIBRARY} ${RPMDB_LIBRARY} ) -+ENDIF ( RPMMISC_LIBRARY ) - IF ( FEDORA ) - FIND_LIBRARY(DB_LIBRARY NAMES db) - IF ( DB_LIBRARY ) diff --git a/meta/recipes-extended/sat-solver/sat-solver/rpm5.patch b/meta/recipes-extended/sat-solver/sat-solver/rpm5.patch index a44a07dee..5ab632155 100644 --- a/meta/recipes-extended/sat-solver/sat-solver/rpm5.patch +++ b/meta/recipes-extended/sat-solver/sat-solver/rpm5.patch @@ -2,6 +2,11 @@ fix rpm5 build 8/19/2010 - created by Qing He <qing.he@intel.com> + +pgpDigNew/pgpDigFree has changed in RPM 5.4.0 + +Signed-off-by: Qing He <qing.he@intel.com> + diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c index 34f2b65..3c6ab9a 100644 --- a/ext/repo_rpmdb.c @@ -33,7 +38,7 @@ index 34f2b65..3c6ab9a 100644 /* only rpm knows how to do the release calculation, we don't dare * to recreate all the bugs */ - dig = pgpNewDig(); -+ dig = pgpDigNew(0); ++ dig = pgpDigNew(RPMVSF_DEFAULT, 0); (void) pgpPrtPkts(pkts, pktsl, dig, 0); btime = dig->pubkey.time[0] << 24 | dig->pubkey.time[1] << 16 | dig->pubkey.time[2] << 8 | dig->pubkey.signid[3]; sprintf(evrbuf, "%02x%02x%02x%02x-%02x%02x%02x%02x", dig->pubkey.signid[4], dig->pubkey.signid[5], dig->pubkey.signid[6], dig->pubkey.signid[7], dig->pubkey.time[0], dig->pubkey.time[1], dig->pubkey.time[2], dig->pubkey.time[3]); @@ -42,7 +47,7 @@ index 34f2b65..3c6ab9a 100644 if (dig->pubkey.userid) setutf8string(data, s - s->repo->pool->solvables, SOLVABLE_SUMMARY, dig->pubkey.userid); - pgpFreeDig(dig); -+ (void) pgpDigFree(dig, ""); ++ (void) pgpDigFree(dig); sat_free((void *)pkts); return 1; } diff --git a/meta/recipes-extended/sat-solver/sat-solver_git.bb b/meta/recipes-extended/sat-solver/sat-solver_git.bb index 8cf7eec94..02b6c7550 100644 --- a/meta/recipes-extended/sat-solver/sat-solver_git.bb +++ b/meta/recipes-extended/sat-solver/sat-solver_git.bb @@ -12,7 +12,7 @@ PR = "r3" SRC_URI = "git://gitorious.org/opensuse/sat-solver.git;protocol=git \ file://cmake.patch \ file://rpm5.patch \ - file://dso_linking_change_build_fix.patch" + file://db5.patch" S = "${WORKDIR}/git" |