Skip to contentSkip to conversation

package/systemd: Add optional support for myhostname

PATCH New Maxime Hadjinlian 2 participants 18 messages Jul 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/9 package/systemd: Add optional support for myhostname

---
 package/systemd/Config.in  | 11 +++++++++++
 package/systemd/systemd.mk |  6 ++++++
 2 files changed, 17 insertions(+)
package/systemd/Config.in +11 -0
index b44d57a..7c591b7 100644
@@ -225,6 +225,17 @@ config BR2_PACKAGE_SYSTEMD_HOSTNAMED
 
 	  http://www.freedesktop.org/software/systemd/man/systemd-hostnamed.service.html
 
+config BR2_PACKAGE_SYSTEMD_MYHOSTNAME
+	bool "enable myhostname NSS plugin"
+	default y
+	help
+	  nss-myhostname is a plug-in module for the GNU Name Service Switch (NSS)
+	  functionality of the GNU C Library (glibc), primarily providing hostname
+	  resolution for the locally configured system hostname as returned by
+	  gethostname(2).
+
+	  http://www.freedesktop.org/software/systemd/man/nss-myhostname.html
+
 config BR2_PACKAGE_SYSTEMD_TIMEDATED
 	bool "enable timedate daemon"
 	default y
package/systemd/systemd.mk +6 -0
index 423afcc..cca3f05 100644
@@ -249,6 +249,12 @@ else
 SYSTEMD_CONF_OPTS += --disable-hostnamed
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD_MYHOSTNAME),y)
+SYSTEMD_CONF_OPTS += --enable-myhostname
+else
+SYSTEMD_CONF_OPTS += --disable-myhostname
+endif
+
 ifeq ($(BR2_PACKAGE_SYSTEMD_TIMEDATED),y)
 SYSTEMD_CONF_OPTS += --enable-timedated
 else
Signature · 1 line
2.8.1
#1 lore raw

PATCH 2/9 package/systemd: Add optional support for resolved

---
 package/systemd/Config.in  | 10 ++++++++++
 package/systemd/systemd.mk |  6 ++++++
 2 files changed, 16 insertions(+)
package/systemd/Config.in +10 -0
index 7c591b7..b2f9feb 100644
@@ -287,6 +287,16 @@ config BR2_PACKAGE_SYSTEMD_NETWORKD
 
 	  http://www.freedesktop.org/software/systemd/man/systemd-networkd.html
 
+config BR2_PACKAGE_SYSTEMD_RESOLVED
+	bool "enable resolve daemon"
+	default y
+	help
+	  systemd-resolved is a system service that provides network name
+	  resolution to local applications. It implements a caching and validating
+	  DNS/DNSSEC stub resolver, as well as an LLMNR resolver and responder.
+
+	  http://www.freedesktop.org/software/systemd/man/systemd-resolved.html
+
 config BR2_PACKAGE_SYSTEMD_TIMESYNCD
 	bool "enable SNTP client"
 	help
package/systemd/systemd.mk +6 -0
index cca3f05..6f5a610 100644
@@ -296,6 +296,12 @@ define SYSTEMD_INSTALL_SERVICE_NETWORK
 endef
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD_RESOLVED),y)
+SYSTEMD_CONF_OPTS += --enable-resolved
+else
+SYSTEMD_CONF_OPTS += --disable-resolved
+endif
+
 ifeq ($(BR2_PACKAGE_SYSTEMD_TIMESYNCD),y)
 SYSTEMD_CONF_OPTS += --enable-timesyncd
 define SYSTEMD_INSTALL_SERVICE_TIMESYNC
Signature · 1 line
2.8.1
#2 lore raw

PATCH 2/9 package/systemd: Add optional support for resolved

Hello,

Quoted 11 lines · Maxime Hadjinlian
---
 package/systemd/Config.in  | 10 ++++++++++
 package/systemd/systemd.mk |  6 ++++++
 2 files changed, 16 insertions(+)
package/systemd/Config.in +0 -0
index 7c591b7..b2f9feb 100644

package/systemd/Config.in config BR2_PACKAGE_SYSTEMD_NETWORKD · line 296

Quoted 10 lines
package/systemd/Config.in +7 -0
@@ -287,6 +287,16 @@ config BR2_PACKAGE_SYSTEMD_NETWORKD
 
 	  http://www.freedesktop.org/software/systemd/man/systemd-networkd.html
 
+config BR2_PACKAGE_SYSTEMD_RESOLVED
+	bool "enable resolve daemon"
+	default y
+	help
+	  systemd-resolved is a system service that provides network name
+	  resolution to local applications. It implements a caching and validating
+	  DNS/DNSSEC stub resolver, as well as an LLMNR resolver and responder.

Same: too long lines, so I rewrapped and applied.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH 3/9 package/systemd: Create user only when needed

In reply to Maxime Hadjinlian

We don't want to create a bunch of group and users that might not be used, it's more elegant to create them when the associated features is selected.

---
 package/systemd/systemd.mk | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
package/systemd/systemd.mk +8 -4
index 6f5a610..2f5019c 100644
@@ -269,6 +269,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_SYSTEMD_COREDUMP),y)
 SYSTEMD_CONF_OPTS += --enable-coredump
