diff options
| author | Mark Hatle <mark.hatle@windriver.com> | 2014-07-02 19:57:44 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-08 11:19:48 +0100 |
| commit | 0c7b4a5e23836889196f85f472f081d51529e94e (patch) | |
| tree | f300a95188e10f51ddd30f53ee2eff73e92d41ff | |
| parent | 04bb223110da2f92725c341bc3ec0cf26325f675 (diff) | |
| download | openembedded-core-0c7b4a5e23836889196f85f472f081d51529e94e.tar.gz openembedded-core-0c7b4a5e23836889196f85f472f081d51529e94e.tar.bz2 openembedded-core-0c7b4a5e23836889196f85f472f081d51529e94e.zip | |
rpm: Upgrade to 5.4.14
Update various patches. A few corrections to the patch descriptions,
otherwise simple quilt refresh or conflict resolution.
Remove rpm-solvedb.patch and rpm-respect-arch.patch. These are both related
to the old solvedb package dependency solver. This is no longer used since
we moved to smartpm.
rpm-stub-out-git_strerror was a backport and is no longer needed.
RPM 5.4.12 and newer normally requires Berkley DB 6.0 or newer. A small
patch to configure allows RPM to dynamically select DB 5.3 or DB 6.0 based
on what is available at configure time.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
47 files changed, 498 insertions, 442 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/dbconvert.patch b/meta/recipes-devtools/rpm/rpm/dbconvert.patch index 27dba8c960..78de7d99d2 100644 --- a/meta/recipes-devtools/rpm/rpm/dbconvert.patch +++ b/meta/recipes-devtools/rpm/rpm/dbconvert.patch @@ -3,20 +3,20 @@ Upstream-Status: Not applicable Hack to prevent unneeded demo app from building on older libc where it will break the build -Index: rpm-5.4.9/tools/Makefile.am +Index: rpm-5.4.14/tools/Makefile.am =================================================================== ---- rpm-5.4.9.orig/tools/Makefile.am -+++ rpm-5.4.9/tools/Makefile.am -@@ -24,7 +24,7 @@ AM_CFLAGS = $(OPENMP_CFLAGS) +--- rpm-5.4.14.orig/tools/Makefile.am ++++ rpm-5.4.14/tools/Makefile.am +@@ -29,7 +29,7 @@ EXTRA_PROGRAMS = nix-copy-closure nix-en + xiu-instantiate xiu-store + noinst_PROGRAMS = - EXTRA_DIST = hashtab.h bsdiff.1 bspatch.1 dotgraph.hh - --EXTRA_PROGRAMS = augtool cudftool dbconvert debugedit \ -+EXTRA_PROGRAMS = augtool cudftool debugedit \ - nix-build nix-channel nix-collect-garbage nix-copy-closure \ - nix-env nix-hash nix-install-package nix-instantiate \ - nix-log2xml nix-prefetch-url nix-pull nix-push nix-store nix-worker \ -@@ -60,7 +60,7 @@ pkgbin_PROGRAMS = \ +-EXTRA_PROGRAMS += augtool cudftool dbconvert debugedit \ ++EXTRA_PROGRAMS += augtool cudftool debugedit \ + nix-build nix-channel nix-collect-garbage \ + nix-log2xml nix-prefetch-url nix-pull nix-push \ + xiu-echo xiu-hash \ +@@ -64,7 +64,7 @@ pkgbin_PROGRAMS = \ rpmcache rpmdigest rpmrepo rpmspecdump \ rpmcmp rpmdeps rpmdeps-oecore sqlite3 @WITH_KEYUTILS_RPMKEY@ @WITH_LIBELF_DEBUGEDIT@ if WITH_DB diff --git a/meta/recipes-devtools/rpm/rpm/debugedit-segv.patch b/meta/recipes-devtools/rpm/rpm/debugedit-segv.patch index 74efe6570c..beef5edd9d 100644 --- a/meta/recipes-devtools/rpm/rpm/debugedit-segv.patch +++ b/meta/recipes-devtools/rpm/rpm/debugedit-segv.patch @@ -15,11 +15,11 @@ Upstream-Status: Pending Signed-off-by: Mark Hatle <mark.hatle@windriver.com> -Index: rpm-5.4.9/tools/debugedit.c +Index: rpm-5.4.14/tools/debugedit.c =================================================================== ---- rpm-5.4.9.orig/tools/debugedit.c -+++ rpm-5.4.9/tools/debugedit.c -@@ -1432,21 +1432,24 @@ handle_build_id (DSO *dso, Elf_Data *bui +--- rpm-5.4.14.orig/tools/debugedit.c ++++ rpm-5.4.14/tools/debugedit.c +@@ -1445,21 +1445,24 @@ handle_build_id (DSO *dso, Elf_Data *bui auto inline void process (const void *data, size_t size) { memchunk chunk = { .data = (void *) data, .size = size }; @@ -34,16 +34,15 @@ Index: rpm-5.4.9/tools/debugedit.c GElf_Shdr shdr; - } u; - Elf_Data x = { .d_version = EV_CURRENT, .d_buf = &u }; -- ++ } u1, u2; ++ Elf_Data src = { .d_version = EV_CURRENT, .d_buf = &u1 }; ++ Elf_Data dest = { .d_version = EV_CURRENT, .d_buf = &u2 }; + - x.d_type = ELF_T_EHDR; - x.d_size = sizeof u.ehdr; - u.ehdr = dso->ehdr; - u.ehdr.e_phoff = u.ehdr.e_shoff = 0; - if (elf64_xlatetom (&x, &x, dso->ehdr.e_ident[EI_DATA]) == NULL) -+ } u1, u2; -+ Elf_Data src = { .d_version = EV_CURRENT, .d_buf = &u1 }; -+ Elf_Data dest = { .d_version = EV_CURRENT, .d_buf = &u2 }; -+ + src.d_type = ELF_T_EHDR; + src.d_size = sizeof u1.ehdr; + dest.d_size = sizeof u2.ehdr; @@ -53,7 +52,7 @@ Index: rpm-5.4.9/tools/debugedit.c { bad: fprintf (stderr, "Failed to compute header checksum: %s\n", -@@ -1454,29 +1457,31 @@ handle_build_id (DSO *dso, Elf_Data *bui +@@ -1467,29 +1470,31 @@ handle_build_id (DSO *dso, Elf_Data *bui exit (1); } diff --git a/meta/recipes-devtools/rpm/rpm/debugedit-valid-file-to-fix-segment-fault.patch b/meta/recipes-devtools/rpm/rpm/debugedit-valid-file-to-fix-segment-fault.patch index 2696cd3168..f7c31006b4 100644 --- a/meta/recipes-devtools/rpm/rpm/debugedit-valid-file-to-fix-segment-fault.patch +++ b/meta/recipes-devtools/rpm/rpm/debugedit-valid-file-to-fix-segment-fault.patch @@ -20,10 +20,11 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> tools/debugedit.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -diff --git a/tools/debugedit.c b/tools/debugedit.c ---- a/tools/debugedit.c -+++ b/tools/debugedit.c -@@ -1512,6 +1512,28 @@ handle_build_id (DSO *dso, Elf_Data *build_id, +Index: rpm-5.4.14/tools/debugedit.c +=================================================================== +--- rpm-5.4.14.orig/tools/debugedit.c ++++ rpm-5.4.14/tools/debugedit.c +@@ -1525,6 +1525,28 @@ handle_build_id (DSO *dso, Elf_Data *bui } } @@ -52,7 +53,7 @@ diff --git a/tools/debugedit.c b/tools/debugedit.c int main (int argc, char *argv[]) { -@@ -1608,6 +1630,9 @@ main (int argc, char *argv[]) +@@ -1621,6 +1643,9 @@ main (int argc, char *argv[]) exit (1); } @@ -62,6 +63,3 @@ diff --git a/tools/debugedit.c b/tools/debugedit.c dso = fdopen_dso (fd, file); if (dso == NULL) exit (1); --- -1.8.1.2 - diff --git a/meta/recipes-devtools/rpm/rpm/fstack-protector-configure-check.patch b/meta/recipes-devtools/rpm/rpm/fstack-protector-configure-check.patch index 0474c65a89..976af486fb 100644 --- a/meta/recipes-devtools/rpm/rpm/fstack-protector-configure-check.patch +++ b/meta/recipes-devtools/rpm/rpm/fstack-protector-configure-check.patch @@ -6,11 +6,11 @@ Therefore we change the compile only check to compile and link check Signed-off-by: Khem Raj <raj.khem@gmail.com> Upstream-Status: Pending -Index: rpm-5.4.0/configure.ac +Index: rpm-5.4.14/configure.ac =================================================================== ---- rpm-5.4.0.orig/configure.ac 2012-06-01 11:41:19.741480143 -0700 -+++ rpm-5.4.0/configure.ac 2012-06-01 11:41:51.773481676 -0700 -@@ -193,7 +193,7 @@ +--- rpm-5.4.14.orig/configure.ac ++++ rpm-5.4.14/configure.ac +@@ -201,7 +201,7 @@ dnl # GNU GCC (usually "gcc") my_save_cflags="$CFLAGS" CFLAGS=$c AC_MSG_CHECKING([whether GCC supports $c]) diff --git a/meta/recipes-devtools/rpm/rpm/header-include-fix.patch b/meta/recipes-devtools/rpm/rpm/header-include-fix.patch index 6aa072d7c8..5ffb187ff3 100644 --- a/meta/recipes-devtools/rpm/rpm/header-include-fix.patch +++ b/meta/recipes-devtools/rpm/rpm/header-include-fix.patch @@ -1,9 +1,9 @@ Upstream-Status: Pending -diff --git a/rpmdb/rpmdb.h b/rpmdb/rpmdb.h -index 0e1bdd7..8b522bb 100644 ---- a/rpmdb/rpmdb.h -+++ b/rpmdb/rpmdb.h +Index: rpm-5.4.14/rpmdb/rpmdb.h +=================================================================== +--- rpm-5.4.14.orig/rpmdb/rpmdb.h ++++ rpm-5.4.14/rpmdb/rpmdb.h @@ -9,6 +9,7 @@ #include <assert.h> @@ -12,10 +12,10 @@ index 0e1bdd7..8b522bb 100644 #include <rpmtypes.h> #include <rpmtag.h> /* XXX Header typedef */ -diff --git a/rpmdb/rpmtag.h b/rpmdb/rpmtag.h -index 8af6480..2166b4c 100644 ---- a/rpmdb/rpmtag.h -+++ b/rpmdb/rpmtag.h +Index: rpm-5.4.14/rpmdb/rpmtag.h +=================================================================== +--- rpm-5.4.14.orig/rpmdb/rpmtag.h ++++ rpm-5.4.14/rpmdb/rpmtag.h @@ -7,6 +7,7 @@ #include <rpmiotypes.h> diff --git a/meta/recipes-devtools/rpm/rpm/makefile-am-exec-hook.patch b/meta/recipes-devtools/rpm/rpm/makefile-am-exec-hook.patch index 12f85b7fc9..8fab9eb42f 100644 --- a/meta/recipes-devtools/rpm/rpm/makefile-am-exec-hook.patch +++ b/meta/recipes-devtools/rpm/rpm/makefile-am-exec-hook.patch @@ -18,9 +18,11 @@ Upstream-Status: Pending Signed-off-by: Morgan Little <morgan.little@windriver.com> ---- a/lua/Makefile.am.orig -+++ b/lua/Makefile.am -@@ -320,7 +320,7 @@ +Index: rpm-5.4.14/lua/Makefile.am +=================================================================== +--- rpm-5.4.14.orig/lua/Makefile.am ++++ rpm-5.4.14/lua/Makefile.am +@@ -326,7 +326,7 @@ clean-local: # XXX Build & install as rpmlua/rpmluac with hardlinks to lua/luac post install. # XXX CVS has lua/luac sub-directories in the Attic that collide with the # XXX lua/luac executable names when using cvs update. diff --git a/meta/recipes-devtools/rpm/rpm/python-rpm-rpmsense.patch b/meta/recipes-devtools/rpm/rpm/python-rpm-rpmsense.patch index c1fab3e1a0..a538a60bb9 100644 --- a/meta/recipes-devtools/rpm/rpm/python-rpm-rpmsense.patch +++ b/meta/recipes-devtools/rpm/rpm/python-rpm-rpmsense.patch @@ -8,10 +8,10 @@ Upstream-Status: Pending Signed-off-by: Mark Hatle <mark.hatle@windriver.com> -Index: rpm-5.4.9/python/rpmmodule.c +Index: rpm-5.4.14/python/rpmmodule.c =================================================================== ---- rpm-5.4.9.orig/python/rpmmodule.c -+++ rpm-5.4.9/python/rpmmodule.c +--- rpm-5.4.14.orig/python/rpmmodule.c ++++ rpm-5.4.14/python/rpmmodule.c @@ -494,12 +494,16 @@ void init_rpm(void) REGISTER_ENUM(RPMSENSE_EQUAL); REGISTER_ENUM(RPMSENSE_NOTEQUAL); diff --git a/meta/recipes-devtools/rpm/rpm/rpm-autogen.patch b/meta/recipes-devtools/rpm/rpm/rpm-autogen.patch index 5129833381..8771235d30 100644 --- a/meta/recipes-devtools/rpm/rpm/rpm-autogen.patch +++ b/meta/recipes-devtools/rpm/rpm/rpm-autogen.patch @@ -2,14 +2,14 @@ Remove the sanity checking from the rpm autogen.sh. This is required because we may have slightly different, but yet compatible versions. If we do end up breaking things, we'll deal with it at that time. -Upstream-Status: Pending +Upstream-Status: Inappropriate [configuration] Signed-off-by: Mark Hatle <mark.hatle@windriver.com> -Index: rpm-5.4.8/syck/autogen.sh +Index: rpm-5.4.14/syck/autogen.sh =================================================================== ---- rpm-5.4.8.orig/syck/autogen.sh -+++ rpm-5.4.8/syck/autogen.sh +--- rpm-5.4.14.orig/syck/autogen.sh ++++ rpm-5.4.14/syck/autogen.sh @@ -34,12 +34,6 @@ libtoolize () { eval $_libtoolize $_libtoolize_args } diff --git a/meta/recipes-devtools/rpm/rpm/rpm-canonarch.patch b/meta/recipes-devtools/rpm/rpm/rpm-canonarch.patch index 3aac1164d6..41ab498a0f 100644 --- a/meta/recipes-devtools/rpm/rpm/rpm-canonarch.patch +++ b/meta/recipes-devtools/rpm/rpm/rpm-canonarch.patch @@ -18,11 +18,11 @@ Upstream-Status: Pending Signed-off-by: Mark Hatle <mark.hatle@windriver.com> -Index: rpm-5.4.0/lib/rpmrc.c +Index: rpm-5.4.14/lib/rpmrc.c =================================================================== ---- rpm-5.4.0.orig/lib/rpmrc.c 2011-08-10 17:04:35.798814821 -0500 -+++ rpm-5.4.0/lib/rpmrc.c 2011-08-10 17:33:51.505871895 -0500 -@@ -916,8 +916,8 @@ +--- rpm-5.4.14.orig/lib/rpmrc.c ++++ rpm-5.4.14/lib/rpmrc.c +@@ -925,8 +925,8 @@ static void getMachineInfo(int type, /*@ static void rpmRebuildTargetVars(const char ** target, const char ** canontarget) { @@ -33,7 +33,7 @@ Index: rpm-5.4.0/lib/rpmrc.c int x; /* Rebuild the compat table to recalculate the current target arch. */ -@@ -927,23 +927,60 @@ +@@ -936,23 +936,60 @@ static void rpmRebuildTargetVars(const c rpmSetTables(RPM_MACHTABLE_BUILDARCH, RPM_MACHTABLE_BUILDOS); if (target && *target) { @@ -104,7 +104,7 @@ Index: rpm-5.4.0/lib/rpmrc.c } } else { const char *a = NULL; -@@ -988,8 +1025,16 @@ +@@ -995,8 +1032,16 @@ static void rpmRebuildTargetVars(const c addMacro(NULL, "_target", NULL, ct, RMIL_RPMRC); delMacro(NULL, "_target_cpu"); addMacro(NULL, "_target_cpu", NULL, ca, RMIL_RPMRC); @@ -121,7 +121,7 @@ Index: rpm-5.4.0/lib/rpmrc.c if (canontarget) *canontarget = ct; -@@ -997,8 +1041,12 @@ +@@ -1004,8 +1049,12 @@ static void rpmRebuildTargetVars(const c ct = _free(ct); ca = _free(ca); /*@-usereleased@*/ diff --git a/meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch b/meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch index d9b4e33fdd..c869376538 100644 --- a/meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch +++ b/meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch @@ -4,10 +4,10 @@ Change cache size to reduce the usage of disk space from 62MB to 26MB. Signed-off-by: Mei Lei <lei.mei@intel.com> -Index: rpm-5.4.8/rpmdb/DB_CONFIG.in +Index: rpm-5.4.14/rpmdb/DB_CONFIG.in =================================================================== ---- rpm-5.4.8.orig/rpmdb/DB_CONFIG.in -+++ rpm-5.4.8/rpmdb/DB_CONFIG.in +--- rpm-5.4.14.orig/rpmdb/DB_CONFIG.in ++++ rpm-5.4.14/rpmdb/DB_CONFIG.in @@ -29,7 +29,7 @@ set_thread_count 64 # ================ Memory Pool diff --git a/meta/recipes-devtools/rpm/rpm/rpm-db5-or-db6.patch b/meta/recipes-devtools/rpm/rpm/rpm-db5-or-db6.patch new file mode 100644 index 0000000000..edb6ea2f47 --- /dev/null +++ b/meta/recipes-devtools/rpm/rpm/rpm-db5-or-db6.patch @@ -0,0 +1,162 @@ +Support both db5 and db6. + +Upstream-status: Inappropriate [configuration] + +Signed-off-by: Mark Hatle <mark.hatle@windriver.com> + +Index: rpm/configure.ac +=================================================================== +--- rpm.orig/configure.ac ++++ rpm/configure.ac +@@ -547,8 +547,6 @@ else + MYPATH=$PATH + fi + +-DBXY=db60 +- + AC_PATH_PROG(__BASH, bash, %{_bindir}/bash, $MYPATH) + AC_PATH_PROG(__BZIP2, bzip2, %{_bindir}/bzip2, $MYPATH) + AC_PATH_PROG(__CAT, cat, /bin/cat, $MYPATH) +@@ -560,22 +558,6 @@ AC_PATH_PROG(__CMAKE, cmake, %{_bindir}/ + AC_PATH_PROG(__CPIO, cpio, /bin/cpio, $MYPATH) + AC_PATH_PROG(__CURL, curl, %{_bindir}/curl, $MYPATH) + AC_PATH_PROG(__CVS, cvs, %{_bindir}/cvs, $MYPATH) +-AC_PATH_PROG(__DB_ARCHIVE, ${DBXY}_archive, %{_bindir}/${DBXY}_archive, $MYPATH) +-AC_PATH_PROG(__DB_CHECKPOINT, ${DBXY}_checkpoint, %{_bindir}/${DBXY}_checkpoint, $MYPATH) +-AC_PATH_PROG(__DB_DEADLOCK, ${DBXY}_deadlock, %{_bindir}/${DBXY}_deadlock, $MYPATH) +-AC_PATH_PROG(__DB_DUMP, ${DBXY}_dump, %{_bindir}/${DBXY}_dump, $MYPATH) +-AC_PATH_PROG(__DB_HOTBACKUP, ${DBXY}_hotbackup, %{_bindir}/${DBXY}_hotbackup, $MYPATH) +-AC_PATH_PROG(__DB_LOAD, ${DBXY}_load, %{_bindir}/${DBXY}_load, $MYPATH) +-AC_PATH_PROG(__DB_LOG_VERIFY, ${DBXY}_log_verify, %{_bindir}/${DBXY}_log_verify, $MYPATH) +-AC_PATH_PROG(__DB_PRINTLOG, ${DBXY}_printlog, %{_bindir}/${DBXY}_printlog, $MYPATH) +-AC_PATH_PROG(__DB_RECOVER, ${DBXY}_recover, %{_bindir}/${DBXY}_recover, $MYPATH) +-AC_PATH_PROG(__DB_REPLICATE, ${DBXY}_replicate, %{_bindir}/${DBXY}_replicate, $MYPATH) +-AC_PATH_PROG(__DBSQL, ${DBXY}sql, %{_bindir}/${DBXY}sql, $MYPATH) +-AC_PATH_PROG(__DB_SQL_CODEGEN, ${DBXY}_sql_codegen, %{_bindir}/${DBXY}_sql_codegen, $MYPATH) +-AC_PATH_PROG(__DB_STAT, ${DBXY}_stat, %{_bindir}/${DBXY}_stat, $MYPATH) +-AC_PATH_PROG(__DB_TUNER, ${DBXY}_tuner, %{_bindir}/${DBXY}_tuner, $MYPATH) +-AC_PATH_PROG(__DB_UPGRADE, ${DBXY}_upgrade, %{_bindir}/${DBXY}_upgrade, $MYPATH) +-AC_PATH_PROG(__DB_VERIFY, ${DBXY}_verify, %{_bindir}/${DBXY}_verify, $MYPATH) + AC_PATH_PROG(__DIFF, diff, /bin/diff, $MYPATH) + AC_PATH_PROG(__DITTO, ditto, %{_bindir}/ditto, $MYPATH) + AC_PATH_PROG(__FILE, file, %{_bindir}/file, $MYPATH) +@@ -1604,13 +1586,18 @@ RPM_CHECK_LIB( + + dnl # Berkeley-DB & SQLite + DBLIBSRCS="" ++DBXY=db ++ + # XXX won't handle --includedir override +-CPPFLAGS="${CPPFLAGS} -I${prefix}/include/${DBXY}" ++CPPFLAGS_save="${CPPFLAGS}" ++CPPFLAGS="${CPPFLAGS_save} -I${prefix}/include/db-6.0" ++with_db_save="${with_db}" + RPM_CHECK_LIB( + [Berkeley-DB], [db], + [db-6.0], [db_create], [db.h], +- [yes,external], [db3], ++ [yes,external], [db6], + [ DBLIBSRCS="$DBLIBSRCS db3.c" ++ DBXY=db60 + AM_CONDITIONAL(WITH_DB, [ true ]) + AM_CONDITIONAL(WITH_DB_INTERNAL, [ test ".$RPM_CHECK_LIB_LOCATION" = .internal ]) + if test ".$RPM_CHECK_LIB_LOCATION" = .internal; then +@@ -1619,10 +1606,32 @@ RPM_CHECK_LIB( + WITH_DB_SUBDIR="" + fi + ], +- [ AM_CONDITIONAL(WITH_DB, [ false ]) +- AM_CONDITIONAL(WITH_DB_INTERNAL, [ false ]) ++ [ # Reset a few variables to fresh ++ with_db="${with_db_save}" ++ CPPFLAGS="${CPPFLAGS_save} -I${prefix}/include/db-5.3" ++ RPM_CHECK_LIB( ++ [Berkeley-DB], [db], ++ [db-5.3], [db_create], [db.h], ++ [yes,external], [db53], ++ [ DBLIBSRCS="$DBLIBSRCS db3.c" ++ DBXY=db53 ++ AM_CONDITIONAL(WITH_DB, [ true ]) ++ AM_CONDITIONAL(WITH_DB_INTERNAL, [ test ".$RPM_CHECK_LIB_LOCATION" = .internal ]) ++ if test ".$RPM_CHECK_LIB_LOCATION" = .internal; then ++ AC_DEFINE(HAVE_DB_H, 1, [Have <db.h> header]) ++ else ++ WITH_DB_SUBDIR="" ++ fi ++ ], ++ [ AM_CONDITIONAL(WITH_DB, [ false ]) ++ AM_CONDITIONAL(WITH_DB_INTERNAL, [ false ]) ++ ]) + ]) + ++if test ".$ac_cv_lib_db_6_0_db_create" != .yes -a ".$ac_cv_lib_db_5_3_db_create" != .yes; then ++ CPPFLAGS="${CPPFLAGS_save}" ++fi ++ + dnl # Sqlite external + RPM_CHECK_LIB( + [SQLite], [sqlite], +@@ -1633,10 +1642,11 @@ RPM_CHECK_LIB( + + dnl # Sqlite 3.7.0.1 from db-5.1.19 + dnl XXX error: `db3' is already registered with AC_CONFIG_SUBDIRS. ++if test ".$ac_cv_lib_db_6_0_db_create" = .yes; then + RPM_CHECK_LIB( + [Berkeley-DB (+SQLite3)], [dbsql], + [db_sql-6.0], [sqlite3_open], [dbsql.h], +- [yes,external], [db3/sql], ++ [yes,external], [db6/sql], + [ + AM_CONDITIONAL(WITH_DBSQL, [ true ]) + AC_DEFINE(WITH_SQLITE, 1, [Define as 1 if building with SQLite library]) +@@ -1650,12 +1660,50 @@ RPM_CHECK_LIB( + ], [ + AM_CONDITIONAL(WITH_DBSQL, [ false ]) + ]) ++elif test ".$ac_cv_lib_db_5_3_db_create" = .yes; then ++RPM_CHECK_LIB( ++ [Berkeley-DB (+SQLite3)], [dbsql], ++ [db_sql-5.3], [sqlite3_open], [dbsql.h], ++ [yes,external], [db53/sql], ++ [ ++ AM_CONDITIONAL(WITH_DBSQL, [ true ]) ++ AC_DEFINE(WITH_SQLITE, 1, [Define as 1 if building with SQLite library]) ++ if test ".$RPM_CHECK_LIB_LOCATION" = .internal; then ++ WITH_DB_CPPFLAGS="${WITH_DB_CPPFLAGS} -I\$(top_srcdir)/db/sql/generated" ++ WITH_DB_LIBS="${WITH_DBSQL_LIBS}" ++ DBLIBSRCS="$DBLIBSRCS sqlite.c" ++ else ++ WITH_DBSQL_SUBDIR="" ++ fi ++ ], [ ++ AM_CONDITIONAL(WITH_DBSQL, [ false ]) ++ ]) ++else ++AM_CONDITIONAL(WITH_DBSQL, [ false ]) ++fi + + DBLIBOBJS=`echo $DBLIBSRCS | sed -e "s/\.c/\.lo/g"` + + AC_SUBST(DBLIBSRCS) + AC_SUBST(DBLIBOBJS) + ++AC_PATH_PROG(__DB_ARCHIVE, ${DBXY}_archive, %{_bindir}/${DBXY}_archive, $MYPATH) ++AC_PATH_PROG(__DB_CHECKPOINT, ${DBXY}_checkpoint, %{_bindir}/${DBXY}_checkpoint, $MYPATH) ++AC_PATH_PROG(__DB_DEADLOCK, ${DBXY}_deadlock, %{_bindir}/${DBXY}_deadlock, $MYPATH) ++AC_PATH_PROG(__DB_DUMP, ${DBXY}_dump, %{_bindir}/${DBXY}_dump, $MYPATH) ++AC_PATH_PROG(__DB_HOTBACKUP, ${DBXY}_hotbackup, %{_bindir}/${DBXY}_hotbackup, $MYPATH) ++AC_PATH_PROG(__DB_LOAD, ${DBXY}_load, %{_bindir}/${DBXY}_load, $MYPATH) ++AC_PATH_PROG(__DB_LOG_VERIFY, ${DBXY}_log_verify, %{_bindir}/${DBXY}_log_verify, $MYPATH) ++AC_PATH_PROG(__DB_PRINTLOG, ${DBXY}_printlog, %{_bindir}/${DBXY}_printlog, $MYPATH) ++AC_PATH_PROG(__DB_RECOVER, ${DBXY}_recover, %{_bindir}/${DBXY}_recover, $MYPATH) ++AC_PATH_PROG(__DB_REPLICATE, ${DBXY}_replicate, %{_bindir}/${DBXY}_replicate, $MYPATH) ++AC_PATH_PROG(__DBSQL, ${DBXY}sql, %{_bindir}/${DBXY}sql, $MYPATH) ++AC_PATH_PROG(__DB_SQL_CODEGEN, ${DBXY}_sql_codegen, %{_bindir}/${DBXY}_sql_codegen, $MYPATH) ++AC_PATH_PROG(__DB_STAT, ${DBXY}_stat, %{_bindir}/${DBXY}_stat, $MYPATH) ++AC_PATH_PROG(__DB_TUNER, ${DBXY}_tuner, %{_bindir}/${DBXY}_tuner, $MYPATH) ++AC_PATH_PROG(__DB_UPGRADE, ${DBXY}_upgrade, %{_bindir}/${DBXY}_upgrade, $MYPATH) ++AC_PATH_PROG(__DB_VERIFY, ${DBXY}_verify, %{_bindir}/${DBXY}_verify, $MYPATH) ++ + AC_ARG_WITH(db-largefile, AS_HELP_STRING([--with-db-largefile], [build Berkeley-DB with LARGEFILE support])) + AC_ARG_WITH(db-mutex, AS_HELP_STRING([--with-db-mutex=ARG], [build Berkeley-DB with MUTEX type ARG])) + diff --git a/meta/recipes-devtools/rpm/rpm/rpm-db_buffer_small.patch b/meta/recipes-devtools/rpm/rpm/rpm-db_buffer_small.patch index 59022f4e63..16b8e30a1d 100644 --- a/meta/recipes-devtools/rpm/rpm/rpm-db_buffer_small.patch +++ b/meta/recipes-devtools/rpm/rpm/rpm-db_buffer_small.patch @@ -18,11 +18,11 @@ Upstream-Status: Inappropriate (workaround) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> -Index: rpm-5.4.9/rpmdb/rpmdb.c +Index: rpm-5.4.14/rpmdb/rpmdb.c =================================================================== ---- rpm-5.4.9.orig/rpmdb/rpmdb.c -+++ rpm-5.4.9/rpmdb/rpmdb.c -@@ -2212,8 +2212,12 @@ static int rpmmiGet(dbiIndex dbi, DBC * +--- rpm-5.4.14.orig/rpmdb/rpmdb.c ++++ rpm-5.4.14/rpmdb/rpmdb.c +@@ -2212,8 +2212,12 @@ static int rpmmiGet(dbiIndex dbi, DBC * vp->flags |= DB_DBT_USERMEM; rc = dbiGet(dbi, dbcursor, kp, vp, flags); if (rc == DB_BUFFER_SMALL) { @@ -36,7 +36,7 @@ Index: rpm-5.4.9/rpmdb/rpmdb.c if (uh == NULL || uh == (void *)-1) fprintf(stderr, "==> mmap(%p[%u], 0x%x, 0x%x, %d, 0x%x) error(%d): %s\n", -@@ -2235,6 +2239,25 @@ static int rpmmiGet(dbiIndex dbi, DBC * +@@ -2235,6 +2239,25 @@ static int rpmmiGet(dbiIndex dbi, DBC * if (munmap(uh, uhlen) != 0) fprintf(stderr, "==> munmap(%p[%u]) error(%d): %s\n", uh, (unsigned)uhlen, errno, strerror(errno)); @@ -62,11 +62,11 @@ Index: rpm-5.4.9/rpmdb/rpmdb.c } } } else -Index: rpm-5.4.9/rpmdb/db3.c +Index: rpm-5.4.14/rpmdb/db3.c =================================================================== ---- rpm-5.4.9.orig/rpmdb/db3.c |
