mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
sys-auth/polkit: fix install w/ USE=-daemon
Closes: https://bugs.gentoo.org/884701 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
39
sys-auth/polkit/files/polkit-122-libs-only-postinstall.patch
Normal file
39
sys-auth/polkit/files/polkit-122-libs-only-postinstall.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/149
|
||||
|
||||
From bef75fb8291b3871894d8ffe19f7242448cdb4a8 Mon Sep 17 00:00:00 2001
|
||||
From: Sam James <sam@gentoo.org>
|
||||
Date: Wed, 7 Dec 2022 13:18:09 +0000
|
||||
Subject: [PATCH] meson.build: fix install with libs_only
|
||||
|
||||
Bug: https://bugs.gentoo.org/884701
|
||||
Signed-off-by: Sam James <sam@gentoo.org>
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -360,14 +360,17 @@ configure_file(
|
||||
configuration: config_h,
|
||||
)
|
||||
|
||||
-meson.add_install_script(
|
||||
- 'meson_post_install.py',
|
||||
- get_option('bindir'),
|
||||
- pk_pkgdatadir,
|
||||
- pk_libprivdir,
|
||||
- pk_pkgsysconfdir,
|
||||
- polkitd_user,
|
||||
-)
|
||||
+
|
||||
+if not libs_only
|
||||
+ meson.add_install_script(
|
||||
+ 'meson_post_install.py',
|
||||
+ get_option('bindir'),
|
||||
+ pk_pkgdatadir,
|
||||
+ pk_libprivdir,
|
||||
+ pk_pkgsysconfdir,
|
||||
+ polkitd_user,
|
||||
+ )
|
||||
+endif
|
||||
|
||||
output = '\n ' + meson.project_name() + ' ' + meson.project_version() + '\n'
|
||||
output += ' ============\n\n'
|
||||
--
|
||||
GitLab
|
||||
@@ -85,7 +85,12 @@ DOCS=( docs/TODO HACKING.md NEWS.md README.md )
|
||||
|
||||
QA_MULTILIB_PATHS="
|
||||
usr/lib/polkit-1/polkit-agent-helper-1
|
||||
usr/lib/polkit-1/polkitd"
|
||||
usr/lib/polkit-1/polkitd
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-122-libs-only-postinstall.patch
|
||||
)
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
|
||||
|
||||
Reference in New Issue
Block a user