[gnome-settings-daemon/benzea/systemd-3-36] plugins: Mask old target names on non-release builds
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/benzea/systemd-3-36] plugins: Mask old target names on non-release builds
- Date: Fri, 14 Feb 2020 18:10:43 +0000 (UTC)
commit 02e7dfa81a58289c69227bce55a6fb8d25002efd
Author: Benjamin Berg <bberg redhat com>
Date: Fri Feb 14 19:09:10 2020 +0100
plugins: Mask old target names on non-release builds
This means we cannot accidentally start the old targets in case they
exist on the host system. It is solely useful when using jhbuild to run
a test session and is disabled on release builds for that reason.
plugins/meson.build | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/plugins/meson.build b/plugins/meson.build
index b91bae66..656ce5ed 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -161,6 +161,14 @@ foreach plugin: all_plugins
install_dir: systemd_userunitdir
)
+ # Wipe out old target names in non-release builds; this saves a lot
+ # of pain when running a new g-s-d inside jhbuild on an old host
+ # TODO: Should be deleted once we can assume developers have 3.36
+ # installed on their machines.
+ if get_option('buildtype') != 'release'
+ meson.add_install_script('ln', '-vfs', '/dev/null', systemd_userunitdir /
'gsd-@0@.target'.format(plugin_name))
+ endif
+
foreach target: gates_all
meson.add_install_script('meson-add-wants.sh', systemd_userunitdir, target + '.wants/',
user_target)
endforeach
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]