Blame patches/rpm-4.16.0.local.patch

Lucio Andrés Illanes Albornoz e86515
diff -ru rpm-4.15.1.orig/lib/rpmchroot.c rpm-4.15.1/lib/rpmchroot.c
Lucio Andrés Illanes Albornoz e86515
--- rpm-4.15.1.orig/lib/rpmchroot.c	2019-11-13 10:19:29.309710594 +0100
Lucio Andrés Illanes Albornoz e86515
+++ rpm-4.15.1/lib/rpmchroot.c	2020-01-04 18:36:56.323408444 +0100
Lucio Andrés Illanes Albornoz e86515
@@ -66,7 +66,7 @@
Lucio Andrés Illanes Albornoz e86515
 	setup_map("/proc/self/gid_map", 0, gid);
Lucio Andrés Illanes Albornoz e86515
 	unshared = 1;
Lucio Andrés Illanes Albornoz e86515
     }
Lucio Andrés Illanes Albornoz e86515
-    rpmlog(RPMLOG_DEBUG, "user ns: %d original user %d:%d current %d:%d\n",
Lucio Andrés Illanes Albornoz e86515
+    rpmlog(RPMLOG_DEBUG, "user ns: %d original user %ld:%ld current %ld:%ld\n",
Lucio Andrés Illanes Albornoz e86515
 	    unshared, uid, gid, getuid(), getgid());
Lucio Andrés Illanes Albornoz e86515
 }
Lucio Andrés Illanes Albornoz e86515
 #else
Lucio Andrés Illanes Albornoz e86515
diff -ru rpm-4.15.1.orig/macros.in rpm-4.15.1/macros.in
Lucio Andrés Illanes Albornoz e86515
--- rpm-4.15.1.orig/macros.in	2019-11-13 10:19:29.311710606 +0100
Lucio Andrés Illanes Albornoz e86515
+++ rpm-4.15.1/macros.in	2020-01-04 18:41:36.981113433 +0100
Lucio Andrés Illanes Albornoz e86515
@@ -619,7 +619,7 @@
Lucio Andrés Illanes Albornoz e86515
 # lmdb Lightning Memory-mapped Database
Lucio Andrés Illanes Albornoz e86515
 # ndb new data base format
Lucio Andrés Illanes Albornoz e86515
 #
Lucio Andrés Illanes Albornoz e86515
-%_db_backend	      bdb
Lucio Andrés Illanes Albornoz e86515
+%_db_backend	      ndb
Lucio Andrés Illanes Albornoz e86515
 
Lucio Andrés Illanes Albornoz e86515
 #
Lucio Andrés Illanes Albornoz e86515
 #	Macros used to configure Berkley db parameters.
0cebec
diff -ru rpm-4.16.0.orig/lib/rpmdb.c rpm-4.16.0/lib/rpmdb.c
0cebec
--- rpm-4.16.0.orig/lib/rpmdb.c 2020-05-28 12:04:25.037136686 +0200
0cebec
+++ rpm-4.16.0/lib/rpmdb.c      2020-10-01 19:31:18.944641154 +0200
0cebec
@@ -8,6 +8,7 @@
0cebec
 #include <utime.h>
0cebec
 #include <errno.h>
0cebec
 #include <dirent.h>
0cebec
+#include <fcntl.h>
0cebec
0cebec
 #ifndef        DYING   /* XXX already in "system.h" */
0cebec
 #include <fnmatch.h>