+SYSTEMD_COREDUMP_USER = systemd-coredump -1 systemd-coredump -1 * /var/lib/systemd/coredump - - Core Dumper
 else
 SYSTEMD_CONF_OPTS += --disable-coredump
 endif
@@ -281,6 +282,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
 SYSTEMD_CONF_OPTS += --enable-networkd
+SYSTEMD_NETWORKD_USER = systemd-network -1 systemd-network -1 * - - - Network Manager
 define SYSTEMD_INSTALL_RESOLVCONF_HOOK
 	ln -sf ../run/systemd/resolve/resolv.conf \
 		$(TARGET_DIR)/etc/resolv.conf
@@ -298,12 +300,14 @@ endif
 
 ifeq ($(BR2_PACKAGE_SYSTEMD_RESOLVED),y)
 SYSTEMD_CONF_OPTS += --enable-resolved
+SYSTEMD_RESOLVED_USER = systemd-resolve -1 systemd-resolve -1 * - - - Network Name Resolution Manager
 else
 SYSTEMD_CONF_OPTS += --disable-resolved
 endif
 
 ifeq ($(BR2_PACKAGE_SYSTEMD_TIMESYNCD),y)
 SYSTEMD_CONF_OPTS += --enable-timesyncd
+SYSTEMD_TIMESYNCD_USER = systemd-timesync -1 systemd-timesync -1 * - - - Network Time Synchronization
 define SYSTEMD_INSTALL_SERVICE_TIMESYNC
 	mkdir -p $(TARGET_DIR)/etc/systemd/system/sysinit.target.wants
 	ln -sf ../../../../lib/systemd/system/systemd-timesyncd.service \
@@ -348,13 +352,13 @@ define SYSTEMD_USERS
 	- - input -1 * - - - Input device group
 	- - systemd-journal -1 * - - - Journal
 	systemd-bus-proxy -1 systemd-bus-proxy -1 * - - - Proxy D-Bus messages to/from a bus
-	systemd-coredump -1 systemd-coredump -1 * /var/lib/systemd/coredump - - Core Dumper
 	systemd-journal-gateway -1 systemd-journal-gateway -1 * /var/log/journal - - Journal Gateway
 	systemd-journal-remote -1 systemd-journal-remote -1 * /var/log/journal/remote - - Journal Remote
 	systemd-journal-upload -1 systemd-journal-upload -1 * - - - Journal Upload
-	systemd-network -1 systemd-network -1 * - - - Network Manager
-	systemd-resolve -1 systemd-resolve -1 * - - - Network Name Resolution Manager
-	systemd-timesync -1 systemd-timesync -1 * - - - Network Time Synchronization
+	$(SYSTEMD_COREDUMP_USER)
+	$(SYSTEMD_NETWORKD_USER)
+	$(SYSTEMD_RESOLVED_USER)
+	$(SYSTEMD_TIMESYNCD_USER)
 endef
 
 define SYSTEMD_DISABLE_SERVICE_TTY1
Signature · 1 line
2.8.1
#4 lore raw

PATCH 3/9 package/systemd: Create user only when needed

Hello,

Quoted 8 lines · Maxime Hadjinlian

We don't want to create a bunch of group and users that might not be used, it's more elegant to create them when the associated features is selected.

---
 package/systemd/systemd.mk | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#5 lore raw

PATCH 4/9 package/systemd: Default yes for timesyncd

In reply to Maxime Hadjinlian

It seems logical to enable a few options along with systemd when it's the init system.

Also change the help as timesyncd is a daemon that implements an SNTP client.

---
 package/systemd/Config.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/systemd/Config.in +2 -1
index b2f9feb..0e1e85d 100644
@@ -298,7 +298,8 @@ config BR2_PACKAGE_SYSTEMD_RESOLVED
 	  http://www.freedesktop.org/software/systemd/man/systemd-resolved.html
 
 config BR2_PACKAGE_SYSTEMD_TIMESYNCD
-	bool "enable SNTP client"
+	bool "enable timesync daemon"
+	default y
 	help
 	  systemd-timesyncd is a service that may be used to synchronize the
 	  local system clock with a Network Time Protocol server.
Signature · 1 line
2.8.1
#6 lore raw

PATCH 4/9 package/systemd: Default yes for timesyncd

Hello,

Quoted 9 lines · Maxime Hadjinlian

It seems logical to enable a few options along with systemd when it's the init system.

Also change the help as timesyncd is a daemon that implements an SNTP client.

---
 package/systemd/Config.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#7 lore raw

PATCH 5/9 package/systemd: Default yes for networkd

In reply to Maxime Hadjinlian

It seems logical to enable a few options along with systemd when it's the init system.

---
 package/systemd/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/systemd/Config.in +1 -0
index 0e1e85d..81e0d58 100644
@@ -277,6 +277,7 @@ config BR2_PACKAGE_SYSTEMD_POLKIT
 
 config BR2_PACKAGE_SYSTEMD_NETWORKD
 	bool "enable network manager"
+	default y
 	help
 	  systemd-networkd is a system service that manages networks.
 	  It detects and configures network devices as they appear, as well as
Signature · 1 line
2.8.1
#8 lore raw

