aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2025-01-14 11:20:28 +0100
committerDan Williams <dan@bigw.org>2025-01-23 02:36:31 +0000
commit907f7a2813c2f2e424a466b5c2544ea4f60a71cf (patch)
tree2251232ac0792aa5b97e5581b6d894dec1ed10c7
parent4e31b7fdda9f341f3d9f1e9d6c8fc9e2ba27bafd (diff)
Specify a path to the ITS rules
Use our own ITS rules found under data/its. This resolves a configuration breakage on some systems: msgfmt: cannot locate ITS rules for data/org.freedesktop.ModemManager1.policy.in According to the msgfmt manual, we need to specify a path to the parent directory containing its folder. Hence, we add a path to data as the data_dirs option.
-rw-r--r--data/meson.build1
-rw-r--r--meson.build1
2 files changed, 2 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build
index 89bf68f4..e09ea45a 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -58,6 +58,7 @@ if enable_polkit
),
output: '@BASENAME@',
po_dir: po_dir,
+ data_dirs: [data_dir],
install: true,
install_dir: polkit_gobject_policydir,
)
diff --git a/meson.build b/meson.build
index 4cbe0a6b..98e5f5f5 100644
--- a/meson.build
+++ b/meson.build
@@ -63,6 +63,7 @@ build_root = meson.current_build_dir()
build_aux_dir = source_root / 'build-aux'
templates_dir = source_root / 'build-aux/templates'
po_dir = source_root / 'po'
+data_dir = source_root / 'data'
src_dir = source_root / 'src'
plugins_dir = source_root / 'src/plugins'