package/systemd: bump version to 243
RFC PATCH 1/1 package/systemd: bump version to 243
Added config option for new systemd-pstore feature.
Removed patches that have been committed upstream.
Added symlinks required to enable some services.
After extensive discussion with upstream it does not seem there is any acceptable option to have symlink installation handled on their side.
The recommended solution from upstream is to have systemctl handle service installation, however this has a number of downsides such as requiring us to build a host-systemd just to install a few symlinks.
Since we already customize service installation it is simpler for us to create the symlinks ourselves, this will also simplify service customization on our side as we will not need to disable any systemd default services in cases where we need to make customizations.
In addition using systemctl would introduce a minimum host headers dependency in which we don't have the infrastructure to handle properly.
The downside to this approach is that we need to track service creation changes from upstream ourselves, however this is relatively straightforward and since upstream service file locations are relatively stable regressions should be limited. This will mostly be a concern in regards to adding support for new systemd features.
Details:
https://github.com/systemd/systemd/issues/12767
https://github.com/systemd/systemd/pull/12164
https://github.com/systemd/systemd/pull/12769
https://github.com/systemd/systemd/pull/12775
---
Sending this based on top of current systemd master which is in the release candidate stage for v243. Hopefully anything that needs to be sent upstream can be caught here before v243 final.
--- .../0001-install-don-t-use-ln-relative.patch | 26 +-- ...age-paths-longer-than-BUS_PATH_SIZE_.patch | 53 ----- ...ry-strings-to-hold-dbus-paths-on-the.patch | 194 ------------------ ...drop-misplaced-Wl-undefined-argument.patch | 51 ----- package/systemd/Config.in | 10 + package/systemd/systemd.hash | 2 +- package/systemd/systemd.mk | 90 +++++++- 7 files changed, 109 insertions(+), 317 deletions(-) delete mode 100644 package/systemd/0002-Refuse-dbus-message-paths-longer-than-BUS_PATH_SIZE_.patch delete mode 100644 package/systemd/0003-Allocate-temporary-strings-to-hold-dbus-paths-on-the.patch delete mode 100644 package/systemd/0004-meson-drop-misplaced-Wl-undefined-argument.patch
package/systemd/0001-install-don-t-use-ln-relative.patch +13 -13
@@ -1,4 +1,4 @@ -From 7f4a12d25bbb5859d266f32f7a3d794bb62c354e Mon Sep 17 00:00:00 2001 +From 006b1d65fd5ea6555fcb72054ecc20234f4175db Mon Sep 17 00:00:00 2001 From: Adam Duskett <[email protected]> Date: Sun, 31 Dec 2017 12:46:04 -0500 Subject: [PATCH] install: don't use ln --relative
@@ -30,10 +30,10 @@ Signed-off-by: Trent Piepho <[email protected]> 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build -index 04331dd41..359042c04 100644 +index e5ceb1e169..9d3c746da4 100644 --- a/meson.build +++ b/meson.build -@@ -628,7 +628,7 @@ endforeach +@@ -580,7 +580,7 @@ endforeach conf.set_quoted('TELINIT', get_option('telinit-path')) if run_command('ln', '--relative', '--help').returncode() != 0
@@ -43,32 +43,32 @@ index 04331dd41..359042c04 100644 ############################################################ diff --git a/tools/meson-make-symlink.sh b/tools/meson-make-symlink.sh -index 501cd43d4..25e7f89fd 100755 +index da0d13a341..4917eff7d1 100755 --- a/tools/meson-make-symlink.sh +++ b/tools/meson-make-symlink.sh @@ -8,5 +8,6 @@ mkdir -vp "$(dirname "${DESTDIR:-}$2")" if [ "$(dirname $1)" = . ]; then - ln -vfs -T "$1" "${DESTDIR:-}$2" + ln -vfs -T "$1" "${DESTDIR:-}$2" else -- ln -vfs -T --relative "${DESTDIR:-}$1" "${DESTDIR:-}$2" -+ dds="$( dirname "$2" |sed -r -e 's:/+[^/]+:../:g; s:/$::' )" -+ ln -vfs -T "${dds}$1" "${DESTDIR:-}$2" +- ln -vfs -T --relative "${DESTDIR:-}$1" "${DESTDIR:-}$2" ++ dds="$( dirname "$2" |sed -r -e 's:/+[^/]+:../:g; s:/$::' )" ++ ln -vfs -T "${dds}$1" "${DESTDIR:-}$2" fi diff --git a/units/meson-add-wants.sh b/units/meson-add-wants.sh -index 70f7172ae..bb8155075 100755 +index a483d75b86..4642673d98 100755 --- a/units/meson-add-wants.sh +++ b/units/meson-add-wants.sh @@ -14,7 +14,7 @@ case "$target" in - ;; + ;; esac -unitpath="${DESTDIR:-}${unitdir}/${unit}" +unitpath="${unitdir}/${unit}" case "$target" in - */) + */) @@ -25,4 +25,6 @@ case "$target" in - ;; + ;; esac -ln -vfs --relative "$unitpath" "$dir"
@@ -76,5 +76,5 @@ index 70f7172ae..bb8155075 100755 +dds="$(printf "%s" "${linkdir#${DESTDIR:-}}" |sed -r -e 's:/+[^/]+:../:g; s:/$::')" +ln -vfs "$dds$unitpath" "$dir" -- -2.14.4 +2.20.1
package/systemd/0002-Refuse-dbus-message-paths-longer-than-BUS_PATH_SIZE_.patch deleted +0 -53
53 lines not on this page · raw message
package/systemd/0003-Allocate-temporary-strings-to-hold-dbus-paths-on-the.patch deleted +0 -194
194 lines not on this page · raw message
package/systemd/0004-meson-drop-misplaced-Wl-undefined-argument.patch deleted +0 -51
51 lines not on this page · raw message
package/systemd/Config.in +10 -0
@@ -161,6 +161,16 @@ config BR2_PACKAGE_SYSTEMD_COREDUMP http://www.freedesktop.org/software/systemd/man/systemd-coredump.html +config BR2_PACKAGE_SYSTEMD_PSTORE + bool "enable pstore support" + default y + help + When this features is enabled, additional tools and services + are built to support archiving contents of the persistent + storage filesytem. + + https://www.freedesktop.org/software/systemd/man/systemd-pstore.html + config BR2_PACKAGE_SYSTEMD_FIRSTBOOT bool "enable firstboot support" help
package/systemd/systemd.hash +1 -1
@@ -1,5 +1,5 @@ # sha256 locally computed -sha256 b2561a8e1d10a2c248253f0dda31a85dd6d69f2b54177de55e02cd1d2778316e systemd-241.tar.gz +sha256 d3dc134a53e13d7f1e6a9e890b16588dccfcac7c5d2d90c37e5653f14b9ca495 systemd-10b1d42e579ae1ca6e022b61c3e5a44e1f3f2b80.tar.gz sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 LICENSE.GPL2 sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 LICENSE.LGPL2.1 sha256 d9356b277440f21730426592c27170d034a39954ab5154dfba1cc3cbf7b22935 README
package/systemd/systemd.mk +85 -5
169 lines not on this page · raw message
Signature · 1 line
2.20.1