-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1265 from etungsten/systemd-247-dbus-broker-25
Update to systemd v247 and dbus-broker 26
- Loading branch information
Showing
7 changed files
with
152 additions
and
37 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
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
77 changes: 77 additions & 0 deletions
77
packages/systemd/9007-pkg-config-make-prefix-overridable-again.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,77 @@ | ||
From c5bda93ca9c502ff982323a1645b55f37a88e9b9 Mon Sep 17 00:00:00 2001 | ||
From: Jan Tojnar <jtojnar@gmail.com> | ||
Date: Sat, 2 Jan 2021 02:46:33 +0100 | ||
Subject: [PATCH] pkg-config: make prefix overridable again | ||
|
||
While we don't support prefix being != /usr, and this is hardcoded | ||
all over the place, variables in pkg-config file are expected | ||
to have overridable base directory. | ||
|
||
This is important for at least the following two use cases: | ||
|
||
- Installing projects to non-FHS package-specific prefixes for Nix-style | ||
package managers. Of course, it is then their responsibility | ||
to ensure systemd can find the service files. | ||
- Installing to local path for development purposes. | ||
This is a compromise between running a program from a build directory, | ||
and running it fully installed to system prefix. | ||
|
||
You will not want to write to system prefix in either case. | ||
|
||
For more information, see also | ||
https://www.bassi.io/articles/2018/03/15/pkg-config-and-paths/ | ||
|
||
Fixes https://github.com/systemd/systemd/issues/18082 | ||
|
||
Partially reverts 6e65df89c348242dbd10036abc7dd5e8181cf733 | ||
--- | ||
src/core/systemd.pc.in | 10 +++++----- | ||
1 file changed, 5 insertions(+), 5 deletions(-) | ||
|
||
diff --git a/src/core/systemd.pc.in b/src/core/systemd.pc.in | ||
index f2c045511d..b5cc8f94a5 100644 | ||
--- a/src/core/systemd.pc.in | ||
+++ b/src/core/systemd.pc.in | ||
@@ -26,10 +26,10 @@ systemdsystemunitdir=${systemd_system_unit_dir} | ||
systemd_system_preset_dir=${rootprefix}/lib/systemd/system-preset | ||
systemdsystempresetdir=${systemd_system_preset_dir} | ||
|
||
-systemd_user_unit_dir=/usr/lib/systemd/user | ||
+systemd_user_unit_dir=${prefix}/lib/systemd/user | ||
systemduserunitdir=${systemd_user_unit_dir} | ||
|
||
-systemd_user_preset_dir=/usr/lib/systemd/user-preset | ||
+systemd_user_preset_dir=${prefix}/lib/systemd/user-preset | ||
systemduserpresetdir=${systemd_user_preset_dir} | ||
|
||
systemd_system_conf_dir=${sysconfdir}/systemd/system | ||
@@ -47,7 +47,7 @@ systemduserunitpath=${systemd_user_unit_path} | ||
systemd_system_generator_dir=${root_prefix}/lib/systemd/system-generators | ||
systemdsystemgeneratordir=${systemd_system_generator_dir} | ||
|
||
-systemd_user_generator_dir=/usr/lib/systemd/user-generators | ||
+systemd_user_generator_dir=${prefix}/lib/systemd/user-generators | ||
systemdusergeneratordir=${systemd_user_generator_dir} | ||
|
||
systemd_system_generator_path=/run/systemd/system-generators:/etc/systemd/system-generators:/usr/local/lib/systemd/system-generators:${systemd_system_generator_dir} | ||
@@ -62,7 +62,7 @@ systemdsleepdir=${systemd_sleep_dir} | ||
systemd_shutdown_dir=${root_prefix}/lib/systemd/system-shutdown | ||
systemdshutdowndir=${systemd_shutdown_dir} | ||
|
||
-tmpfiles_dir=/usr/lib/tmpfiles.d | ||
+tmpfiles_dir=${prefix}/lib/tmpfiles.d | ||
tmpfilesdir=${tmpfiles_dir} | ||
|
||
sysusers_dir=${rootprefix}/lib/sysusers.d | ||
@@ -77,7 +77,7 @@ binfmtdir=${binfmt_dir} | ||
modules_load_dir=${rootprefix}/lib/modules-load.d | ||
modulesloaddir=${modules_load_dir} | ||
|
||
-catalog_dir=/usr/lib/systemd/catalog | ||
+catalog_dir=${prefix}/lib/systemd/catalog | ||
catalogdir=${catalog_dir} | ||
|
||
system_uid_max=@SYSTEM_UID_MAX@ | ||
-- | ||
2.17.1 | ||
|
28 changes: 28 additions & 0 deletions
28
packages/systemd/9008-pkg-config-stop-hardcoding-prefix-to-usr.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 e59f3c3ac5a7939573e8562655e5ad9c933af9c7 Mon Sep 17 00:00:00 2001 | ||
From: Erikson Tung <etung@amazon.com> | ||
Date: Wed, 27 Jan 2021 14:43:47 -0800 | ||
Subject: [PATCH] pkg-config: stop hardcoding prefix to /usr | ||
|
||
While we ensure /usr points to the sys-root at runtime, for Bottlerocket's | ||
packaging we need to be careful to avoid dependencies on the host OS so | ||
the prefix needs to be configurable. | ||
--- | ||
src/core/systemd.pc.in | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/core/systemd.pc.in b/src/core/systemd.pc.in | ||
index b5cc8f94a5..ec4992b798 100644 | ||
--- a/src/core/systemd.pc.in | ||
+++ b/src/core/systemd.pc.in | ||
@@ -11,7 +11,7 @@ | ||
# considered deprecated (though there is no plan to remove them). New names | ||
# shall have underscores. | ||
|
||
-prefix=/usr | ||
+prefix=@prefix@ | ||
root_prefix=@rootprefix_noslash@ | ||
rootprefix=${root_prefix} | ||
sysconf_dir=@sysconfdir@ | ||
-- | ||
2.17.1 | ||
|
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