+++ /dev/null
---- src/probes/linux/rpmdb.h.old 2010-10-22 15:16:49.000000000 +0200
-+++ src/probes/linux/rpmdb.h 2010-10-22 15:22:09.000000000 +0200
-@@ -8,8 +8,8 @@
- */
-
- #include <assert.h>
--#include "rpmlib.h"
--#include "rpmsw.h"
-+/*#include <rpmlib.h>
-+#include <rpmsw.h>*/
- #include "db.h"
-
- /*@-exportlocal@*/
-@@ -508,7 +508,7 @@
- * @param opx per-rpmdb accumulator index (aka rpmtsOpX)
- * @return per-rpmdb accumulator pointer
- */
--void * dbiStatsAccumulator(dbiIndex dbi, int opx)
-+rpmop_s * dbiStatsAccumulator(dbiIndex dbi, int opx)
- /*@*/;
-
- #if !defined(SWIG)
-@@ -576,7 +576,7 @@
- /*@globals fileSystem, internalState @*/
- /*@modifies dbi, *dbcursor, fileSystem, internalState @*/
- {
-- void * sw = dbiStatsAccumulator(dbi, 16); /* RPMTS_OP_DBDEL */
-+ rpmop_s *sw = dbiStatsAccumulator(dbi, 16); /* RPMTS_OP_DBDEL */
- int rc;
- assert(key->data != NULL && key->size > 0);
- (void) rpmswEnter(sw, 0);
-@@ -600,7 +600,7 @@
- /*@globals fileSystem, internalState @*/
- /*@modifies dbi, *dbcursor, *key, *data, fileSystem, internalState @*/
- {
-- void * sw = dbiStatsAccumulator(dbi, 14); /* RPMTS_OP_DBGET */
-+ rpmop_s * sw = dbiStatsAccumulator(dbi, 14); /* RPMTS_OP_DBGET */
- int rc;
- assert((flags == DB_NEXT) || (key->data != NULL && key->size > 0));
- (void) rpmswEnter(sw, 0);
-@@ -625,7 +625,7 @@
- /*@globals fileSystem, internalState @*/
- /*@modifies dbi, *dbcursor, *key, *pkey, *data, fileSystem, internalState @*/
- {
-- void * sw = dbiStatsAccumulator(dbi, 14); /* RPMTS_OP_DBGET */
-+ rpmop_s * sw = dbiStatsAccumulator(dbi, 14); /* RPMTS_OP_DBGET */
- int rc;
- assert((flags == DB_NEXT) || (key->data != NULL && key->size > 0));
- (void) rpmswEnter(sw, 0);
-@@ -649,7 +649,7 @@
- /*@globals fileSystem, internalState @*/
- /*@modifies dbi, *dbcursor, *key, fileSystem, internalState @*/
- {
-- void * sw = dbiStatsAccumulator(dbi, 15); /* RPMTS_OP_DBPUT */
-+ rpmop_s * sw = dbiStatsAccumulator(dbi, 15); /* RPMTS_OP_DBPUT */
- int rc;
- assert(key->data != NULL && key->size > 0 && data->data != NULL && data->size > 0);
- (void) rpmswEnter(sw, 0);
+++ /dev/null
---- src/probes/linux/RPMInfoProbe.h.old 2010-10-22 15:12:50.000000000 +0200
-+++ src/probes/linux/RPMInfoProbe.h 2010-10-22 15:13:02.000000000 +0200
-@@ -36,7 +36,7 @@
- #include <rpm/rpmlib.h>\r
- #include <rpm/rpmio.h>\r
- #include <rpm/rpmts.h>\r
--#include <rpm/rpmdb.h>\r
-+#include "rpmdb.h"\r
- #include <rpm/header.h>\r
- #include <rpm/rpmcli.h> // added for rpm query function\r
- #include <rpm/rpmds.h> // added for rpm query function\r
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="acl ldap rpm selinux"
+IUSE="acl ldap selinux"
CDEPEND="dev-libs/libgcrypt:0
dev-libs/libpcre
sys-apps/util-linux
sys-libs/libcap
acl? ( sys-apps/acl )
- ldap? ( net-nds/openldap )
- rpm? ( app-arch/rpm )"
+ ldap? ( net-nds/openldap )"
DEPEND="${CDEPEND}
sys-apps/sed"
RDEPEND="${CDEPEND}
sed -i 's, -lacl , ,' project/linux/Makefile || die
fi
- # rpm probes support is build dependant only on the presence of the rpm binary
- if use rpm ; then
- #Same problems as bug 274679, so i do a local copy of the header and patch it
- cp /usr/include/rpm/rpmdb.h src/probes/linux/ || die
- epatch "${FILESDIR}"/use_local_rpmdb.patch
- epatch "${FILESDIR}"/rpmdb.patch
- else
- einfo "Disabling rpm probes"
- sed -i 's/^PACKAGE_RPM/#PACKAGE_RPM/' project/linux/Makefile || die
- fi
+ einfo "Disabling rpm probes"
+ sed -i 's/^PACKAGE_RPM/#PACKAGE_RPM/' project/linux/Makefile || die
+
# same thing for dpkg, but package dpkg is not sufficient, needs app-arch/apt-pkg that is not on tree
einfo "Disabling dpkg probes"
sed -i 's/^PACKAGE_DPKG/#PACKAGE_DPKG/' project/linux/Makefile || die