summaryrefslogtreecommitdiff
blob: d96b4bc4bde1fd026d3a25aacdc9f6466a177490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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