PATCH 5/9 package/systemd: Default yes for networkd

Hello,

Quoted 7 lines · Maxime Hadjinlian

It seems logical to enable a few options along with systemd when it's the init system.

---
 package/systemd/Config.in | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#9 lore raw

PATCH 6/9 package/systemd: Remove SYSTEMD_COMPAT option

In reply to Maxime Hadjinlian

Since v230 of systemd, the compat libraries have been fully removed.
https://github.com/systemd/systemd/commit/4de282cf9324ab13d17ac334244d0d7cae2df37d

---
v1 -> v2:
- Fix indent

---
 Config.in.legacy             |  7 +++++++
 package/dbus/Config.in       |  1 -
 package/liblogging/Config.in |  1 -
 package/systemd/Config.in    | 13 -------------
 package/systemd/systemd.mk   |  6 ------
 5 files changed, 7 insertions(+), 21 deletions(-)
Config.in.legacy +7 -0
index 34bdaf0..70f6e0a 100644
@@ -369,6 +369,13 @@ config BR2_PACKAGE_SYSTEMD_ALL_EXTRAS
 	  removed. To get the same features, the libgcrypt and xz
 	  package should now be enabled.
 
+config BR2_PACKAGE_SYSTEMD_COMPAT
+	bool "systemd compatibility libraries has been removed"
+	help
+	  The systemd option te enable the compatibility libraries has been
+	  removed. Theses libraries have been useless since a few version, and
+	  have been fully dropped from the source since v230.
+
 config BR2_GCC_VERSION_4_5_X
 	bool "gcc 4.5.x has been removed"
 	select BR2_LEGACY
package/dbus/Config.in +0 -1
index 7d49ce5..653f748 100644
@@ -4,7 +4,6 @@ config BR2_PACKAGE_DBUS
 	# uses fork()
 	depends on BR2_USE_MMU
 	select BR2_PACKAGE_EXPAT
-	select BR2_PACKAGE_SYSTEMD_COMPAT if BR2_INIT_SYSTEMD
 	help
 	  The D-Bus message bus system.
 
package/liblogging/Config.in +0 -1
index 12ee950..23c3c1a 100644
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_LIBLOGGING
 	bool "liblogging"
-	select BR2_PACKAGE_SYSTEMD_COMPAT if BR2_INIT_SYSTEMD
 	help
 	  Liblogging is an easy to use library for
 	  logging. It offers an enhanced replacement
package/systemd/Config.in +0 -13
index 81e0d58..17a1c7e 100644
@@ -310,19 +310,6 @@ config BR2_PACKAGE_SYSTEMD_TIMESYNCD
 
 	  http://www.freedesktop.org/software/systemd/man/systemd-timesyncd.html
 
-config BR2_PACKAGE_SYSTEMD_COMPAT
-	bool "enable compatibility libraries"
-	help
-	  Since systemd 209, the following libraries have been merged into
-	  libsystemd.so:
-
-	  - libsystemd-daemon
-	  - libsystemd-id128
-	  - libsystemd-journal
-	  - libsystemd-login
-
-	  This option enables the installation of compatibility *.pc files.
-
 config BR2_PACKAGE_SYSTEMD_SMACK_SUPPORT
 	bool "enable SMACK support"
 	select BR2_PACKAGE_ATTR
package/systemd/systemd.mk +0 -6
index 2f5019c..835fc26 100644
@@ -54,12 +54,6 @@ define SYSTEMD_RUN_INTLTOOLIZE
 endef
 SYSTEMD_PRE_CONFIGURE_HOOKS += SYSTEMD_RUN_INTLTOOLIZE
 
-ifeq ($(BR2_PACKAGE_SYSTEMD_COMPAT),y)
-SYSTEMD_CONF_OPTS += --enable-compat-libs
-else
-SYSTEMD_CONF_OPTS += --disable-compat-libs
-endif
-
 ifeq ($(BR2_PACKAGE_ACL),y)
 SYSTEMD_CONF_OPTS += --enable-acl
 SYSTEMD_DEPENDENCIES += acl
Signature · 1 line
2.8.1
#10 lore raw

PATCH 6/9 package/systemd: Remove SYSTEMD_COMPAT option

Hello,

Quoted 20 lines · Maxime Hadjinlian

Since v230 of systemd, the compat libraries have been fully removed.
https://github.com/systemd/systemd/commit/4de282cf9324ab13d17ac334244d0d7cae2df37d

---
v1 -> v2:
- Fix indent

---
 Config.in.legacy             |  7 +++++++
 package/dbus/Config.in       |  1 -
 package/liblogging/Config.in |  1 -
 package/systemd/Config.in    | 13 -------------
 package/systemd/systemd.mk   |  6 ------
 5 files changed, 7 insertions(+), 21 deletions(-)
Config.in.legacy +0 -0
index 34bdaf0..70f6e0a 100644

Config.in.legacy config BR2_PACKAGE_SYSTEMD_ALL_EXTRAS · line 372

Quoted 4 lines
Config.in.legacy +1 -0
@@ -369,6 +369,13 @@ config BR2_PACKAGE_SYSTEMD_ALL_EXTRAS
 	  removed. To get the same features, the libgcrypt and xz
 	  package should now be enabled.
 
