-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd: patch meson build file for environmentd generator to include…
… missing conditional
- Loading branch information
1 parent
ff0f85a
commit 504cb88
Showing
4 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...os-specific/linux/systemd/0020-environment-d-generator-conditionally-install-files-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Jared Baur <[email protected]> | ||
Date: Thu, 23 Jan 2025 12:29:57 -0800 | ||
Subject: [PATCH] environment-d-generator: conditionally install files into | ||
sysconfdir | ||
|
||
Make environment-d-generator respect the `install-sysconfdir` meson | ||
option. | ||
--- | ||
src/environment-d-generator/meson.build | 8 +++++--- | ||
1 file changed, 5 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/src/environment-d-generator/meson.build b/src/environment-d-generator/meson.build | ||
index cc41b6b334..de16b0cfae 100644 | ||
--- a/src/environment-d-generator/meson.build | ||
+++ b/src/environment-d-generator/meson.build | ||
@@ -13,6 +13,8 @@ executables += [ | ||
] | ||
|
||
install_emptydir(environmentdir) | ||
-meson.add_install_script(sh, '-c', | ||
- ln_s.format(sysconfdir / 'environment', | ||
- environmentdir / '99-environment.conf')) | ||
+if install_sysconfdir | ||
+ meson.add_install_script(sh, '-c', | ||
+ ln_s.format(sysconfdir / 'environment', | ||
+ environmentdir / '99-environment.conf')) | ||
+endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters