Lucio Andrés Illanes Albornoz 4e7f2a
--- rpm-4.14.2.1/config.h.in.orig	2018-10-22 09:23:50.537387460 +0000
Lucio Andrés Illanes Albornoz 4e7f2a
+++ rpm-4.14.2.1/config.h.in	2019-06-26 17:43:25.432000000 +0000
Lucio Andrés Illanes Albornoz 4e7f2a
@@ -9,6 +9,9 @@
Lucio Andrés Illanes Albornoz 4e7f2a
 /* Build with systemd inhibit plugin? */
Lucio Andrés Illanes Albornoz 4e7f2a
 #undef ENABLE_INHIBIT_PLUGIN
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+/* Enable Berkeley DB rpmdb support */
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+#undef ENABLE_BDB
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 /* Enable new rpm database format? */
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 #undef ENABLE_NDB
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz 4e7f2a
--- rpm-4.14.2.1/configure.orig	2018-10-22 09:23:38.409409243 +0000
Lucio Andrés Illanes Albornoz 4e7f2a
+++ rpm-4.14.2.1/configure	2019-06-26 17:43:25.432000000 +0000
Lucio Andrés Illanes Albornoz 4e7f2a
@@ -717,6 +717,8 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 LMDB_CFLAGS
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 NDB_FALSE
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 NDB_TRUE
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+BDB_FALSE
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+BDB_TRUE
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 WITH_DB_LIB
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 HAVE_LIBDW_STRTAB_FALSE
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 HAVE_LIBDW_STRTAB_TRUE
Lucio Andrés Illanes Albornoz 4e7f2a
@@ -961,6 +963,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 with_beecrypt
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 with_internal_beecrypt
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 with_archive
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+enable_bdb
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 with_external_db
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 enable_ndb
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 enable_lmdb
Lucio Andrés Illanes Albornoz 4e7f2a
@@ -1643,6 +1646,8 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
   --disable-largefile     omit support for large files
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
   --enable-zstd=[yes/no/auto]
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
                           build without zstd support (default=auto)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+  --enable-bdb=[yes/no]   build with Berkeley DB rpm database format support
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+                          (default=yes)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
   --enable-ndb (EXPERIMENTAL)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
                           enable the new rpm database format
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
   --enable-lmdb=[yes/no/auto] (EXPERIMENTAL)
Lucio Andrés Illanes Albornoz 4e7f2a
@@ -21973,6 +21978,23 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 #=================
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+# Enable Berkeley DB rpmdb backend
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+# Check whether --enable-bdb was given.
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+if test "${enable_bdb+set}" = set; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+  enableval=$enable_bdb; enable_bdb="$enableval"
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+else
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+  enable_bdb=yes
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+fi
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+if test "$enable_bdb" = "yes"; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+$as_echo "#define ENABLE_BDB /**/" >>confdefs.h
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+#=================
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 # Process --with/without-external-db
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 # Check whether --with-external_db was given.
Lucio Andrés Illanes Albornoz 4e7f2a
@@ -22080,6 +22102,16 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+fi
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+ if test "$enable_bdb" = yes; then
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+  BDB_TRUE=
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+  BDB_FALSE='#'
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+else
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+  BDB_TRUE='#'
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+  BDB_FALSE=
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+fi
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 #=================
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 # Process --enable-ndb
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 # Check whether --enable-ndb was given.
Lucio Andrés Illanes Albornoz 4e7f2a
@@ -26743,6 +26775,10 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
   as_fn_error $? "conditional \"HAVE_LIBDW_STRTAB\" was never defined.
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 fi
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+if test -z "${BDB_TRUE}" && test -z "${BDB_FALSE}"; then
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+  as_fn_error $? "conditional \"BDB\" was never defined.
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+fi
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 if test -z "${NDB_TRUE}" && test -z "${NDB_FALSE}"; then
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
   as_fn_error $? "conditional \"NDB\" was never defined.
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lucio Andrés Illanes Albornoz 4e7f2a
--- rpm-4.14.2.1/lib/backend/dbi.c.orig	2017-10-05 10:04:56.946602155 +0000
Lucio Andrés Illanes Albornoz 4e7f2a
+++ rpm-4.14.2.1/lib/backend/dbi.c	2019-06-26 17:43:25.432000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
@@ -50,11 +50,13 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
     } else
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 #endif
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
     {
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+#ifdef ENABLE_BDB
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	rdb->db_ops = &db3_dbops;
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	if (*db_backend == '\0') {
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	    free(db_backend);
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	    db_backend = xstrdup("bdb");
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	}
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
     }
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 #if defined(WITH_LMDB)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
@@ -75,12 +77,14 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
     free(path);
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 #endif
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+#ifdef ENABLE_BDB
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
     path = rstrscat(NULL, dbhome, "/Packages", NULL);
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
     if (access(path, F_OK) == 0 && rdb->db_ops != &db3_dbops) {
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	rdb->db_ops = &db3_dbops;
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	rpmlog(RPMLOG_WARNING, _("Found BDB Packages database while attempting %s backend: using bdb backend.\n"), db_backend);
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
     }
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
     free(path);
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
     if (db_backend)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	free(db_backend);
