commit:     57c54478ee91f5dd76c0d0a47f93b160bb0b49c3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  7 13:20:34 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec  7 13:20:41 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57c54478

sys-auth/polkit: fix install w/ USE=-daemon

Closes: https://bugs.gentoo.org/884701
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/polkit-122-libs-only-postinstall.patch   | 39 ++++++++++++++++++++++
 sys-auth/polkit/polkit-122.ebuild                  |  7 +++-
 2 files changed, 45 insertions(+), 1 deletion(-)

diff --git a/sys-auth/polkit/files/polkit-122-libs-only-postinstall.patch 
b/sys-auth/polkit/files/polkit-122-libs-only-postinstall.patch
new file mode 100644
index 000000000000..d96b4bc4bde1
--- /dev/null
+++ b/sys-auth/polkit/files/polkit-122-libs-only-postinstall.patch
@@ -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 <s...@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 <s...@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

diff --git a/sys-auth/polkit/polkit-122.ebuild 
b/sys-auth/polkit/polkit-122.ebuild
index 249ac83bdeb0..cb84fcb2f9f2 100644
--- a/sys-auth/polkit/polkit-122.ebuild
+++ b/sys-auth/polkit/polkit-122.ebuild
@@ -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}]" &&

Reply via email to