]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- teach poldek about rpmdb in sqlite format
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 1 Nov 2020 09:30:43 +0000 (10:30 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 1 Nov 2020 09:30:43 +0000 (10:30 +0100)
poldek.spec
sqlite-rpmdb.patch [new file with mode: 0644]

index 9db273202845411bd32011b8ebdcc6534b9b17c1..7e812ca86a95c26a98acd87a942f022bb54bbb45 100644 (file)
@@ -60,6 +60,7 @@ Patch5:               %{name}-multiarch-x32.patch
 Patch6:                rpm-4.15.patch
 Patch7:                db-index-format.patch
 Patch8:                rpm4-uname-deps.patch
+Patch9:                sqlite-rpmdb.patch
 URL:           http://poldek.pld-linux.org/
 BuildRequires: %{db_pkg}-devel >= %{ver_db}
 BuildRequires: autoconf >= 2.63
@@ -242,6 +243,7 @@ Moduły języka Python dla poldka.
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 
 %{__rm} doc/poldek.info
 %{__rm} m4/libtool.m4 m4/lt*.m4
diff --git a/sqlite-rpmdb.patch b/sqlite-rpmdb.patch
new file mode 100644 (file)
index 0000000..ffe5eaa
--- /dev/null
@@ -0,0 +1,13 @@
+--- poldek-0.42.2/pm/rpmorg/rpm.c.orig 2020-01-25 22:59:59.000000000 +0100
++++ poldek-0.42.2/pm/rpmorg/rpm.c      2020-11-01 10:11:24.892206997 +0100
+@@ -286,6 +286,10 @@
+     pm_rpm = pm_rpm;
++    char *backend = rpmExpand("%{_db_backend}", NULL);
++    if (backend != NULL && strncmp(backend, "sqlite", 6) == 0) {
++        file = "rpmdb.sqlite";
++    }
+     snprintf(path, sizeof(path), "%s/%s", dbpath, file);
+     if (stat(path, &st) != 0)
This page took 0.178821 seconds and 4 git commands to generate.