commit 7f01416d06a257ce15e0ea468e836d4fdcd891ca
Author: Jan RÄ™korajski <[email protected]>
Date:   Sun Nov 15 10:32:40 2020 +0100

    - add cpuinfo() deps support for rpm.org
    - disable directory dependencies for rpm.org, unsupported by rpm

 poldek.spec             |  2 ++
 rpm4-cpuinfo-deps.patch | 12 ++++++++++++
 rpm4-no-dir-deps.patch  | 21 +++++++++++++++++++++
 3 files changed, 35 insertions(+)
---
diff --git a/poldek.spec b/poldek.spec
index 8a95580..0ccd232 100644
--- a/poldek.spec
+++ b/poldek.spec
@@ -61,6 +61,8 @@ Patch6:               rpm-4.15.patch
 Patch7:                db-index-format.patch
 Patch8:                rpm4-uname-deps.patch
 Patch9:                sqlite-rpmdb.patch
+Patch10:       rpm4-cpuinfo-deps.patch
+Patch11:       rpm4-no-dir-deps.patch
 URL:           http://poldek.pld-linux.org/
 BuildRequires: %{db_pkg}-devel >= %{ver_db}
 BuildRequires: autoconf >= 2.63
diff --git a/rpm4-cpuinfo-deps.patch b/rpm4-cpuinfo-deps.patch
new file mode 100644
index 0000000..feab6a8
--- /dev/null
+++ b/rpm4-cpuinfo-deps.patch
@@ -0,0 +1,12 @@
+--- poldek-0.42.2/pm/rpmorg/misc.c~    2020-11-01 10:27:32.000000000 +0100
++++ poldek-0.42.2/pm/rpmorg/misc.c     2020-11-15 10:30:02.296719845 +0100
+@@ -79,6 +79,9 @@
+ #ifdef HAVE_RPMDSUNAME
+         (rpmcap_fn)rpmdsUname,
+ #endif
++#ifdef HAVE_RPMDSCPUINFO
++        (rpmcap_fn)rpmdsCpuinfo,
++#endif
+         NULL,
+     };
+ 
diff --git a/rpm4-no-dir-deps.patch b/rpm4-no-dir-deps.patch
new file mode 100644
index 0000000..ae6db7d
--- /dev/null
+++ b/rpm4-no-dir-deps.patch
@@ -0,0 +1,21 @@
+--- poldek-0.42.2/pm/rpmorg/Makefile.am~       2020-01-25 23:03:28.000000000 
+0100
++++ poldek-0.42.2/pm/rpmorg/Makefile.am        2020-11-15 10:28:44.040052400 
+0100
+@@ -8,7 +8,6 @@
+ libpm_rpm_la_SOURCES =                        \
+       mod.c                           \
+       rpmdb_it.c                      \
+-      rpmdb_depdirs.c                 \
+       install.c                       \
+       signature.c                     \
+       misc.c                          \
+--- poldek-0.42.2/pm/rpmorg/mod.c~     2020-01-25 22:59:59.000000000 +0100
++++ poldek-0.42.2/pm/rpmorg/mod.c      2020-11-15 10:28:21.190049426 +0100
+@@ -26,7 +26,7 @@
+     pm_rpm_satisfies,
+     pm_rpm_dbpath, 
+     pm_rpm_dbmtime,
+-    pm_rpm_dbdepdirs,
++    NULL,                       /* pm_rpm_dbdepdirs */
+     
+ (void *(*)(void *, void *, const char *, const char *, mode_t, tn_hash 
*))pm_rpm_opendb,
+     (void (*)(void *))pm_rpm_closedb,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/poldek.git/commitdiff/7f01416d06a257ce15e0ea468e836d4fdcd891ca

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to