+config BR2_PACKAGE_SYSTEMD_COMPAT

Options in Config.in.legacy are not sorted alphabetically, but by the release they were removed from, and then by reverse chronological order. So I've moved your option around.

Config.in.legacy config BR2_PACKAGE_SYSTEMD_ALL_EXTRAS · line 373

Quoted 1 line
Config.in.legacy +1 -0
+	bool "systemd compatibility libraries has been removed"

has -> have

Config.in.legacy config BR2_PACKAGE_SYSTEMD_ALL_EXTRAS · line 377

Quoted 4 lines
Config.in.legacy +4 -0
+	help
+	  The systemd option te enable the compatibility libraries has been
+	  removed. Theses libraries have been useless since a few version, and
+	  have been fully dropped from the source since v230.

Too long lines.

Applied with those changes. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#11 lore raw

PATCH 7/9 package/systemd: Remove systemd-bootchart

In reply to Maxime Hadjinlian

Since systemd v230, bootchart has been removed from the source of systemd and now lives in its own repository.
A new package will be added in the next commit.

---
 Config.in.legacy           |  6 ++++++
 package/systemd/Config.in  | 10 ----------
 package/systemd/systemd.mk |  6 ------
 3 files changed, 6 insertions(+), 16 deletions(-)
Config.in.legacy +6 -0
index 70f6e0a..357f382 100644
@@ -376,6 +376,12 @@ config BR2_PACKAGE_SYSTEMD_COMPAT
 	  removed. Theses libraries have been useless since a few version, and
 	  have been fully dropped from the source since v230.
 
+config BR2_PACKAGE_SYSTEMD_BOOTCHART
+	bool "systemd-bootchart option has been removed"
+	help
+	  From systemd v230, bootchart is not part of the systemd source anymore.
+	  It is now living in its own repository, a new package must be added.
+
 config BR2_GCC_VERSION_4_5_X
 	bool "gcc 4.5.x has been removed"
 	select BR2_LEGACY
package/systemd/Config.in +0 -10
index 17a1c7e..c870138 100644
@@ -111,16 +111,6 @@ config BR2_PACKAGE_SYSTEMD_VCONSOLE
 
 	  http://www.freedesktop.org/software/systemd/man/systemd-vconsole-setup.service.html
 
-config BR2_PACKAGE_SYSTEMD_BOOTCHART
-	bool "enable bootchart tool"
-	help
-	  systemd-bootchart is a tool, usually run at system startup,
-	  that collects the CPU load, disk load, memory usage, as well
-	  as per-process information from a running system. Collected
-	  results are output as an SVG graph.
-
-	  http://www.freedesktop.org/software/systemd/man/systemd-bootchart.html
-
 config BR2_PACKAGE_SYSTEMD_QUOTACHECK
 	bool "enable quotacheck tools"
 	help
package/systemd/systemd.mk +0 -6
index 835fc26..689b40d 100644
@@ -171,12 +171,6 @@ else
 SYSTEMD_CONF_OPTS += --disable-vconsole
 endif
 
-ifeq ($(BR2_PACKAGE_SYSTEMD_BOOTCHART),y)
-SYSTEMD_CONF_OPTS += --enable-bootchart
-else
-SYSTEMD_CONF_OPTS += --disable-bootchart
-endif
-
 ifeq ($(BR2_PACKAGE_SYSTEMD_QUOTACHECK),y)
 SYSTEMD_CONF_OPTS += --enable-quotacheck
 else
Signature · 1 line
2.8.1
#12 lore raw

PATCH 7/9 package/systemd: Remove systemd-bootchart

Hello,

Quoted 16 lines · Maxime Hadjinlian

Since systemd v230, bootchart has been removed from the source of systemd and now lives in its own repository.
A new package will be added in the next commit.

---
 Config.in.legacy           |  6 ++++++
 package/systemd/Config.in  | 10 ----------
 package/systemd/systemd.mk |  6 ------
 3 files changed, 6 insertions(+), 16 deletions(-)
Config.in.legacy +0 -0
index 70f6e0a..357f382 100644

Config.in.legacy config BR2_PACKAGE_SYSTEMD_COMPAT · line 380

Quoted 5 lines
Config.in.legacy +2 -0
@@ -376,6 +376,12 @@ config BR2_PACKAGE_SYSTEMD_COMPAT
 	  removed. Theses libraries have been useless since a few version, and
 	  have been fully dropped from the source since v230.
 
+config BR2_PACKAGE_SYSTEMD_BOOTCHART
+	bool "systemd-bootchart option has been removed"

Same: wrong location in Config.in.legacy.

Applied with this fixed. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#13 lore raw

PATCH 8/9 systemd-bootchart: New package

In reply to Maxime Hadjinlian

---
v1 -> v2:
- Remove depends that were copied from systemd
- Remove empty line in hash file

---
 package/Config.in                               |  1 +
 package/systemd-bootchart/Config.in             | 21 +++++++++++++++++++++
 package/systemd-bootchart/system-bootchart.hash |  2 ++
 package/systemd-bootchart/systemd-bootchart.mk  | 15 +++++++++++++++
 4 files changed, 39 insertions(+)
 create mode 100644 package/systemd-bootchart/Config.in
 create mode 100644 package/systemd-bootchart/system-bootchart.hash
 create mode 100644 package/systemd-bootchart/systemd-bootchart.mk
