Skip to contentSkip to conversation

systemd: bump to version 210.

PATCH New Eric Le Bihan 2 participants 2 messages Mar 17, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: bump to version 210.

This patch bumps systemd to version 210. Systemd 209 introduced some majors changes, which generated a lot of feedback and bugfixes. This lead to version 210 a few days later.

Notable changes in 210:

- dropped dependency on libdbus in favor of internal sd-bus library.
- experimental support for kdbus.
- introduction of systemd-networkd, a simple network configuration manager.
- merge of libsystemd-*.so libraries into libsystemd.so.
- changes in Gudev API.

See NEWS file in the tarball for an exhaustive list.

Changes introduced by this bump:

- new configuration menu entry to enable systemd-networkd, which is an alternative to ISC dhcp and dhcpcd.
- remove EFI patch for version 208.
- update of the getty unit patch.
- new patch to remove the *.service files accidentally shipped in the official tarball (contain some invalid hardcoded paths) and force their re-generation.

---
 package/systemd/Config.in                          |   12 ++
 package/systemd/systemd-01-fix-getty-unit.patch    |   18 +-
 ...efined-reference-efi_loader_get_boot_usec.patch |   29 ---
 ...systemd-02-remove-incorrect-service-files.patch |  194 ++++++++++++++++++++
 package/systemd/systemd.mk                         |   10 +-
 5 files changed, 222 insertions(+), 41 deletions(-)
 delete mode 100644 package/systemd/systemd-02-efi-fix-Undefined-reference-efi_loader_get_boot_usec.patch
 create mode 100644 package/systemd/systemd-02-remove-incorrect-service-files.patch
package/systemd/Config.in +12 -0
index 4f180a1..17f834f 100644
@@ -73,4 +73,16 @@ config BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY
 
 	  http://www.freedesktop.org/software/systemd/man/systemd-journal-gatewayd.service.html
 
+config BR2_PACKAGE_SYSTEMD_NETWORKD
+	bool "enable network manager"
+	help
+	  systemd-networkd is a system service that manages networks.
+	  It detects and configures network devices as they appear, as well as
+	  creating virtual network devices.
+
+	  This simple network configuration solution is an alternative to
+	  dhcpcd or ISC dhcp.
+
+	  http://www.freedesktop.org/software/systemd/man/systemd-networkd.html
+
 endif
package/systemd/systemd-01-fix-getty-unit.patch +8 -10
index 166a2e5..e553ef3 100644
@@ -4,28 +4,26 @@ Signed-off-by: Maxime Ripard <[email protected]>
 Signed-off-by: Eric Le Bihan <[email protected]>
 ---
 
-Index: systemd-206/units/getty at .service.m4
-===================================================================
---- systemd-206.orig/units/getty at .service.m4	2013-07-22 00:43:28.000000000 +0200
-+++ systemd-206/units/getty at .service.m4	2013-09-18 10:20:17.000000000 +0200
+diff -aburN systemd-210.orig/units/getty at .service.m4 systemd-210/units/getty at .service.m4
+--- systemd-210.orig/units/getty at .service.m4	2013-12-18 18:21:28.000000000 +0100
++++ systemd-210/units/getty at .service.m4	2014-03-13 10:20:10.000000000 +0100
 @@ -27,7 +27,7 @@
 
  [Service]
  # the VT is cleared by TTYVTDisallocate
--ExecStart=-/sbin/agetty --noclear %I
+-ExecStart=-/sbin/agetty --noclear %I $TERM
 +ExecStart=-/sbin/getty -L %I 115200 vt100
  Type=idle
  Restart=always
  RestartSec=0
-Index: systemd-206/units/serial-getty at .service.m4
-===================================================================
---- systemd-206.orig/units/serial-getty at .service.m4	2013-07-22 00:43:28.000000000 +0200
-+++ systemd-206/units/serial-getty at .service.m4	2013-09-18 10:21:31.000000000 +0200
+diff -aburN systemd-210.orig/units/serial-getty at .service.m4 systemd-210/units/serial-getty at .service.m4
+--- systemd-210.orig/units/serial-getty at .service.m4	2014-02-24 15:38:03.000000000 +0100
++++ systemd-210/units/serial-getty at .service.m4	2014-03-13 10:20:10.000000000 +0100
 @@ -22,7 +22,7 @@
  IgnoreOnIsolate=yes
 
  [Service]
--ExecStart=-/sbin/agetty --keep-baud %I 115200,38400,9600
+-ExecStart=-/sbin/agetty --keep-baud %I 115200,38400,9600 $TERM
 +ExecStart=-/sbin/getty -L %I 115200 vt100
  Type=idle
  Restart=always
