From 73a60ab1ebeea720bdbde5c4f5b3ba1a3ed7cf86 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 30 Dec 2024 19:28:02 -0500 Subject: [PATCH] dev-util/sysprof: fix nastily propagating automagic dep sysprof 45.0 and on introduce a systemd feature (journald integration) which is implemented by depending on libsystemd.so if it is installed at the time of building. https://github.com/GNOME/sysprof/commit/88d0589fea80307fe8d49a9c4f93ef99cb6a5e8b This dependency was never added during the version bump in ::gentoo. It breaks, among other things, binhost caching. Fix by introducing USE=systemd support to this package. We use strong blockers to prevent systemd from even being installed when src_compile'ing with -systemd, since otherwise it genuinely miscompiles. This is probably fine, since people using systemd profiles have USE=systemd by default unless they go out of their way to unset it, and people with non-systemd profiles shouldn't have this USE set at all. (Note that it's fine to install a binpackage built without systemd support, even on a systemd profile.) Straight to stable, the package nastily breaks on openrc systems and the changes are purely to dependency metadata. Fixes: 29d274e3ecdde94273ddd9f247efa9c5e12dab73 Fixes: https://github.com/gentoo/gentoo/pull/34771 Closes: https://bugs.gentoo.org/947256 Signed-off-by: Eli Schwartz --- .../{sysprof-46.0.ebuild => sysprof-46.0-r1.ebuild} | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) rename dev-util/sysprof/{sysprof-46.0.ebuild => sysprof-46.0-r1.ebuild} (95%) diff --git a/dev-util/sysprof/sysprof-46.0.ebuild b/dev-util/sysprof/sysprof-46.0-r1.ebuild similarity index 95% rename from dev-util/sysprof/sysprof-46.0.ebuild rename to dev-util/sysprof/sysprof-46.0-r1.ebuild index 709f8ac2dcfcc..43b8f904cba8b 100644 --- a/dev-util/sysprof/sysprof-46.0.ebuild +++ b/dev-util/sysprof/sysprof-46.0-r1.ebuild @@ -12,7 +12,7 @@ LICENSE="GPL-3+ GPL-2+" API_VERSION="4" SLOT="0/${API_VERSION}" KEYWORDS="amd64 ~arm64 x86" -IUSE="gtk test" +IUSE="gtk systemd test" RESTRICT="!test? ( test )" RDEPEND=" @@ -23,6 +23,7 @@ RDEPEND=" x11-libs/cairo x11-libs/pango ) + systemd? ( sys-apps/systemd ) dev-libs/json-glib >=dev-libs/libdex-0.3.1 >=gui-libs/libpanel-1.3.0 @@ -31,7 +32,10 @@ RDEPEND=" >=dev-util/sysprof-common-${PV} >=dev-util/sysprof-capture-${PV}:${API_VERSION} " -DEPEND="${RDEPEND}" +DEPEND=" + ${RDEPEND} + !systemd? ( !!sys-apps/systemd ) +" BDEPEND=" dev-libs/appstream-glib dev-util/gdbus-codegen