package/Config.in +1 -0
index 5779d04..75298e0 100644
@@ -1723,6 +1723,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/syslog-ng/Config.in"
 endif
 	source "package/systemd/Config.in"
+	source "package/systemd-bootchart/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/sysvinit/Config.in"
 	source "package/tar/Config.in"
package/systemd-bootchart/Config.in new file +21 -0
new file mode 100644
index 0000000..58fcfbb
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_SYSTEMD_BOOTCHART
+	bool "systemd-bootchart"
+	depends on BR2_INIT_SYSTEMD
+	help
+	  systemd-bootchart is a tool, usually run at system startup,
+	  that collects the CPU load, disk load, memory usage, as well
+	  as per-process information from a running system. Collected
+	  results are output as an SVG graph.
+
+	  systemd-bootchart requires a Linux kernel >= 3.0 with the following
+	  options enabled:
+
+	  - CONFIG_SCHEDSTATS
+	  - CONFIG_SCHED_DEBUG
+
+	  These options will be automatically enabled by Buildroot if
+	  it is responsible for building the kernel. Otherwise, if you
+	  are building your kernel outside of Buildroot, make sure
+	  these options are enabled.
+
+	  http://www.freedesktop.org/software/systemd/man/systemd-bootchart.html
package/systemd-bootchart/system-bootchart.hash new file +2 -0
new file mode 100644
index 0000000..c347ef5
@@ -0,0 +1,2 @@
+# sha256 locally computed
+sha256 8cfea4f604c00289394a4429f934e19f80dceafbe0ae1846e00997f70d81a20f systemd-bootchart-230.tar.xz
package/systemd-bootchart/systemd-bootchart.mk new file +15 -0
new file mode 100644
index 0000000..c371b9f
@@ -0,0 +1,15 @@
+################################################################################
+#
+# systemd-bootchart
+#
+################################################################################
+
+SYSTEMD_BOOTCHART_VERSION = 230
+SYSTEMD_BOOTCHART_SOURCE = systemd-bootchart-$(SYSTEMD_BOOTCHART_VERSION).tar.xz
+# Do not use the github helper here, the generated tarball is *NOT* the same
+# as the one uploaded by upstream for the release.
+SYSTEMD_BOOTCHART_SITE = https://github.com/systemd/systemd-bootchart/releases/download/v$(SYSTEMD_BOOTCHART_VERSION)
+SYSTEMD_BOOTCHART_LICENSE = LGPLv2.1+
+SYSTEMD_BOOTCHART_DEPENDENCIES = systemd
+
+$(eval $(autotools-package))
Signature · 1 line
2.8.1
#14 lore raw

PATCH 8/9 systemd-bootchart: New package

Hello,

Quoted 1 line · Maxime Hadjinlian
 package/Config.in                               |  1 +

You forgot to remove the Config.in.legacy symbol, so I've done that.

Quoted 1 line

+++ b/package/systemd-bootchart/system-bootchart.hash

The hash file should have be named systemd-bootchart.hash.

package/systemd-bootchart/systemd-bootchart.mk line 12

Quoted 6 lines
package/systemd-bootchart/systemd-bootchart.mk new file +6 -0
+SYSTEMD_BOOTCHART_VERSION = 230
+SYSTEMD_BOOTCHART_SOURCE = systemd-bootchart-$(SYSTEMD_BOOTCHART_VERSION).tar.xz
+# Do not use the github helper here, the generated tarball is *NOT* the same
+# as the one uploaded by upstream for the release.
+SYSTEMD_BOOTCHART_SITE = https://github.com/systemd/systemd-bootchart/releases/download/v$(SYSTEMD_BOOTCHART_VERSION)
+SYSTEMD_BOOTCHART_LICENSE = LGPLv2.1+

LICENSE_FILES was missing.

Applied with those issues fixed. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#15 lore raw

PATCH 9/9 package/systemd: Sort menuconfig alphabetically

In reply to Maxime Hadjinlian
---
 package/systemd/Config.in | 262 +++++++++++++++++++++++-----------------------
 1 file changed, 131 insertions(+), 131 deletions(-)
package/systemd/Config.in +131 -131
index c870138..da08168 100644
@@ -69,11 +69,6 @@ if BR2_PACKAGE_SYSTEMD
 config BR2_PACKAGE_PROVIDES_UDEV
 	default "systemd"
 
-config BR2_PACKAGE_SYSTEMD_KDBUS
-	bool "enable kdbus support"
-	help
-	  Enable kdbus support for Systemd.
-
 config BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY
 	bool "HTTP server for journal events"
 	select BR2_PACKAGE_LIBMICROHTTPD
@@ -84,16 +79,13 @@ config BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY
 
 	  http://www.freedesktop.org/software/systemd/man/systemd-journal-gatewayd.service.html
 
-config BR2_PACKAGE_SYSTEMD_HWDB
-	bool "enable hwdb installation"
-	default y
+config BR2_PACKAGE_SYSTEMD_BACKLIGHT
+	bool "enable backlight support"
 	help