package/systemd/systemd-02-efi-fix-Undefined-reference-efi_loader_get_boot_usec.patch deleted +0 -29
deleted file mode 100644
index 84b0a1a..0000000
@@ -1,29 +0,0 @@
-From 70d9b9fc0a4fa1698ff00e364c61bb875244efa1 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <[email protected]>
-Date: Tue, 11 Feb 2014 09:54:49 -0300
-Subject: [PATCH] efi: fix Undefined reference efi_loader_get_boot_usec when
- EFI support is disabled
-
-Signed-off-by: Eric Le Bihan <[email protected]>
----
- src/shared/boot-timestamps.c |    2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/src/shared/boot-timestamps.c b/src/shared/boot-timestamps.c
-index 9449965..d656685 100644
---- a/src/shared/boot-timestamps.c
-+++ b/src/shared/boot-timestamps.c
-@@ -40,8 +40,10 @@ int boot_timestamps(const dual_timestamp *n, dual_timestamp *firmware, dual_time
-
-         r = acpi_get_boot_usec(&x, &y);
-         if (r < 0) {
-+#ifdef ENABLE_EFI
-                 r = efi_loader_get_boot_usec(&x, &y);
-                 if (r < 0)
-+#endif
-                         return r;
-         }
-
---
-1.7.9.5
-
package/systemd/systemd-02-remove-incorrect-service-files.patch new file +194 -0

194 lines not on this page · raw message

package/systemd/systemd.mk +8 -2
index 0ac4651..7fea1f0 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SYSTEMD_VERSION = 208
+SYSTEMD_VERSION = 210
 SYSTEMD_SITE = http://www.freedesktop.org/software/systemd/
 SYSTEMD_SOURCE = systemd-$(SYSTEMD_VERSION).tar.xz
 SYSTEMD_LICENSE = GPLv2+
@@ -13,7 +13,6 @@ SYSTEMD_INSTALL_STAGING = YES
 SYSTEMD_DEPENDENCIES = \
 	host-intltool \
 	libcap \
-	dbus \
 	util-linux \
 	kmod \
 	host-gperf
@@ -44,6 +43,7 @@ SYSTEMD_CONF_OPT += \
 	--disable-myhostname \
 	--disable-tcpwrap \
 	--disable-tests \
+	--disable-dbus \
 	--without-python
 
 ifeq ($(BR2_PACKAGE_ACL),y)
@@ -80,6 +80,12 @@ else
 SYSTEMD_CONF_OPT += --disable-microhttpd
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
+SYSTEMD_CONF_OPT += --enable-networkd
+else
+SYSTEMD_CONF_OPT += --disable-networkd
+endif
+
 # mq_getattr needs -lrt
 SYSTEMD_MAKE_OPT += LIBS=-lrt
 SYSTEMD_MAKE_OPT += LDFLAGS+=-ldl
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 systemd: bump to version 210.

Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Eric" == Eric Le Bihan <[email protected]> writes:

This patch bumps systemd to version 210. Systemd 209 introduced some majors changes, which generated a lot of feedback and bugfixes. This lead to version 210 a few days later.

And 211 last week. Any reason to not go for 211 right away?

Quoted 7 lines

Notable changes in 210:

- dropped dependency on libdbus in favor of internal sd-bus library.
- experimental support for kdbus.
- introduction of systemd-networkd, a simple network configuration manager.
- merge of libsystemd-*.so libraries into libsystemd.so.
- changes in Gudev API.

Another change mentioned in the announcement is:

Oh, and one reminder that kinda got lost when we announced 209: you have to enable CONFIG_FHANDLE in your kernel to use systemd >= 209 successfully, otherwise udev won't find any devices.

But I see we already document and handle that in linux.mk

Quoted 19 lines

+++ b/package/systemd/systemd.mk

package/systemd/systemd.mk +1 -2
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SYSTEMD_VERSION = 208
+SYSTEMD_VERSION = 210
 SYSTEMD_SITE = http://www.freedesktop.org/software/systemd/
 SYSTEMD_SOURCE = systemd-$(SYSTEMD_VERSION).tar.xz
 SYSTEMD_LICENSE = GPLv2+
@@ -13,7 +13,6 @@ SYSTEMD_INSTALL_STAGING = YES
 SYSTEMD_DEPENDENCIES = \
 	host-intltool \
 	libcap \
-	dbus \
 	util-linux \
 	kmod \
 	host-gperf

package/systemd/systemd.mk SYSTEMD_CONF_OPT += \ · line 46

Quoted 4 lines
package/systemd/systemd.mk +1 -0
@@ -44,6 +43,7 @@ SYSTEMD_CONF_OPT += \
 	--disable-myhostname \
 	--disable-tcpwrap \
 	--disable-tests \
+	--disable-dbus \

I guess from this and the list of changes above that dbus is now only a runtime dependency, so I added a comment about that in Config.in.

Committed with that fixed, thanks.

Signature · 1 line
Bye, Peter Korsgaard