From: Mike Gilbert Date: Sun, 3 May 2020 02:44:25 +0000 (-0400) Subject: app-arch/rpm: don't call python-any-r1_pkg_setup when python is disabled X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bd7ed43b52f382e6dd7efa4ffd7e1fcc8b46fcdb;p=gentoo.git app-arch/rpm: don't call python-any-r1_pkg_setup when python is disabled Closes: https://bugs.gentoo.org/720754 Signed-off-by: Mike Gilbert --- diff --git a/app-arch/rpm/rpm-4.14.1.ebuild b/app-arch/rpm/rpm-4.14.1.ebuild index a0b7fb616cf5..e611ac291b4c 100644 --- a/app-arch/rpm/rpm-4.14.1.ebuild +++ b/app-arch/rpm/rpm-4.14.1.ebuild @@ -49,6 +49,10 @@ RDEPEND="${CDEPEND} selinux? ( sec-policy/selinux-rpm ) " +pkg_setup() { + use python && python-single-r1_pkg_setup +} + src_prepare() { eapply "${FILESDIR}"/${PN}-4.11.0-autotools.patch eapply "${FILESDIR}"/${PN}-4.8.1-db-path.patch