-	  Enables hardware database installation to /usr/lib/udev/hwdb.d
-
-	  Disabling this option improves first boot time (or every boot
-	  time in case of initramfs images) and saves several MB space.
+	  systemd-backlight is a service that restores the display
+	  backlight brightness at early boot and saves it at shutdown.
 
-	  https://www.freedesktop.org/software/systemd/man/hwdb.html
+	  http://www.freedesktop.org/software/systemd/man/systemd-backlight at .service.html
 
 config BR2_PACKAGE_SYSTEMD_BINFMT
 	bool "enable binfmt tool"
@@ -103,42 +95,14 @@ config BR2_PACKAGE_SYSTEMD_BINFMT
 
 	  http://www.freedesktop.org/software/systemd/man/systemd-binfmt.service.html
 
-config BR2_PACKAGE_SYSTEMD_VCONSOLE
-	bool "enable vconsole tool"
-	help
-	  systemd-vconsole-setup is an early boot service that
-	  configures the virtual console font and console keymap.
-
-	  http://www.freedesktop.org/software/systemd/man/systemd-vconsole-setup.service.html
-
-config BR2_PACKAGE_SYSTEMD_QUOTACHECK
-	bool "enable quotacheck tools"
-	help
-	  systemd-quotacheck is a service responsible for file system
-	  quota checks. It is run once at boot after all necessary
-	  file systems are mounted. It is pulled in only if at least
-	  one file system has quotas enabled.
-
-	  http://www.freedesktop.org/software/systemd/man/systemd-quotacheck.service.html
-
-config BR2_PACKAGE_SYSTEMD_TMPFILES
-	bool "enable tmpfiles support"
-	default y
-	help
-	  systemd-tmpfiles creates, deletes, and cleans up volatile
-	  and temporary files and directories, based on the
-	  configuration file format and location specified in
-	  tmpfiles.d(5).
-
-	  http://www.freedesktop.org/software/systemd/man/systemd-tmpfiles.html
-
-config BR2_PACKAGE_SYSTEMD_SYSUSERS
-	bool "enable sysusers support"
+config BR2_PACKAGE_SYSTEMD_COREDUMP
+	bool "enable coredump hook"
 	help
-	  systemd-sysusers creates system users and groups, based on
-	  the file format and location specified in sysusers.d(5).
+	  systemd-coredump can be used as a helper binary by the
+	  kernel when a user space program receives a fatal signal and
+	  dumps core.
 
-	  http://www.freedesktop.org/software/systemd/man/systemd-sysusers.html
+	  http://www.freedesktop.org/software/systemd/man/systemd-coredump.html
 
 config BR2_PACKAGE_SYSTEMD_FIRSTBOOT
 	bool "enable firstboot support"
@@ -149,47 +113,33 @@ config BR2_PACKAGE_SYSTEMD_FIRSTBOOT
 
 	  http://www.freedesktop.org/software/systemd/man/systemd-firstboot.html
 
-config BR2_PACKAGE_SYSTEMD_RANDOMSEED
-	bool "enable random-seed support"
-	help
-	  systemd-random-seed is a service that restores the random
-	  seed of the system at early boot and saves it at
-	  shutdown. Saving/restoring the random seed across boots
-	  increases the amount of available entropy early at boot.
-
-	  http://www.freedesktop.org/software/systemd/man/systemd-random-seed.service.html
-
-config BR2_PACKAGE_SYSTEMD_BACKLIGHT
-	bool "enable backlight support"
+config BR2_PACKAGE_SYSTEMD_HIBERNATE
+	bool "enable hibernation support"
 	help
-	  systemd-backlight is a service that restores the display
-	  backlight brightness at early boot and saves it at shutdown.
+	  When this features is enabled, additional tools and services
+	  are built to support suspending and resuming the system.
 
-	  http://www.freedesktop.org/software/systemd/man/systemd-backlight at .service.html
+	  http://www.freedesktop.org/software/systemd/man/systemd-sleep.html
 
-config BR2_PACKAGE_SYSTEMD_RFKILL
-	bool "enable rfkill tools"
+config BR2_PACKAGE_SYSTEMD_HOSTNAMED
+	bool "enable hostname daemon"
+	default y
 	help
-	  systemd-rfkill is a service that restores the RF kill switch
-	  state at early boot and saves it at shutdown.
+	  systemd-hostnamed is a system service that may be used as a
+	  mechanism to change the system's hostname.
 
-	  http://www.freedesktop.org/software/systemd/man/systemd-rfkill at .service.html
+	  http://www.freedesktop.org/software/systemd/man/systemd-hostnamed.service.html
 
-config BR2_PACKAGE_SYSTEMD_LOGIND
-	bool "enable login daemon"
+config BR2_PACKAGE_SYSTEMD_HWDB
+	bool "enable hwdb installation"
+	default y
 	help
-	  systemd-logind is a system service that manages user logins.
-
-	  http://www.freedesktop.org/software/systemd/man/systemd-logind.service.html
+	  Enables hardware database installation to /usr/lib/udev/hwdb.d
 
-config BR2_PACKAGE_SYSTEMD_MACHINED
-	bool "enable machine daemon"
-	help
-	  systemd-machined is a system service that keeps track of
-	  virtual machines and containers, and processes belonging to
-	  them.
+	  Disabling this option improves first boot time (or every boot
+	  time in case of initramfs images) and saves several MB space.
 
-	  http://www.freedesktop.org/software/systemd/man/systemd-machined.service.html
+	  https://www.freedesktop.org/software/systemd/man/hwdb.html
 
 config BR2_PACKAGE_SYSTEMD_IMPORTD
 	bool "enable import daemon"
@@ -206,14 +156,35 @@ config BR2_PACKAGE_SYSTEMD_IMPORTD
 
 	  http://www.freedesktop.org/software/systemd/man/machinectl.html#Image%20Transfer%20Commands
 
-config BR2_PACKAGE_SYSTEMD_HOSTNAMED
-	bool "enable hostname daemon"
-	default y
+config BR2_PACKAGE_SYSTEMD_KDBUS
+	bool "enable kdbus support"
 	help
-	  systemd-hostnamed is a system service that may be used as a
-	  mechanism to change the system's hostname.
+	  Enable kdbus support for Systemd.
 
-	  http://www.freedesktop.org/software/systemd/man/systemd-hostnamed.service.html
+config BR2_PACKAGE_SYSTEMD_LOCALED
+	bool "enable locale daemon"
+	help
+	  systemd-localed is a system service that may be used as
+	  mechanism to change the system locale settings, as well as
+	  the console key mapping and default X11 key mapping.
+
+	  http://www.freedesktop.org/software/systemd/man/systemd-localed.service.html
+
+config BR2_PACKAGE_SYSTEMD_LOGIND
+	bool "enable login daemon"
+	help
+	  systemd-logind is a system service that manages user logins.
+
+	  http://www.freedesktop.org/software/systemd/man/systemd-logind.service.html
+
+config BR2_PACKAGE_SYSTEMD_MACHINED
+	bool "enable machine daemon"
+	help
+	  systemd-machined is a system service that keeps track of
+	  virtual machines and containers, and processes belonging to
+	  them.
+
+	  http://www.freedesktop.org/software/systemd/man/systemd-machined.service.html
 
 config BR2_PACKAGE_SYSTEMD_MYHOSTNAME
 	bool "enable myhostname NSS plugin"
@@ -226,33 +197,18 @@ config BR2_PACKAGE_SYSTEMD_MYHOSTNAME
 
 	  http://www.freedesktop.org/software/systemd/man/nss-myhostname.html
 
-config BR2_PACKAGE_SYSTEMD_TIMEDATED
-	bool "enable timedate daemon"
+config BR2_PACKAGE_SYSTEMD_NETWORKD
+	bool "enable network manager"
 	default y
 	help
-	  systemd-timedated is a system service that may be used as a
-	  mechanism to change the system clock and timezone, as well
-	  as to enable/disable NTP time synchronization.
-
-	  http://www.freedesktop.org/software/systemd/man/systemd-timedated.service.html
-
-config BR2_PACKAGE_SYSTEMD_LOCALED
-	bool "enable locale daemon"
-	help
-	  systemd-localed is a system service that may be used as
-	  mechanism to change the system locale settings, as well as
-	  the console key mapping and default X11 key mapping.
-
-	  http://www.freedesktop.org/software/systemd/man/systemd-localed.service.html
+	  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.
 
-config BR2_PACKAGE_SYSTEMD_COREDUMP
-	bool "enable coredump hook"
-	help
-	  systemd-coredump can be used as a helper binary by the
-	  kernel when a user space program receives a fatal signal and
-	  dumps core.
+	  This simple network configuration solution is an alternative to
+	  dhcpcd or ISC dhcp.
 
-	  http://www.freedesktop.org/software/systemd/man/systemd-coredump.html
+	  http://www.freedesktop.org/software/systemd/man/systemd-networkd.html
 
 config BR2_PACKAGE_SYSTEMD_POLKIT
 	bool "enable polkit support"
@@ -265,18 +221,25 @@ config BR2_PACKAGE_SYSTEMD_POLKIT
 
 	  http://wiki.freedesktop.org/www/Software/polkit/
 
-config BR2_PACKAGE_SYSTEMD_NETWORKD
-	bool "enable network manager"
-	default y
+config BR2_PACKAGE_SYSTEMD_QUOTACHECK
+	bool "enable quotacheck tools"
 	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.
+	  systemd-quotacheck is a service responsible for file system
+	  quota checks. It is run once at boot after all necessary
+	  file systems are mounted. It is pulled in only if at least
+	  one file system has quotas enabled.
 
-	  This simple network configuration solution is an alternative to
-	  dhcpcd or ISC dhcp.
+	  http://www.freedesktop.org/software/systemd/man/systemd-quotacheck.service.html
 
-	  http://www.freedesktop.org/software/systemd/man/systemd-networkd.html
+config BR2_PACKAGE_SYSTEMD_RANDOMSEED
+	bool "enable random-seed support"
+	help
+	  systemd-random-seed is a service that restores the random
+	  seed of the system at early boot and saves it at
+	  shutdown. Saving/restoring the random seed across boots
+	  increases the amount of available entropy early at boot.
+
+	  http://www.freedesktop.org/software/systemd/man/systemd-random-seed.service.html
 
 config BR2_PACKAGE_SYSTEMD_RESOLVED
 	bool "enable resolve daemon"