Lucio Andrés Illanes Albornoz 4e7f2a
--- rpm-4.14.2.1/lib/Makefile.in.orig	2018-10-22 09:23:38.884408390 +0000
Lucio Andrés Illanes Albornoz 4e7f2a
+++ rpm-4.14.2.1/lib/Makefile.in	2019-06-26 17:43:25.432000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
@@ -96,9 +96,12 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @WITH_LUA_TRUE@am__append_1 = @LUA_CFLAGS@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @WITH_LUA_TRUE@am__append_2 = @LUA_LIBS@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @WITH_LUA_TRUE@am__append_3 = rpmliblua.c rpmliblua.h
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-@WITH_INTERNAL_DB_TRUE@am__append_4 = $(libdb_la)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-@WITH_INTERNAL_DB_FALSE@am__append_5 = @WITH_DB_LIB@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-@NDB_TRUE@am__append_6 = \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+@BDB_TRUE@am__append_4 = \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+@BDB_TRUE@	backend/db3.c
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+@BDB_TRUE@@WITH_INTERNAL_DB_TRUE@am__append_5 = $(libdb_la)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+@BDB_TRUE@@WITH_INTERNAL_DB_FALSE@am__append_6 = @WITH_DB_LIB@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+@NDB_TRUE@am__append_7 = \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @NDB_TRUE@	backend/ndb/glue.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @NDB_TRUE@	backend/ndb/rpmpkg.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @NDB_TRUE@	backend/ndb/rpmpkg.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
@@ -107,12 +110,12 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @NDB_TRUE@	backend/ndb/rpmxdb.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @NDB_TRUE@	backend/ndb/rpmxdb.h
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-@LMDB_TRUE@am__append_7 = $(LMDB_CFLAGS)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-@LMDB_TRUE@am__append_8 = $(LMDB_LIBS)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-@LMDB_TRUE@am__append_9 = \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+@LMDB_TRUE@am__append_8 = $(LMDB_CFLAGS)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+@LMDB_TRUE@am__append_9 = $(LMDB_LIBS)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+@LMDB_TRUE@am__append_10 = \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @LMDB_TRUE@	backend/lmdb.c
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-@WITH_INTERNAL_DB_TRUE@am__append_10 = $(libdb_la)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+@WITH_INTERNAL_DB_TRUE@am__append_11 = $(libdb_la)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @WITH_INTERNAL_DB_TRUE@rpmlibexec_PROGRAMS = rpmdb_dump$(EXEEXT) \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @WITH_INTERNAL_DB_TRUE@	rpmdb_load$(EXEEXT) \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @WITH_INTERNAL_DB_TRUE@	rpmdb_recover$(EXEEXT) \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
@@ -169,9 +172,9 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 am__DEPENDENCIES_1 =
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @LMDB_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 librpm_la_DEPENDENCIES = $(top_builddir)/rpmio/librpmio.la \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	$(am__DEPENDENCIES_1) $(am__append_4) $(am__DEPENDENCIES_1) \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	$(am__DEPENDENCIES_1) $(am__append_5) $(am__DEPENDENCIES_1) \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	$(am__DEPENDENCIES_2)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-am__librpm_la_SOURCES_DIST = backend/db3.c backend/dbi.c backend/dbi.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+am__librpm_la_SOURCES_DIST = backend/dbi.c backend/dbi.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	backend/dbiset.c backend/dbiset.h headerutil.c header.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	headerfmt.c header_internal.h rpmdb.c rpmdb_internal.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	fprint.c fprint.h tagname.c rpmtd.c cpio.c cpio.h depends.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
@@ -185,25 +188,27 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	rpmlock.h misc.h relocation.c rpmscript.h rpmscript.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	rpmchroot.c rpmchroot.h rpmplugins.c rpmplugins.h rpmplugin.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	rpmug.c rpmug.h rpmtriggers.h rpmtriggers.c rpmvs.c rpmvs.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	rpmliblua.c rpmliblua.h backend/ndb/glue.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	rpmliblua.c rpmliblua.h backend/db3.c backend/ndb/glue.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	backend/ndb/rpmpkg.c backend/ndb/rpmpkg.h backend/ndb/rpmidx.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	backend/ndb/rpmidx.h backend/ndb/rpmxdb.c backend/ndb/rpmxdb.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	backend/lmdb.c
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 am__dirstamp = $(am__leading_dot)dirstamp
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @WITH_LUA_TRUE@am__objects_1 = rpmliblua.lo
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-@NDB_TRUE@am__objects_2 = backend/ndb/glue.lo backend/ndb/rpmpkg.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+@BDB_TRUE@am__objects_2 = backend/db3.lo
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+@NDB_TRUE@am__objects_3 = backend/ndb/glue.lo backend/ndb/rpmpkg.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 @NDB_TRUE@	backend/ndb/rpmidx.lo backend/ndb/rpmxdb.lo
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-@LMDB_TRUE@am__objects_3 = backend/lmdb.lo
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-am_librpm_la_OBJECTS = backend/db3.lo backend/dbi.lo backend/dbiset.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	headerutil.lo header.lo headerfmt.lo rpmdb.lo fprint.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	tagname.lo rpmtd.lo cpio.lo depends.lo order.lo formats.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	tagexts.lo fsm.lo manifest.lo package.lo poptALL.lo poptI.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	poptQV.lo psm.lo query.lo rpmal.lo rpmchecksig.lo rpmds.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	rpmfi.lo rpmgi.lo rpminstall.lo rpmlead.lo rpmps.lo rpmprob.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	rpmrc.lo rpmte.lo rpmts.lo rpmfs.lo rpmvercmp.lo signature.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	transaction.lo verify.lo rpmlock.lo relocation.lo rpmscript.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	rpmchroot.lo rpmplugins.lo rpmug.lo rpmtriggers.lo rpmvs.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	$(am__objects_1) $(am__objects_2) $(am__objects_3)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+@LMDB_TRUE@am__objects_4 = backend/lmdb.lo
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+am_librpm_la_OBJECTS = backend/dbi.lo backend/dbiset.lo headerutil.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	header.lo headerfmt.lo rpmdb.lo fprint.lo tagname.lo rpmtd.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	cpio.lo depends.lo order.lo formats.lo tagexts.lo fsm.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	manifest.lo package.lo poptALL.lo poptI.lo poptQV.lo psm.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	query.lo rpmal.lo rpmchecksig.lo rpmds.lo rpmfi.lo rpmgi.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	rpminstall.lo rpmlead.lo rpmps.lo rpmprob.lo rpmrc.lo rpmte.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	rpmts.lo rpmfs.lo rpmvercmp.lo signature.lo transaction.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	verify.lo rpmlock.lo relocation.lo rpmscript.lo rpmchroot.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	rpmplugins.lo rpmug.lo rpmtriggers.lo rpmvs.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	$(am__objects_1) $(am__objects_2) $(am__objects_3) \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	$(am__objects_4)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 librpm_la_OBJECTS = $(am_librpm_la_OBJECTS)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 AM_V_lt = $(am__v_lt_@AM_V@)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
Lucio Andrés Illanes Albornoz 4e7f2a
@@ -596,18 +601,18 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	-DLOCALSTATEDIR="\"$(localstatedir)\"" \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	-DLIBRPMALIAS_FILENAME="\"rpmpopt-${VERSION}\"" \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	-DLIBRPMALIAS_EXECPATH="\"$(bindir)\"" $(am__append_1) \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	$(am__append_7)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	$(am__append_8)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 usrlibdir = $(libdir)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-CLEANFILES = $(am__append_10) $(BUILT_SOURCES)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+CLEANFILES = $(am__append_11) $(BUILT_SOURCES)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 EXTRA_DIST = gentagtbl.sh tagtbl.C rpmhash.C rpmhash.H
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 usrlib_LTLIBRARIES = librpm.la
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-librpm_la_SOURCES = backend/db3.c backend/dbi.c backend/dbi.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	backend/dbiset.c backend/dbiset.h headerutil.c header.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	headerfmt.c header_internal.h rpmdb.c rpmdb_internal.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	fprint.c fprint.h tagname.c rpmtd.c cpio.c cpio.h depends.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	order.c formats.c tagexts.c fsm.c fsm.h manifest.c manifest.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	package.c poptALL.c poptI.c poptQV.c psm.c query.c rpmal.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	rpmal.h rpmchecksig.c rpmds.c rpmds_internal.h rpmfi.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+librpm_la_SOURCES = backend/dbi.c backend/dbi.h backend/dbiset.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	backend/dbiset.h headerutil.c header.c headerfmt.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	header_internal.h rpmdb.c rpmdb_internal.h fprint.c fprint.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	tagname.c rpmtd.c cpio.c cpio.h depends.c order.c formats.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	tagexts.c fsm.c fsm.h manifest.c manifest.h package.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	poptALL.c poptI.c poptQV.c psm.c query.c rpmal.c rpmal.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	rpmchecksig.c rpmds.c rpmds_internal.h rpmfi.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	rpmfi_internal.h rpmgi.h rpmgi.c rpminstall.c rpmts_internal.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	rpmlead.c rpmlead.h rpmps.c rpmprob.c rpmrc.c rpmte.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	rpmte_internal.h rpmts.c rpmfs.h rpmfs.c rpmvercmp.c \
Lucio Andrés Illanes Albornoz 4e7f2a
@@ -615,11 +620,12 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	rpmlock.h misc.h relocation.c rpmscript.h rpmscript.c \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	rpmchroot.c rpmchroot.h rpmplugins.c rpmplugins.h rpmplugin.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	rpmug.c rpmug.h rpmtriggers.h rpmtriggers.c rpmvs.c rpmvs.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	$(am__append_3) $(am__append_6) $(am__append_9)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	$(am__append_3) $(am__append_4) $(am__append_7) \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	$(am__append_10)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 librpm_la_LDFLAGS = -version-info $(rpm_version_info)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 librpm_la_LIBADD = $(top_builddir)/rpmio/librpmio.la @WITH_POPT_LIB@ \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 	@WITH_CAP_LIB@ @WITH_ACL_LIB@ @LIBINTL@ $(am__append_2) \
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-	$(am__append_4) $(am__append_5) $(am__append_8)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+	$(am__append_5) $(am__append_6) $(am__append_9)
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 BUILT_SOURCES = tagtbl.C
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 # XXX watchout, $(top_builddir)/db3/libdb.la created by this Makefile may surprise
Lucio Andrés Illanes Albornoz 4e7f2a
--- rpm-4.14.2.1/macros.in.orig	2018-10-22 09:22:55.901485593 +0000
Lucio Andrés Illanes Albornoz 4e7f2a
+++ rpm-4.14.2.1/macros.in	2019-06-26 17:43:25.432000000 +0000
Lucio Andrés Illanes Albornoz 4e7f2a
@@ -621,7 +621,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 # lmdb Lightning Memory-mapped Database
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 # ndb new data base format
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 #
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
-%_db_backend	      bdb
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+%_db_backend	      lmdb
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 #
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 #	Macros used to configure Berkley db parameters.
Lucio Andrés Illanes Albornoz 4e7f2a
--- rpm-4.14.2.1/rpmio/digest_openssl.c.orig	2018-09-13 12:52:37.324274216 +0000
Lucio Andrés Illanes Albornoz 4e7f2a
+++ rpm-4.14.2.1/rpmio/digest_openssl.c	2019-06-26 17:43:25.432000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 64e589
@@ -175,8 +175,10 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
     case PGPHASHALGO_RIPEMD160:
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
         return EVP_ripemd160();
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 64e589
+#ifndef LIBRESSL_VERSION_NUMBER
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
     case PGPHASHALGO_MD2:
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
         return EVP_md2();
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
 
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
     case PGPHASHALGO_SHA256:
Lucio Andrés Illanes Albornoz (arab, vxp) 13930e
         return EVP_sha256();