mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
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: 29d274e3ec
Fixes: https://github.com/gentoo/gentoo/pull/34771
Closes: https://bugs.gentoo.org/947256
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user