@@ -288,17 +251,13 @@ config BR2_PACKAGE_SYSTEMD_RESOLVED
 
 	  http://www.freedesktop.org/software/systemd/man/systemd-resolved.html
 
-config BR2_PACKAGE_SYSTEMD_TIMESYNCD
-	bool "enable timesync daemon"
-	default y
+config BR2_PACKAGE_SYSTEMD_RFKILL
+	bool "enable rfkill tools"
 	help
-	  systemd-timesyncd is a service that may be used to synchronize the
-	  local system clock with a Network Time Protocol server.
-
-	  This simple NTP solution is an alternative to sntp/ntpd from the ntp
-	  package.
+	  systemd-rfkill is a service that restores the RF kill switch
+	  state at early boot and saves it at shutdown.
 
-	  http://www.freedesktop.org/software/systemd/man/systemd-timesyncd.html
+	  http://www.freedesktop.org/software/systemd/man/systemd-rfkill at .service.html
 
 config BR2_PACKAGE_SYSTEMD_SMACK_SUPPORT
 	bool "enable SMACK support"
@@ -314,12 +273,53 @@ config BR2_PACKAGE_SYSTEMD_SMACK_SUPPORT
 	  When this feature is enabled, Systemd mounts smackfs and manages
 	  security labels for sockets.
 
-config BR2_PACKAGE_SYSTEMD_HIBERNATE
-	bool "enable hibernation support"
+config BR2_PACKAGE_SYSTEMD_SYSUSERS
+	bool "enable sysusers support"
 	help
-	  When this features is enabled, additional tools and services
-	  are built to support suspending and resuming the system.
+	  systemd-sysusers creates system users and groups, based on
+	  the file format and location specified in sysusers.d(5).
 
-	  http://www.freedesktop.org/software/systemd/man/systemd-sleep.html
+	  http://www.freedesktop.org/software/systemd/man/systemd-sysusers.html
+
+config BR2_PACKAGE_SYSTEMD_TIMEDATED
+	bool "enable timedate daemon"
+	default y
+	help
+	  systemd-timedated is a system service that may be used as a
+	  mechanism to change the system clock and timezone, as well
+	  as to enable/disable NTP time synchronization.
+
+	  http://www.freedesktop.org/software/systemd/man/systemd-timedated.service.html
+
+config BR2_PACKAGE_SYSTEMD_TIMESYNCD
+	bool "enable timesync daemon"
+	default y
+	help
+	  systemd-timesyncd is a service that may be used to synchronize the
+	  local system clock with a Network Time Protocol server.
+
+	  This simple NTP solution is an alternative to sntp/ntpd from the ntp
+	  package.
+
+	  http://www.freedesktop.org/software/systemd/man/systemd-timesyncd.html
+
+config BR2_PACKAGE_SYSTEMD_TMPFILES
+	bool "enable tmpfiles support"
+	default y
+	help
+	  systemd-tmpfiles creates, deletes, and cleans up volatile
+	  and temporary files and directories, based on the
+	  configuration file format and location specified in
+	  tmpfiles.d(5).
+
+	  http://www.freedesktop.org/software/systemd/man/systemd-tmpfiles.html
+
+config BR2_PACKAGE_SYSTEMD_VCONSOLE
+	bool "enable vconsole tool"
+	help
+	  systemd-vconsole-setup is an early boot service that
+	  configures the virtual console font and console keymap.
+
+	  http://www.freedesktop.org/software/systemd/man/systemd-vconsole-setup.service.html
 
 endif
Signature · 1 line
2.8.1
#16 lore raw

PATCH 9/9 package/systemd: Sort menuconfig alphabetically

Hello,

Quoted 4 lines · Maxime Hadjinlian
---
 package/systemd/Config.in | 262 +++++++++++++++++++++++-----------------------
 1 file changed, 131 insertions(+), 131 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#17 lore raw

PATCH 1/9 package/systemd: Add optional support for myhostname

In reply to Maxime Hadjinlian

Hello,

Quoted 12 lines · Maxime Hadjinlian
---
 package/systemd/Config.in  | 11 +++++++++++
 package/systemd/systemd.mk |  6 ++++++
 2 files changed, 17 insertions(+)
package/systemd/Config.in +0 -0
index b44d57a..7c591b7 100644
@@ -225,6 +225,17 @@ config BR2_PACKAGE_SYSTEMD_HOSTNAMED
 

package/systemd/Config.in config BR2_PACKAGE_SYSTEMD_HOSTNAMED · line 235

Quoted 10 lines
package/systemd/Config.in +8 -0
 	  http://www.freedesktop.org/software/systemd/man/systemd-hostnamed.service.html
 
+config BR2_PACKAGE_SYSTEMD_MYHOSTNAME
+	bool "enable myhostname NSS plugin"
+	default y
+	help
+	  nss-myhostname is a plug-in module for the GNU Name Service Switch (NSS)
+	  functionality of the GNU C Library (glibc), primarily providing hostname
+	  resolution for the locally configured system hostname as returned by
+	  gethostname(2).

Too long lines, so I rewrapped them and applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com