Skip to contentSkip to conversation

package/systemd: bump version to 242

PATCH Superseded James Hilliard 3 participants 5 messages Jun 1, 2019 – Jun 11, 2019 Arm/Amlogic Meson SoC support

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/systemd: bump version to 242

Removed patches that have been committed upstream.

---
 ...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/systemd.hash                  |   2 +-
 package/systemd/systemd.mk                    |   2 +-
 5 files changed, 2 insertions(+), 300 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/0002-Refuse-dbus-message-paths-longer-than-BUS_PATH_SIZE_.patch deleted +0 -53
deleted file mode 100644
index 2de3b71b5c..0000000000
@@ -1,53 +0,0 @@
-From febef5e18558c114f4fb7c94f6c8ed3520c50cdf Mon Sep 17 00:00:00 2001
-From: Riccardo Schirone <[email protected]>
-Date: Mon, 4 Feb 2019 14:29:09 +0100
-Subject: [PATCH] Refuse dbus message paths longer than BUS_PATH_SIZE_MAX
- limit.
-
-Even though the dbus specification does not enforce any length limit on the
-path of a dbus message, having to analyze too long strings in PID1 may be
-time-consuming and it may have security impacts.
-
-In any case, the limit is set so high that real-life applications should not
-have a problem with it.
-
-(cherry picked from commit 61397a60d98e368a5720b37e83f3169e3eb511c4)
-Signed-off-by: Baruch Siach <[email protected]>
----
-Upstream status: commit 61397a60d98
-
- src/libsystemd/sd-bus/bus-internal.c | 2 +-
- src/libsystemd/sd-bus/bus-internal.h | 4 ++++
- 2 files changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/src/libsystemd/sd-bus/bus-internal.c b/src/libsystemd/sd-bus/bus-internal.c
-index 40acae213381..598b7f110c73 100644
---- a/src/libsystemd/sd-bus/bus-internal.c
-+++ b/src/libsystemd/sd-bus/bus-internal.c
-@@ -43,7 +43,7 @@ bool object_path_is_valid(const char *p) {
-         if (slash)
-                 return false;
- 
--        return true;
-+        return (q - p) <= BUS_PATH_SIZE_MAX;
- }
- 
- char* object_path_startswith(const char *a, const char *b) {
-diff --git a/src/libsystemd/sd-bus/bus-internal.h b/src/libsystemd/sd-bus/bus-internal.h
-index f208b294d8f1..a8d61bf72a4e 100644
---- a/src/libsystemd/sd-bus/bus-internal.h
-+++ b/src/libsystemd/sd-bus/bus-internal.h
-@@ -332,6 +332,10 @@ struct sd_bus {
- 
- #define BUS_MESSAGE_SIZE_MAX (128*1024*1024)
- #define BUS_AUTH_SIZE_MAX (64*1024)
-+/* Note that the D-Bus specification states that bus paths shall have no size limit. We enforce here one
-+ * anyway, since truly unbounded strings are a security problem. The limit we pick is relatively large however,
-+ * to not clash unnecessarily with real-life applications. */
-+#define BUS_PATH_SIZE_MAX (64*1024)
- 
- #define BUS_CONTAINER_DEPTH 128
- 
--- 
-2.20.1
-
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/systemd.hash +1 -1
index c769d48959..b3c5e4c64f 100644
@@ -1,5 +1,5 @@
 # sha256 locally computed
-sha256	b2561a8e1d10a2c248253f0dda31a85dd6d69f2b54177de55e02cd1d2778316e  	systemd-241.tar.gz
+sha256	ec22be9a5dd94c9640e6348ed8391d1499af8ca2c2f01109198a414cff6c6cba  	systemd-242.tar.gz
 sha256	ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6	LICENSE.GPL2
 sha256	dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551	LICENSE.LGPL2.1
 sha256	d9356b277440f21730426592c27170d034a39954ab5154dfba1cc3cbf7b22935	README
package/systemd/systemd.mk +1 -1
index edc4a9ecc1..e742cb7e69 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SYSTEMD_VERSION = 241
+SYSTEMD_VERSION = 242
 SYSTEMD_SITE = $(call github,systemd,systemd,v$(SYSTEMD_VERSION))
 SYSTEMD_LICENSE = LGPL-2.1+, GPL-2.0+ (udev), Public Domain (few source files, see README)
 SYSTEMD_LICENSE_FILES = LICENSE.GPL2 LICENSE.LGPL2.1 README
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/systemd: bump version to 242

This is not a simple bump for people who use systemd-networkd (or timesyncd, or resolved, or ...). On a build-from-scratch, these services won't be enabled anymore. A recent change now apparently requires people to run systemctl prepare-all [1] to re-create symlinks which enable these services.

This makes cross-building more complex, so I filed an issue upstream [2].

Cheers,
Jan

[1] https://github.com/systemd/systemd/blob/v242/NEWS#L223
[2] https://github.com/systemd/systemd/issues/12767

#2 lore raw

PATCH 1/1 package/systemd: bump version to 242

Quoted 8 lines · Jan Kundr?t

This is not a simple bump for people who use systemd-networkd (or timesyncd, or resolved, or ...). On a build-from-scratch, these services won't be enabled anymore. A recent change now apparently requires people to run systemctl prepare-all [1] to re-create symlinks which enable these services.

This makes cross-building more complex, so I filed an issue upstream [2].

Hopefully this fixes it:
https://github.com/systemd/systemd/pull/12769

Quoted 6 lines

Cheers,
Jan

[1] https://github.com/systemd/systemd/blob/v242/NEWS#L223
[2] https://github.com/systemd/systemd/issues/12767

#3 lore raw

PATCH 1/1 package/systemd: bump version to 242

Quoted 11 lines · James Hilliard
Quoted 8 lines · Jan Kundr?t

This is not a simple bump for people who use systemd-networkd (or timesyncd, or resolved, or ...). On a build-from-scratch, these services won't be enabled anymore. A recent change now apparently requires people to run systemctl prepare-all [1] to re-create symlinks which enable these services.

This makes cross-building more complex, so I filed an issue upstream [2].

Hopefully this fixes it:
https://github.com/systemd/systemd/pull/12769

I actually agree with the analysis made upstream, that it's better to call
systemctl --root=/path/to/it preset-all rather than maintaining two code paths that do the same thing. Yes, it means we need to build a minimal host-systemd to get systemctl, but I don't see that as a big showstopper.

Regards,
Arnout

Quoted 11 lines
Quoted 6 lines

Cheers,
Jan

[1] https://github.com/systemd/systemd/blob/v242/NEWS#L223
[2] https://github.com/systemd/systemd/issues/12767

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#4 lore raw

PATCH 1/1 package/systemd: bump version to 242

Quoted 12 lines · Arnout Vandecappelle
Quoted 8 lines · James Hilliard
Quoted 7 lines · Jan Kundr?t

This is not a simple bump for people who use systemd-networkd (or timesyncd, or resolved, or ...). On a build-from-scratch, these services won't be enabled anymore. A recent change now apparently requires people to run systemctl prepare-all [1] to re-create symlinks which enable these services.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

This makes cross-building more complex, so I filed an issue upstream [2].

Hopefully this fixes it:
https://github.com/systemd/systemd/pull/12769

I actually agree with the analysis made upstream, that it's better to call
systemctl --root=/path/to/it preset-all rather than maintaining two code paths that do the same thing. Yes, it means we need to build a minimal host-systemd to get systemctl, but I don't see that as a big showstopper.

Yeah, I understand their reasoning, it just seems like overkill for a few symlinks.

The build system may provide a way to do build a systemctl for the host as part of the target build using this:
https://mesonbuild.com/Cross-compilation.html#mixing-host-and-build-targets
Not sure how difficult that would be though.

Quoted 15 lines

Regards,
Arnout

Quoted 11 lines
Quoted 6 lines

Cheers,
Jan

[1] https://github.com/systemd/systemd/blob/v242/NEWS#L223
[2] https://github.com/systemd/systemd/issues/12767

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot