All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v8 1/4] package/systemd: bump to version 252.4
@ 2023-01-15 11:48 Norbert Lange
  2023-01-15 11:48 ` [Buildroot] [PATCH v8 2/4] package/systemd: Add config option for sysupdate feature Norbert Lange
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Norbert Lange @ 2023-01-15 11:48 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Yann E . MORIN, Sen Hastings, Norbert Lange

Following files changed *license* from CC0-1.0 to MIT-0:

-   src/systemctl/systemd-sysv-install.SKELETON
-   config files
-   examples under /network

The file LICENSES/MIT-0.txt has been added for this reason,
hashes added, corrected for LICENSES/README.md.

Kernel version 3.15 is now the bare minimum, but only
version 4.15 and higher are fully supported and tested:

-   bump kernel header dependencies
-   correct kconfig description
-   improvements to make the kconfig description better reflect
    the information from the README

Remove upstreamed patch.

Set new options to their default, remove -Defi-cc option.

Set -Ddbus=false to ensure dbus dependency is runtime only.

Set -Ddbus-interfaces-dir=no as interface XML file generation is
not supported when cross compiling.

Set -Ddefault-user-shell=/bin/sh to the always available shell.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
Reviewed-by: James Hilliard <james.hilliard1@gmail.com>

---
v7->v8:

*   update to 252.4

v6->v7:

*   update to 252.1
*   compare changes in licenses to 250.4
*   update systemd description in kconfig with required and recommended
    kernel
*   split patch

v5->v6:

*   update to 251.4

v4->v5:

*   fix dnssec changes, use James' solution

v2->v4:

*   Bump kernel header dependency to 3.15
*   Inherit changes from James' version bump patch (following)
*   (Force) disable compile time dbus dependencies
*   set default-dnssec to allow-downgrade

v1->v2:

*   note about changed LICENSES/README.md
*   always set default-user-shell to /bin/sh
*   always set default-locale to C-UTF-8
*   fix typos in commit message

---

License diff for illustration

--- systemd-stable-250.4/LICENSES/README.md
+++ systemd-stable-252.1/LICENSES/README.md
@@ -45,9 +45,11 @@
  * the following sources are licensed under the **CC0-1.0** license:
    - src/basic/siphash24.c
    - src/basic/siphash24.h
-   - src/systemctl/systemd-sysv-install.SKELETON
    - tools/check-includes.pl
+  * the following sources are licensed under the **MIT-0** license:
    - all examples under man/
+   - src/systemctl/systemd-sysv-install.SKELETON
+   - config files and examples under /network
  * the following sources are under **Public Domain** (LicenseRef-murmurhash2-public-domain):
    - src/basic/MurmurHash2.c
    - src/basic/MurmurHash2.h

package/systemd: 252.4
---
 package/systemd/Config.in    | 12 +++++++++---
 package/systemd/systemd.hash |  5 +++--
 package/systemd/systemd.mk   | 16 ++++++++++++++--
 system/Config.in             |  6 +++---
 4 files changed, 29 insertions(+), 10 deletions(-)

diff --git a/package/systemd/Config.in b/package/systemd/Config.in
index 45a9e2d644..f35305c0be 100644
--- a/package/systemd/Config.in
+++ b/package/systemd/Config.in
@@ -22,7 +22,7 @@ menuconfig BR2_PACKAGE_SYSTEMD
 	depends on !BR2_STATIC_LIBS # kmod
 	depends on BR2_TOOLCHAIN_USES_GLIBC
 	depends on BR2_TOOLCHAIN_HAS_SSP
-	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
 	depends on BR2_HOST_GCC_AT_LEAST_5 # host-systemd
 	select BR2_PACKAGE_HAS_UDEV
@@ -51,7 +51,11 @@ menuconfig BR2_PACKAGE_SYSTEMD
 	  an elaborate transactional dependency-based service control
 	  logic.  It can work as a drop-in replacement for sysvinit.
 
-	  Systemd requires a Linux kernel >= 3.13 with the following
+	  Kernel versions below 4.15 ("recommended baseline") have
+	  significant gaps in functionality and are not recommended
+	  for use with this version of systemd.
+
+	  Systemd requires a Linux kernel >= 3.15 with the following
 	  options enabled:
 
 	  - CONFIG_DEVTMPFS
@@ -66,9 +70,11 @@ menuconfig BR2_PACKAGE_SYSTEMD
 	  - CONFIG_PROC_FS
 	  - CONFIG_FHANDLE (libudev, mount and bind mount handling)
 
-	  - CONFIG_NET_NS (needed by PrivateNetwork=, used in some
+	  - CONFIG_NET_NS (Required for PrivateNetwork=, used in some
 	    systemd units)
 
+	  - CONFIG_USER_NS (Required for PrivateUsers=)
+
 	  - CONFIG_AUTOFS_FS / CONFIG_AUTOFS4_FS
 	  - CONFIG_TMPFS_POSIX_ACL
 	  - CONFIG_TMPFS_XATTR
diff --git a/package/systemd/systemd.hash b/package/systemd/systemd.hash
index 3b98566f32..00c08edcd9 100644
--- a/package/systemd/systemd.hash
+++ b/package/systemd/systemd.hash
@@ -1,5 +1,5 @@
 # sha256 locally computed
-sha256  638a2fc78828765fc97bc73f428205b6dc1d359149b6c6bfe4d2a649cba2cca8  systemd-250.8.tar.gz
+sha256  cf2d27e67663d599a045101c7178cf0ec63d9df2962a54adf7de0d0357724f00  systemd-252.4.tar.gz
 sha256  ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  LICENSE.GPL2
 sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  LICENSE.LGPL2.1
 sha256  e5a8645ad94aab24e312dd0c6be2aa54236eb9374480b1b14ea5c61598874fd5  LICENSES/BSD-2-Clause.txt
@@ -8,7 +8,8 @@ sha256  a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499  LICENS
 sha256  61778e80a2fd85955b626b29aa2bcf06144c714277bded65633e4a81479d9fb3  LICENSES/LGPL-2.0-or-later.txt
 sha256  5bcef4fedbfc08776630e65d5d0d074dd31208037eddb167ca46a9ec4f737764  LICENSES/Linux-syscall-note.txt
 sha256  790ac93fb2859097bdda4cf08b5a4feb5e479d0cb2c74f403248241bc3e7c216  LICENSES/lookup3-public-domain.txt
+sha256  8a6fc0879cecc0b96bf4c08159b9d733bf0f15fcf32879aec98c4ffd05424554  LICENSES/MIT-0.txt
 sha256  b85dcd3e453d05982552c52b5fc9e0bdd6d23c6f8e844b984a88af32570b0cc0  LICENSES/MIT.txt
 sha256  2a98749f6bec00dfaed86fa9c1edea871aaae4f11ee4d100b671aaf4ce353a73  LICENSES/murmurhash2-public-domain.txt
 sha256  1a7adaa2c86cedfd6c7f5c0c7c72fd6d3e02cd0c9593f21fdb53c89bb2b130ec  LICENSES/OFL-1.1.txt
-sha256  11801e931f252252a16eac8299465510d0a82c36bfd9ac8aea9b202b76d2f82b  LICENSES/README.md
+sha256  da9b2c7b8cd10516fd2c4279b82496ea61787148f13e899c62fc8988c5fac34f  LICENSES/README.md
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index b96873b73f..b0597f9bb4 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -19,7 +19,7 @@
 # - Diff sysusers.d with the previous version
 # - Diff factory/etc/nsswitch.conf with the previous version
 #   (details are often sprinkled around in README and manpages)
-SYSTEMD_VERSION = 250.8
+SYSTEMD_VERSION = 252.4
 SYSTEMD_SITE = $(call github,systemd,systemd-stable,v$(SYSTEMD_VERSION))
 SYSTEMD_LICENSE = \
 	LGPL-2.1+, \
@@ -29,6 +29,7 @@ SYSTEMD_LICENSE = \
 	BSD-3-Clause (tools/chromiumos), \
 	CC0-1.0 (few source files, see LICENSES/README.md), \
 	GPL-2.0 with Linux-syscall-note (linux kernel headers), \
+	MIT-0 (few source files, see LICENSES/README.md), \
 	MIT (few source files, see LICENSES/README.md), \
 	OFL-1.1 (Heebo fonts)
 SYSTEMD_LICENSE_FILES = \
@@ -40,6 +41,7 @@ SYSTEMD_LICENSE_FILES = \
 	LICENSES/LGPL-2.0-or-later.txt \
 	LICENSES/Linux-syscall-note.txt \
 	LICENSES/lookup3-public-domain.txt \
+	LICENSES/MIT-0.txt \
 	LICENSES/MIT.txt \
 	LICENSES/murmurhash2-public-domain.txt \
 	LICENSES/OFL-1.1.txt \
@@ -61,7 +63,13 @@ SYSTEMD_SELINUX_MODULES = systemd udev xdg
 SYSTEMD_PROVIDES = udev
 
 SYSTEMD_CONF_OPTS += \
+	-Ddbus=false \
+	-Ddbus-interfaces-dir=no \
+	-Ddefault-compression='auto' \
 	-Ddefault-hierarchy=unified \
+	-Ddefault-locale='C.UTF-8' \
+	-Ddefault-user-shell=/bin/sh \
+	-Dfirst-boot-full-preset=false \
 	-Didn=true \
 	-Dima=false \
 	-Dkexec-path=/usr/sbin/kexec \
@@ -72,6 +80,7 @@ SYSTEMD_CONF_OPTS += \
 	-Dman=false \
 	-Dmount-path=/usr/bin/mount \
 	-Dmode=release \
+	-Dnspawn-locale='C.UTF-8' \
 	-Dnss-systemd=true \
 	-Dquotacheck-path=/usr/sbin/quotacheck \
 	-Dquotaon-path=/usr/sbin/quotaon \
@@ -82,6 +91,7 @@ SYSTEMD_CONF_OPTS += \
 	-Dsulogin-path=/usr/sbin/sulogin \
 	-Dsystem-gid-max=999 \
 	-Dsystem-uid-max=999 \
+	-Dsysupdate=false \
 	-Dsysvinit-path= \
 	-Dsysvrcnd-path= \
 	-Dtelinit-path= \
@@ -553,7 +563,6 @@ SYSTEMD_DEPENDENCIES += gnu-efi
 SYSTEMD_CONF_OPTS += \
 	-Defi=true \
 	-Dgnu-efi=true \
-	-Defi-cc=$(TARGET_CC) \
 	-Defi-ld=bfd \
 	-Defi-libdir=$(STAGING_DIR)/usr/lib \
 	-Defi-includedir=$(STAGING_DIR)/usr/include/efi
@@ -793,6 +802,8 @@ HOST_SYSTEMD_CONF_OPTS = \
 	-Dbinfmt=false \
 	-Drepart=false \
 	-Dcoredump=false \
+	-Ddbus=false \
+	-Ddbus-interfaces-dir=no \
 	-Dpstore=false \
 	-Doomd=false \
 	-Dlogind=false \
@@ -801,6 +812,7 @@ HOST_SYSTEMD_CONF_OPTS = \
 	-Dmachined=false \
 	-Dportabled=false \
 	-Dsysext=false \
+	-Dsysupdate=false \
 	-Duserdb=false \
 	-Dhomed=false \
 	-Dnetworkd=false \
diff --git a/system/Config.in b/system/Config.in
index 806a747315..232bdfe763 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -125,19 +125,19 @@ config BR2_INIT_SYSTEMD
 	depends on BR2_TOOLCHAIN_USES_GLIBC
 	depends on BR2_TOOLCHAIN_HAS_SSP
 	depends on BR2_TOOLCHAIN_HAS_THREADS
-	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
 	depends on BR2_HOST_GCC_AT_LEAST_5
 	select BR2_ROOTFS_MERGED_USR
 	select BR2_PACKAGE_SYSTEMD
 	select BR2_PACKAGE_SKELETON_INIT_SYSTEMD if BR2_ROOTFS_SKELETON_DEFAULT
 
-comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.10, host and target gcc >= 5"
+comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.15, host and target gcc >= 5"
 	depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
 	depends on BR2_USE_MMU
 	depends on !BR2_TOOLCHAIN_USES_GLIBC || \
 		!BR2_TOOLCHAIN_HAS_SSP || \
-		!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 || \
+		!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 || \
 		!BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
 		!BR2_HOST_GCC_AT_LEAST_5
 
-- 
2.39.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v8 2/4] package/systemd: Add config option for sysupdate feature
  2023-01-15 11:48 [Buildroot] [PATCH v8 1/4] package/systemd: bump to version 252.4 Norbert Lange
@ 2023-01-15 11:48 ` Norbert Lange
  2023-02-07 17:16   ` Arnout Vandecappelle
  2023-01-15 11:48 ` [Buildroot] [PATCH v8 3/4] package/systemd: support dnssec if openssl is available Norbert Lange
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 11+ messages in thread
From: Norbert Lange @ 2023-01-15 11:48 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Yann E . MORIN, Sen Hastings, Norbert Lange

Support the new feature added with v251,
requires openssl.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
Reviewed-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/systemd/Config.in  | 12 ++++++++++++
 package/systemd/systemd.mk |  7 ++++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/package/systemd/Config.in b/package/systemd/Config.in
index f35305c0be..9278772951 100644
--- a/package/systemd/Config.in
+++ b/package/systemd/Config.in
@@ -481,6 +481,18 @@ config BR2_PACKAGE_SYSTEMD_SYSEXT
 
 	  https://www.freedesktop.org/software/systemd/man/systemd-sysext.html
 
+config BR2_PACKAGE_SYSTEMD_SYSUPDATE
+	bool "enable sysupdate support"
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
+	select BR2_PACKAGE_UTIL_LINUX_LIBFDISK
+	help
+	  systemd-sysupdate atomically updates the host OS, container
+	  images, portable service images or other sources, based on
+	  the transfer configuration files described in sysupdate.d.
+
+	  https://www.freedesktop.org/software/systemd/man/systemd-sysupdate.html
+
 config BR2_PACKAGE_SYSTEMD_SYSUSERS
 	bool "enable sysusers support"
 	help
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index b0597f9bb4..f49d34d32f 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -91,7 +91,6 @@ SYSTEMD_CONF_OPTS += \
 	-Dsulogin-path=/usr/sbin/sulogin \
 	-Dsystem-gid-max=999 \
 	-Dsystem-uid-max=999 \
-	-Dsysupdate=false \
 	-Dsysvinit-path= \
 	-Dsysvrcnd-path= \
 	-Dtelinit-path= \
@@ -489,6 +488,12 @@ else
 SYSTEMD_CONF_OPTS += -Dsysext=false
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD_SYSUPDATE),y)
+SYSTEMD_CONF_OPTS += -Dsysupdate=true
+else
+SYSTEMD_CONF_OPTS += -Dsysupdate=false
+endif
+
 ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
 SYSTEMD_CONF_OPTS += -Dnetworkd=true
 SYSTEMD_NETWORKD_USER = systemd-network -1 systemd-network -1 * - - - systemd Network Management
-- 
2.39.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v8 3/4] package/systemd: support dnssec if openssl is available
  2023-01-15 11:48 [Buildroot] [PATCH v8 1/4] package/systemd: bump to version 252.4 Norbert Lange
  2023-01-15 11:48 ` [Buildroot] [PATCH v8 2/4] package/systemd: Add config option for sysupdate feature Norbert Lange
@ 2023-01-15 11:48 ` Norbert Lange
  2023-02-07 17:58   ` Arnout Vandecappelle
  2023-01-15 11:48 ` [Buildroot] [PATCH v8 4/4] system: Warn if systemd is used with kernel < 4.15 Norbert Lange
  2023-02-07 16:41 ` [Buildroot] [PATCH v8 1/4] package/systemd: bump to version 252.4 Arnout Vandecappelle
  3 siblings, 1 reply; 11+ messages in thread
From: Norbert Lange @ 2023-01-15 11:48 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Yann E . MORIN, Sen Hastings, Norbert Lange

Set -Ddefault-dnssec=allow-downgrade if openssl is available as both
openssl and gcrypt are now supported for dnssec.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
Reviewed-by: James Hilliard <james.hilliard1@gmail.com>

---
v6->v7:

*   split off as its own patch
*   seems that the change was done at v250 or earlier
---
 package/systemd/systemd.mk | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index f49d34d32f..297cc400ee 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -246,9 +246,9 @@ endif
 
 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
 SYSTEMD_DEPENDENCIES += libgcrypt
-SYSTEMD_CONF_OPTS += -Ddefault-dnssec=allow-downgrade -Dgcrypt=true
+SYSTEMD_CONF_OPTS += -Dgcrypt=true
 else
-SYSTEMD_CONF_OPTS += -Ddefault-dnssec=no -Dgcrypt=false
+SYSTEMD_CONF_OPTS += -Dgcrypt=false
 endif
 
 ifeq ($(BR2_PACKAGE_P11_KIT),y)
@@ -318,6 +318,12 @@ else
 SYSTEMD_CONF_OPTS += -Dselinux=false
 endif
 
+ifneq ($(BR2_PACKAGE_LIBGCRYPT)$(BR2_PACKAGE_LIBOPENSSL),)
+SYSTEMD_CONF_OPTS += -Ddefault-dnssec=allow-downgrade
+else
+SYSTEMD_CONF_OPTS += -Ddefault-dnssec=no
+endif
+
 ifeq ($(BR2_PACKAGE_SYSTEMD_HWDB),y)
 SYSTEMD_CONF_OPTS += -Dhwdb=true
 define SYSTEMD_BUILD_HWDB
-- 
2.39.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v8 4/4] system: Warn if systemd is used with kernel < 4.15
  2023-01-15 11:48 [Buildroot] [PATCH v8 1/4] package/systemd: bump to version 252.4 Norbert Lange
  2023-01-15 11:48 ` [Buildroot] [PATCH v8 2/4] package/systemd: Add config option for sysupdate feature Norbert Lange
  2023-01-15 11:48 ` [Buildroot] [PATCH v8 3/4] package/systemd: support dnssec if openssl is available Norbert Lange
@ 2023-01-15 11:48 ` Norbert Lange
  2023-02-07 21:57   ` Arnout Vandecappelle
  2023-02-07 16:41 ` [Buildroot] [PATCH v8 1/4] package/systemd: bump to version 252.4 Arnout Vandecappelle
  3 siblings, 1 reply; 11+ messages in thread
From: Norbert Lange @ 2023-01-15 11:48 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Yann E . MORIN, Norbert Lange

To quote the README:

> Kernel versions below 4.15 have significant gaps in functionality and
> are not recommended for use with this version of systemd. Taint flag
> 'old-kernel' will be set. Systemd will most likely still function, but
> upstream support and testing are limited.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
Reviewed-by: James Hilliard <james.hilliard1@gmail.com>
---
 system/Config.in | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/system/Config.in b/system/Config.in
index 232bdfe763..70ddf8df3c 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -141,6 +141,15 @@ comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.15, host and targe
 		!BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
 		!BR2_HOST_GCC_AT_LEAST_5
 
+comment "systemd highly recommends headers >= 4.15"
+	depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
+	depends on BR2_USE_MMU
+	depends on BR2_TOOLCHAIN_USES_GLIBC
+	depends on BR2_TOOLCHAIN_HAS_SSP
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
+	depends on BR2_HOST_GCC_AT_LEAST_5
+	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
+
 config BR2_INIT_NONE
 	bool "None"
 	select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_ROOTFS_SKELETON_DEFAULT
-- 
2.39.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [Buildroot] [PATCH v8 1/4] package/systemd: bump to version 252.4
  2023-01-15 11:48 [Buildroot] [PATCH v8 1/4] package/systemd: bump to version 252.4 Norbert Lange
                   ` (2 preceding siblings ...)
  2023-01-15 11:48 ` [Buildroot] [PATCH v8 4/4] system: Warn if systemd is used with kernel < 4.15 Norbert Lange
@ 2023-02-07 16:41 ` Arnout Vandecappelle
  2023-02-07 18:38   ` Norbert Lange
  3 siblings, 1 reply; 11+ messages in thread
From: Arnout Vandecappelle @ 2023-02-07 16:41 UTC (permalink / raw)
  To: Norbert Lange, buildroot; +Cc: James Hilliard, Yann E . MORIN, Sen Hastings



On 15/01/2023 12:48, Norbert Lange wrote:
> Following files changed *license* from CC0-1.0 to MIT-0:
> 
> -   src/systemctl/systemd-sysv-install.SKELETON
> -   config files
> -   examples under /network
> 
> The file LICENSES/MIT-0.txt has been added for this reason,
> hashes added, corrected for LICENSES/README.md.
> 
> Kernel version 3.15 is now the bare minimum, but only
> version 4.15 and higher are fully supported and tested:
> 
> -   bump kernel header dependencies
> -   correct kconfig description
> -   improvements to make the kconfig description better reflect
>      the information from the README
> 
> Remove upstreamed patch.

  This is not actually done in this v8, probably left over from some earlier 
version.

> 
> Set new options to their default, remove -Defi-cc option.
> 
> Set -Ddbus=false to ensure dbus dependency is runtime only.
> 
> Set -Ddbus-interfaces-dir=no as interface XML file generation is
> not supported when cross compiling.

  I guess we could set this to yes for host-systemd, then copy the XML files to 
target. But they probably depend to some extent on the configuration, and it 
adds a lot to build time, and I doubt it is very useful to begin with...

> 
> Set -Ddefault-user-shell=/bin/sh to the always available shell.
> 
> Signed-off-by: Norbert Lange <nolange79@gmail.com>
> Reviewed-by: James Hilliard <james.hilliard1@gmail.com>

[snip]
> ---
> 
> License diff for illustration
> 
> --- systemd-stable-250.4/LICENSES/README.md
> +++ systemd-stable-252.1/LICENSES/README.md
> @@ -45,9 +45,11 @@
>    * the following sources are licensed under the **CC0-1.0** license:
>      - src/basic/siphash24.c
>      - src/basic/siphash24.h
> -   - src/systemctl/systemd-sysv-install.SKELETON
>      - tools/check-includes.pl
> +  * the following sources are licensed under the **MIT-0** license:
>      - all examples under man/
> +   - src/systemctl/systemd-sysv-install.SKELETON
> +   - config files and examples under /network
>    * the following sources are under **Public Domain** (LicenseRef-murmurhash2-public-domain):
>      - src/basic/MurmurHash2.c
>      - src/basic/MurmurHash2.h

  Very nice that you include this! However, git-am (and patchwork) interpret 
this as a hunk of the overall patch, so it fails and I had to manually adapt. In 
the future, please prefix with a space or something to avoid that.

  Applied to master, thanks. (Not pushed yet, I may make more changes while 
reviewing the rest of the series.)

  Regards,
  Arnout

> 
> package/systemd: 252.4
> ---
>   package/systemd/Config.in    | 12 +++++++++---
>   package/systemd/systemd.hash |  5 +++--
>   package/systemd/systemd.mk   | 16 ++++++++++++++--
>   system/Config.in             |  6 +++---
>   4 files changed, 29 insertions(+), 10 deletions(-)
> 
> diff --git a/package/systemd/Config.in b/package/systemd/Config.in
> index 45a9e2d644..f35305c0be 100644
> --- a/package/systemd/Config.in
> +++ b/package/systemd/Config.in
> @@ -22,7 +22,7 @@ menuconfig BR2_PACKAGE_SYSTEMD
>   	depends on !BR2_STATIC_LIBS # kmod
>   	depends on BR2_TOOLCHAIN_USES_GLIBC
>   	depends on BR2_TOOLCHAIN_HAS_SSP
> -	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
> +	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
>   	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
>   	depends on BR2_HOST_GCC_AT_LEAST_5 # host-systemd
>   	select BR2_PACKAGE_HAS_UDEV
> @@ -51,7 +51,11 @@ menuconfig BR2_PACKAGE_SYSTEMD
>   	  an elaborate transactional dependency-based service control
>   	  logic.  It can work as a drop-in replacement for sysvinit.
>   
> -	  Systemd requires a Linux kernel >= 3.13 with the following
> +	  Kernel versions below 4.15 ("recommended baseline") have
> +	  significant gaps in functionality and are not recommended
> +	  for use with this version of systemd.
> +
> +	  Systemd requires a Linux kernel >= 3.15 with the following
>   	  options enabled:
>   
>   	  - CONFIG_DEVTMPFS
> @@ -66,9 +70,11 @@ menuconfig BR2_PACKAGE_SYSTEMD
>   	  - CONFIG_PROC_FS
>   	  - CONFIG_FHANDLE (libudev, mount and bind mount handling)
>   
> -	  - CONFIG_NET_NS (needed by PrivateNetwork=, used in some
> +	  - CONFIG_NET_NS (Required for PrivateNetwork=, used in some
>   	    systemd units)
>   
> +	  - CONFIG_USER_NS (Required for PrivateUsers=)
> +
>   	  - CONFIG_AUTOFS_FS / CONFIG_AUTOFS4_FS
>   	  - CONFIG_TMPFS_POSIX_ACL
>   	  - CONFIG_TMPFS_XATTR
> diff --git a/package/systemd/systemd.hash b/package/systemd/systemd.hash
> index 3b98566f32..00c08edcd9 100644
> --- a/package/systemd/systemd.hash
> +++ b/package/systemd/systemd.hash
> @@ -1,5 +1,5 @@
>   # sha256 locally computed
> -sha256  638a2fc78828765fc97bc73f428205b6dc1d359149b6c6bfe4d2a649cba2cca8  systemd-250.8.tar.gz
> +sha256  cf2d27e67663d599a045101c7178cf0ec63d9df2962a54adf7de0d0357724f00  systemd-252.4.tar.gz
>   sha256  ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  LICENSE.GPL2
>   sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  LICENSE.LGPL2.1
>   sha256  e5a8645ad94aab24e312dd0c6be2aa54236eb9374480b1b14ea5c61598874fd5  LICENSES/BSD-2-Clause.txt
> @@ -8,7 +8,8 @@ sha256  a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499  LICENS
>   sha256  61778e80a2fd85955b626b29aa2bcf06144c714277bded65633e4a81479d9fb3  LICENSES/LGPL-2.0-or-later.txt
>   sha256  5bcef4fedbfc08776630e65d5d0d074dd31208037eddb167ca46a9ec4f737764  LICENSES/Linux-syscall-note.txt
>   sha256  790ac93fb2859097bdda4cf08b5a4feb5e479d0cb2c74f403248241bc3e7c216  LICENSES/lookup3-public-domain.txt
> +sha256  8a6fc0879cecc0b96bf4c08159b9d733bf0f15fcf32879aec98c4ffd05424554  LICENSES/MIT-0.txt
>   sha256  b85dcd3e453d05982552c52b5fc9e0bdd6d23c6f8e844b984a88af32570b0cc0  LICENSES/MIT.txt
>   sha256  2a98749f6bec00dfaed86fa9c1edea871aaae4f11ee4d100b671aaf4ce353a73  LICENSES/murmurhash2-public-domain.txt
>   sha256  1a7adaa2c86cedfd6c7f5c0c7c72fd6d3e02cd0c9593f21fdb53c89bb2b130ec  LICENSES/OFL-1.1.txt
> -sha256  11801e931f252252a16eac8299465510d0a82c36bfd9ac8aea9b202b76d2f82b  LICENSES/README.md
> +sha256  da9b2c7b8cd10516fd2c4279b82496ea61787148f13e899c62fc8988c5fac34f  LICENSES/README.md
> diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
> index b96873b73f..b0597f9bb4 100644
> --- a/package/systemd/systemd.mk
> +++ b/package/systemd/systemd.mk
> @@ -19,7 +19,7 @@
>   # - Diff sysusers.d with the previous version
>   # - Diff factory/etc/nsswitch.conf with the previous version
>   #   (details are often sprinkled around in README and manpages)
> -SYSTEMD_VERSION = 250.8
> +SYSTEMD_VERSION = 252.4
>   SYSTEMD_SITE = $(call github,systemd,systemd-stable,v$(SYSTEMD_VERSION))
>   SYSTEMD_LICENSE = \
>   	LGPL-2.1+, \
> @@ -29,6 +29,7 @@ SYSTEMD_LICENSE = \
>   	BSD-3-Clause (tools/chromiumos), \
>   	CC0-1.0 (few source files, see LICENSES/README.md), \
>   	GPL-2.0 with Linux-syscall-note (linux kernel headers), \
> +	MIT-0 (few source files, see LICENSES/README.md), \
>   	MIT (few source files, see LICENSES/README.md), \
>   	OFL-1.1 (Heebo fonts)
>   SYSTEMD_LICENSE_FILES = \
> @@ -40,6 +41,7 @@ SYSTEMD_LICENSE_FILES = \
>   	LICENSES/LGPL-2.0-or-later.txt \
>   	LICENSES/Linux-syscall-note.txt \
>   	LICENSES/lookup3-public-domain.txt \
> +	LICENSES/MIT-0.txt \
>   	LICENSES/MIT.txt \
>   	LICENSES/murmurhash2-public-domain.txt \
>   	LICENSES/OFL-1.1.txt \
> @@ -61,7 +63,13 @@ SYSTEMD_SELINUX_MODULES = systemd udev xdg
>   SYSTEMD_PROVIDES = udev
>   
>   SYSTEMD_CONF_OPTS += \
> +	-Ddbus=false \
> +	-Ddbus-interfaces-dir=no \
> +	-Ddefault-compression='auto' \
>   	-Ddefault-hierarchy=unified \
> +	-Ddefault-locale='C.UTF-8' \
> +	-Ddefault-user-shell=/bin/sh \
> +	-Dfirst-boot-full-preset=false \
>   	-Didn=true \
>   	-Dima=false \
>   	-Dkexec-path=/usr/sbin/kexec \
> @@ -72,6 +80,7 @@ SYSTEMD_CONF_OPTS += \
>   	-Dman=false \
>   	-Dmount-path=/usr/bin/mount \
>   	-Dmode=release \
> +	-Dnspawn-locale='C.UTF-8' \
>   	-Dnss-systemd=true \
>   	-Dquotacheck-path=/usr/sbin/quotacheck \
>   	-Dquotaon-path=/usr/sbin/quotaon \
> @@ -82,6 +91,7 @@ SYSTEMD_CONF_OPTS += \
>   	-Dsulogin-path=/usr/sbin/sulogin \
>   	-Dsystem-gid-max=999 \
>   	-Dsystem-uid-max=999 \
> +	-Dsysupdate=false \
>   	-Dsysvinit-path= \
>   	-Dsysvrcnd-path= \
>   	-Dtelinit-path= \
> @@ -553,7 +563,6 @@ SYSTEMD_DEPENDENCIES += gnu-efi
>   SYSTEMD_CONF_OPTS += \
>   	-Defi=true \
>   	-Dgnu-efi=true \
> -	-Defi-cc=$(TARGET_CC) \
>   	-Defi-ld=bfd \
>   	-Defi-libdir=$(STAGING_DIR)/usr/lib \
>   	-Defi-includedir=$(STAGING_DIR)/usr/include/efi
> @@ -793,6 +802,8 @@ HOST_SYSTEMD_CONF_OPTS = \
>   	-Dbinfmt=false \
>   	-Drepart=false \
>   	-Dcoredump=false \
> +	-Ddbus=false \
> +	-Ddbus-interfaces-dir=no \
>   	-Dpstore=false \
>   	-Doomd=false \
>   	-Dlogind=false \
> @@ -801,6 +812,7 @@ HOST_SYSTEMD_CONF_OPTS = \
>   	-Dmachined=false \
>   	-Dportabled=false \
>   	-Dsysext=false \
> +	-Dsysupdate=false \
>   	-Duserdb=false \
>   	-Dhomed=false \
>   	-Dnetworkd=false \
> diff --git a/system/Config.in b/system/Config.in
> index 806a747315..232bdfe763 100644
> --- a/system/Config.in
> +++ b/system/Config.in
> @@ -125,19 +125,19 @@ config BR2_INIT_SYSTEMD
>   	depends on BR2_TOOLCHAIN_USES_GLIBC
>   	depends on BR2_TOOLCHAIN_HAS_SSP
>   	depends on BR2_TOOLCHAIN_HAS_THREADS
> -	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
> +	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
>   	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
>   	depends on BR2_HOST_GCC_AT_LEAST_5
>   	select BR2_ROOTFS_MERGED_USR
>   	select BR2_PACKAGE_SYSTEMD
>   	select BR2_PACKAGE_SKELETON_INIT_SYSTEMD if BR2_ROOTFS_SKELETON_DEFAULT
>   
> -comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.10, host and target gcc >= 5"
> +comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.15, host and target gcc >= 5"
>   	depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
>   	depends on BR2_USE_MMU
>   	depends on !BR2_TOOLCHAIN_USES_GLIBC || \
>   		!BR2_TOOLCHAIN_HAS_SSP || \
> -		!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 || \
> +		!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 || \
>   		!BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
>   		!BR2_HOST_GCC_AT_LEAST_5
>   
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Buildroot] [PATCH v8 2/4] package/systemd: Add config option for sysupdate feature
  2023-01-15 11:48 ` [Buildroot] [PATCH v8 2/4] package/systemd: Add config option for sysupdate feature Norbert Lange
@ 2023-02-07 17:16   ` Arnout Vandecappelle
  2023-02-07 18:42     ` Norbert Lange
  0 siblings, 1 reply; 11+ messages in thread
From: Arnout Vandecappelle @ 2023-02-07 17:16 UTC (permalink / raw)
  To: Norbert Lange, buildroot; +Cc: James Hilliard, Yann E . MORIN, Sen Hastings



On 15/01/2023 12:48, Norbert Lange wrote:
> Support the new feature added with v251,
> requires openssl.
> 
> Signed-off-by: Norbert Lange <nolange79@gmail.com>
> Reviewed-by: James Hilliard <james.hilliard1@gmail.com>
> ---
>   package/systemd/Config.in  | 12 ++++++++++++
>   package/systemd/systemd.mk |  7 ++++++-
>   2 files changed, 18 insertions(+), 1 deletion(-)
> 
> diff --git a/package/systemd/Config.in b/package/systemd/Config.in
> index f35305c0be..9278772951 100644
> --- a/package/systemd/Config.in
> +++ b/package/systemd/Config.in
> @@ -481,6 +481,18 @@ config BR2_PACKAGE_SYSTEMD_SYSEXT
>   
>   	  https://www.freedesktop.org/software/systemd/man/systemd-sysext.html
>   
> +config BR2_PACKAGE_SYSTEMD_SYSUPDATE
> +	bool "enable sysupdate support"
> +	select BR2_PACKAGE_OPENSSL
> +	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
> +	select BR2_PACKAGE_UTIL_LINUX_LIBFDISK

  AFAIU, sysupdate uses its own particular way of doing A/B updates (by updating 
the GPT partition table) which is only supported by systemd-boot. Although I 
suppose it's possible to write a U-Boot script that does the same thing... So I 
added a note here to that effect. I don't suppose you actually used this option?


  Applied to master, thanks.

  Regards,
  Arnout


> +	help
> +	  systemd-sysupdate atomically updates the host OS, container
> +	  images, portable service images or other sources, based on
> +	  the transfer configuration files described in sysupdate.d.
> +
> +	  https://www.freedesktop.org/software/systemd/man/systemd-sysupdate.html
> +
>   config BR2_PACKAGE_SYSTEMD_SYSUSERS
>   	bool "enable sysusers support"
>   	help
> diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
> index b0597f9bb4..f49d34d32f 100644
> --- a/package/systemd/systemd.mk
> +++ b/package/systemd/systemd.mk
> @@ -91,7 +91,6 @@ SYSTEMD_CONF_OPTS += \
>   	-Dsulogin-path=/usr/sbin/sulogin \
>   	-Dsystem-gid-max=999 \
>   	-Dsystem-uid-max=999 \
> -	-Dsysupdate=false \
>   	-Dsysvinit-path= \
>   	-Dsysvrcnd-path= \
>   	-Dtelinit-path= \
> @@ -489,6 +488,12 @@ else
>   SYSTEMD_CONF_OPTS += -Dsysext=false
>   endif
>   
> +ifeq ($(BR2_PACKAGE_SYSTEMD_SYSUPDATE),y)
> +SYSTEMD_CONF_OPTS += -Dsysupdate=true
> +else
> +SYSTEMD_CONF_OPTS += -Dsysupdate=false
> +endif
> +
>   ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
>   SYSTEMD_CONF_OPTS += -Dnetworkd=true
>   SYSTEMD_NETWORKD_USER = systemd-network -1 systemd-network -1 * - - - systemd Network Management
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Buildroot] [PATCH v8 3/4] package/systemd: support dnssec if openssl is available
  2023-01-15 11:48 ` [Buildroot] [PATCH v8 3/4] package/systemd: support dnssec if openssl is available Norbert Lange
@ 2023-02-07 17:58   ` Arnout Vandecappelle
  0 siblings, 0 replies; 11+ messages in thread
From: Arnout Vandecappelle @ 2023-02-07 17:58 UTC (permalink / raw)
  To: Norbert Lange, buildroot; +Cc: James Hilliard, Yann E . MORIN, Sen Hastings



On 15/01/2023 12:48, Norbert Lange wrote:
> Set -Ddefault-dnssec=allow-downgrade if openssl is available as both
> openssl and gcrypt are now supported for dnssec.
> 
> Signed-off-by: Norbert Lange <nolange79@gmail.com>
> Reviewed-by: James Hilliard <james.hilliard1@gmail.com>

  Applied to master, thanks. (Still not pushed - systemd runtime tests are 
failing locally, I'm trying to see if this was already the case before the 
version bump.)

  Regards,
  Arnout

> 
> ---
> v6->v7:
> 
> *   split off as its own patch
> *   seems that the change was done at v250 or earlier
> ---
>   package/systemd/systemd.mk | 10 ++++++++--
>   1 file changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
> index f49d34d32f..297cc400ee 100644
> --- a/package/systemd/systemd.mk
> +++ b/package/systemd/systemd.mk
> @@ -246,9 +246,9 @@ endif
>   
>   ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
>   SYSTEMD_DEPENDENCIES += libgcrypt
> -SYSTEMD_CONF_OPTS += -Ddefault-dnssec=allow-downgrade -Dgcrypt=true
> +SYSTEMD_CONF_OPTS += -Dgcrypt=true
>   else
> -SYSTEMD_CONF_OPTS += -Ddefault-dnssec=no -Dgcrypt=false
> +SYSTEMD_CONF_OPTS += -Dgcrypt=false
>   endif
>   
>   ifeq ($(BR2_PACKAGE_P11_KIT),y)
> @@ -318,6 +318,12 @@ else
>   SYSTEMD_CONF_OPTS += -Dselinux=false
>   endif
>   
> +ifneq ($(BR2_PACKAGE_LIBGCRYPT)$(BR2_PACKAGE_LIBOPENSSL),)
> +SYSTEMD_CONF_OPTS += -Ddefault-dnssec=allow-downgrade
> +else
> +SYSTEMD_CONF_OPTS += -Ddefault-dnssec=no
> +endif
> +
>   ifeq ($(BR2_PACKAGE_SYSTEMD_HWDB),y)
>   SYSTEMD_CONF_OPTS += -Dhwdb=true
>   define SYSTEMD_BUILD_HWDB
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Buildroot] [PATCH v8 1/4] package/systemd: bump to version 252.4
  2023-02-07 16:41 ` [Buildroot] [PATCH v8 1/4] package/systemd: bump to version 252.4 Arnout Vandecappelle
@ 2023-02-07 18:38   ` Norbert Lange
  2023-02-07 21:57     ` Arnout Vandecappelle
  0 siblings, 1 reply; 11+ messages in thread
From: Norbert Lange @ 2023-02-07 18:38 UTC (permalink / raw)
  To: Arnout Vandecappelle
  Cc: James Hilliard, Yann E . MORIN, Sen Hastings, buildroot

Am Di., 7. Feb. 2023 um 17:41 Uhr schrieb Arnout Vandecappelle <arnout@mind.be>:
>
>
>
> On 15/01/2023 12:48, Norbert Lange wrote:
> > Following files changed *license* from CC0-1.0 to MIT-0:
> >
> > -   src/systemctl/systemd-sysv-install.SKELETON
> > -   config files
> > -   examples under /network
> >
> > The file LICENSES/MIT-0.txt has been added for this reason,
> > hashes added, corrected for LICENSES/README.md.
> >
> > Kernel version 3.15 is now the bare minimum, but only
> > version 4.15 and higher are fully supported and tested:
> >
> > -   bump kernel header dependencies
> > -   correct kconfig description
> > -   improvements to make the kconfig description better reflect
> >      the information from the README
> >
> > Remove upstreamed patch.
>
>   This is not actually done in this v8, probably left over from some earlier
> version.

possibly lost when rebasing

>
> >
> > Set new options to their default, remove -Defi-cc option.
> >
> > Set -Ddbus=false to ensure dbus dependency is runtime only.
> >
> > Set -Ddbus-interfaces-dir=no as interface XML file generation is
> > not supported when cross compiling.
>
>   I guess we could set this to yes for host-systemd, then copy the XML files to
> target. But they probably depend to some extent on the configuration, and it
> adds a lot to build time, and I doubt it is very useful to begin with...

Dont know what they are used for, outside of dev tools

>
> >
> > Set -Ddefault-user-shell=/bin/sh to the always available shell.
> >
> > Signed-off-by: Norbert Lange <nolange79@gmail.com>
> > Reviewed-by: James Hilliard <james.hilliard1@gmail.com>
>
> [snip]
> > ---
> >
> > License diff for illustration
> >
> > --- systemd-stable-250.4/LICENSES/README.md
> > +++ systemd-stable-252.1/LICENSES/README.md
> > @@ -45,9 +45,11 @@
> >    * the following sources are licensed under the **CC0-1.0** license:
> >      - src/basic/siphash24.c
> >      - src/basic/siphash24.h
> > -   - src/systemctl/systemd-sysv-install.SKELETON
> >      - tools/check-includes.pl
> > +  * the following sources are licensed under the **MIT-0** license:
> >      - all examples under man/
> > +   - src/systemctl/systemd-sysv-install.SKELETON
> > +   - config files and examples under /network
> >    * the following sources are under **Public Domain** (LicenseRef-murmurhash2-public-domain):
> >      - src/basic/MurmurHash2.c
> >      - src/basic/MurmurHash2.h
>
>   Very nice that you include this! However, git-am (and patchwork) interpret
> this as a hunk of the overall patch, so it fails and I had to manually adapt. In
> the future, please prefix with a space or something to avoid that.

Ok, but I probably forget it till I the next time,
my git commit message scheme is a fuzzy copy of stuff I seen.

>
>   Applied to master, thanks. (Not pushed yet, I may make more changes while
> reviewing the rest of the series.)

Wouldnt mind if you do a stealthy bump to 254.5 before going through
all testing trouble ;)

Regards, Norbert
>
>   Regards,
>   Arnout
>
> >
> > package/systemd: 252.4
> > ---
> >   package/systemd/Config.in    | 12 +++++++++---
> >   package/systemd/systemd.hash |  5 +++--
> >   package/systemd/systemd.mk   | 16 ++++++++++++++--
> >   system/Config.in             |  6 +++---
> >   4 files changed, 29 insertions(+), 10 deletions(-)
> >
> > diff --git a/package/systemd/Config.in b/package/systemd/Config.in
> > index 45a9e2d644..f35305c0be 100644
> > --- a/package/systemd/Config.in
> > +++ b/package/systemd/Config.in
> > @@ -22,7 +22,7 @@ menuconfig BR2_PACKAGE_SYSTEMD
> >       depends on !BR2_STATIC_LIBS # kmod
> >       depends on BR2_TOOLCHAIN_USES_GLIBC
> >       depends on BR2_TOOLCHAIN_HAS_SSP
> > -     depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
> > +     depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
> >       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
> >       depends on BR2_HOST_GCC_AT_LEAST_5 # host-systemd
> >       select BR2_PACKAGE_HAS_UDEV
> > @@ -51,7 +51,11 @@ menuconfig BR2_PACKAGE_SYSTEMD
> >         an elaborate transactional dependency-based service control
> >         logic.  It can work as a drop-in replacement for sysvinit.
> >
> > -       Systemd requires a Linux kernel >= 3.13 with the following
> > +       Kernel versions below 4.15 ("recommended baseline") have
> > +       significant gaps in functionality and are not recommended
> > +       for use with this version of systemd.
> > +
> > +       Systemd requires a Linux kernel >= 3.15 with the following
> >         options enabled:
> >
> >         - CONFIG_DEVTMPFS
> > @@ -66,9 +70,11 @@ menuconfig BR2_PACKAGE_SYSTEMD
> >         - CONFIG_PROC_FS
> >         - CONFIG_FHANDLE (libudev, mount and bind mount handling)
> >
> > -       - CONFIG_NET_NS (needed by PrivateNetwork=, used in some
> > +       - CONFIG_NET_NS (Required for PrivateNetwork=, used in some
> >           systemd units)
> >
> > +       - CONFIG_USER_NS (Required for PrivateUsers=)
> > +
> >         - CONFIG_AUTOFS_FS / CONFIG_AUTOFS4_FS
> >         - CONFIG_TMPFS_POSIX_ACL
> >         - CONFIG_TMPFS_XATTR
> > diff --git a/package/systemd/systemd.hash b/package/systemd/systemd.hash
> > index 3b98566f32..00c08edcd9 100644
> > --- a/package/systemd/systemd.hash
> > +++ b/package/systemd/systemd.hash
> > @@ -1,5 +1,5 @@
> >   # sha256 locally computed
> > -sha256  638a2fc78828765fc97bc73f428205b6dc1d359149b6c6bfe4d2a649cba2cca8  systemd-250.8.tar.gz
> > +sha256  cf2d27e67663d599a045101c7178cf0ec63d9df2962a54adf7de0d0357724f00  systemd-252.4.tar.gz
> >   sha256  ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  LICENSE.GPL2
> >   sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  LICENSE.LGPL2.1
> >   sha256  e5a8645ad94aab24e312dd0c6be2aa54236eb9374480b1b14ea5c61598874fd5  LICENSES/BSD-2-Clause.txt
> > @@ -8,7 +8,8 @@ sha256  a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499  LICENS
> >   sha256  61778e80a2fd85955b626b29aa2bcf06144c714277bded65633e4a81479d9fb3  LICENSES/LGPL-2.0-or-later.txt
> >   sha256  5bcef4fedbfc08776630e65d5d0d074dd31208037eddb167ca46a9ec4f737764  LICENSES/Linux-syscall-note.txt
> >   sha256  790ac93fb2859097bdda4cf08b5a4feb5e479d0cb2c74f403248241bc3e7c216  LICENSES/lookup3-public-domain.txt
> > +sha256  8a6fc0879cecc0b96bf4c08159b9d733bf0f15fcf32879aec98c4ffd05424554  LICENSES/MIT-0.txt
> >   sha256  b85dcd3e453d05982552c52b5fc9e0bdd6d23c6f8e844b984a88af32570b0cc0  LICENSES/MIT.txt
> >   sha256  2a98749f6bec00dfaed86fa9c1edea871aaae4f11ee4d100b671aaf4ce353a73  LICENSES/murmurhash2-public-domain.txt
> >   sha256  1a7adaa2c86cedfd6c7f5c0c7c72fd6d3e02cd0c9593f21fdb53c89bb2b130ec  LICENSES/OFL-1.1.txt
> > -sha256  11801e931f252252a16eac8299465510d0a82c36bfd9ac8aea9b202b76d2f82b  LICENSES/README.md
> > +sha256  da9b2c7b8cd10516fd2c4279b82496ea61787148f13e899c62fc8988c5fac34f  LICENSES/README.md
> > diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
> > index b96873b73f..b0597f9bb4 100644
> > --- a/package/systemd/systemd.mk
> > +++ b/package/systemd/systemd.mk
> > @@ -19,7 +19,7 @@
> >   # - Diff sysusers.d with the previous version
> >   # - Diff factory/etc/nsswitch.conf with the previous version
> >   #   (details are often sprinkled around in README and manpages)
> > -SYSTEMD_VERSION = 250.8
> > +SYSTEMD_VERSION = 252.4
> >   SYSTEMD_SITE = $(call github,systemd,systemd-stable,v$(SYSTEMD_VERSION))
> >   SYSTEMD_LICENSE = \
> >       LGPL-2.1+, \
> > @@ -29,6 +29,7 @@ SYSTEMD_LICENSE = \
> >       BSD-3-Clause (tools/chromiumos), \
> >       CC0-1.0 (few source files, see LICENSES/README.md), \
> >       GPL-2.0 with Linux-syscall-note (linux kernel headers), \
> > +     MIT-0 (few source files, see LICENSES/README.md), \
> >       MIT (few source files, see LICENSES/README.md), \
> >       OFL-1.1 (Heebo fonts)
> >   SYSTEMD_LICENSE_FILES = \
> > @@ -40,6 +41,7 @@ SYSTEMD_LICENSE_FILES = \
> >       LICENSES/LGPL-2.0-or-later.txt \
> >       LICENSES/Linux-syscall-note.txt \
> >       LICENSES/lookup3-public-domain.txt \
> > +     LICENSES/MIT-0.txt \
> >       LICENSES/MIT.txt \
> >       LICENSES/murmurhash2-public-domain.txt \
> >       LICENSES/OFL-1.1.txt \
> > @@ -61,7 +63,13 @@ SYSTEMD_SELINUX_MODULES = systemd udev xdg
> >   SYSTEMD_PROVIDES = udev
> >
> >   SYSTEMD_CONF_OPTS += \
> > +     -Ddbus=false \
> > +     -Ddbus-interfaces-dir=no \
> > +     -Ddefault-compression='auto' \
> >       -Ddefault-hierarchy=unified \
> > +     -Ddefault-locale='C.UTF-8' \
> > +     -Ddefault-user-shell=/bin/sh \
> > +     -Dfirst-boot-full-preset=false \
> >       -Didn=true \
> >       -Dima=false \
> >       -Dkexec-path=/usr/sbin/kexec \
> > @@ -72,6 +80,7 @@ SYSTEMD_CONF_OPTS += \
> >       -Dman=false \
> >       -Dmount-path=/usr/bin/mount \
> >       -Dmode=release \
> > +     -Dnspawn-locale='C.UTF-8' \
> >       -Dnss-systemd=true \
> >       -Dquotacheck-path=/usr/sbin/quotacheck \
> >       -Dquotaon-path=/usr/sbin/quotaon \
> > @@ -82,6 +91,7 @@ SYSTEMD_CONF_OPTS += \
> >       -Dsulogin-path=/usr/sbin/sulogin \
> >       -Dsystem-gid-max=999 \
> >       -Dsystem-uid-max=999 \
> > +     -Dsysupdate=false \
> >       -Dsysvinit-path= \
> >       -Dsysvrcnd-path= \
> >       -Dtelinit-path= \
> > @@ -553,7 +563,6 @@ SYSTEMD_DEPENDENCIES += gnu-efi
> >   SYSTEMD_CONF_OPTS += \
> >       -Defi=true \
> >       -Dgnu-efi=true \
> > -     -Defi-cc=$(TARGET_CC) \
> >       -Defi-ld=bfd \
> >       -Defi-libdir=$(STAGING_DIR)/usr/lib \
> >       -Defi-includedir=$(STAGING_DIR)/usr/include/efi
> > @@ -793,6 +802,8 @@ HOST_SYSTEMD_CONF_OPTS = \
> >       -Dbinfmt=false \
> >       -Drepart=false \
> >       -Dcoredump=false \
> > +     -Ddbus=false \
> > +     -Ddbus-interfaces-dir=no \
> >       -Dpstore=false \
> >       -Doomd=false \
> >       -Dlogind=false \
> > @@ -801,6 +812,7 @@ HOST_SYSTEMD_CONF_OPTS = \
> >       -Dmachined=false \
> >       -Dportabled=false \
> >       -Dsysext=false \
> > +     -Dsysupdate=false \
> >       -Duserdb=false \
> >       -Dhomed=false \
> >       -Dnetworkd=false \
> > diff --git a/system/Config.in b/system/Config.in
> > index 806a747315..232bdfe763 100644
> > --- a/system/Config.in
> > +++ b/system/Config.in
> > @@ -125,19 +125,19 @@ config BR2_INIT_SYSTEMD
> >       depends on BR2_TOOLCHAIN_USES_GLIBC
> >       depends on BR2_TOOLCHAIN_HAS_SSP
> >       depends on BR2_TOOLCHAIN_HAS_THREADS
> > -     depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
> > +     depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
> >       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
> >       depends on BR2_HOST_GCC_AT_LEAST_5
> >       select BR2_ROOTFS_MERGED_USR
> >       select BR2_PACKAGE_SYSTEMD
> >       select BR2_PACKAGE_SKELETON_INIT_SYSTEMD if BR2_ROOTFS_SKELETON_DEFAULT
> >
> > -comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.10, host and target gcc >= 5"
> > +comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.15, host and target gcc >= 5"
> >       depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
> >       depends on BR2_USE_MMU
> >       depends on !BR2_TOOLCHAIN_USES_GLIBC || \
> >               !BR2_TOOLCHAIN_HAS_SSP || \
> > -             !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 || \
> > +             !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 || \
> >               !BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
> >               !BR2_HOST_GCC_AT_LEAST_5
> >
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Buildroot] [PATCH v8 2/4] package/systemd: Add config option for sysupdate feature
  2023-02-07 17:16   ` Arnout Vandecappelle
@ 2023-02-07 18:42     ` Norbert Lange
  0 siblings, 0 replies; 11+ messages in thread
From: Norbert Lange @ 2023-02-07 18:42 UTC (permalink / raw)
  To: Arnout Vandecappelle
  Cc: James Hilliard, Yann E . MORIN, Sen Hastings, buildroot

Am Di., 7. Feb. 2023 um 18:16 Uhr schrieb Arnout Vandecappelle <arnout@mind.be>:
>
>
>
> On 15/01/2023 12:48, Norbert Lange wrote:
> > Support the new feature added with v251,
> > requires openssl.
> >
> > Signed-off-by: Norbert Lange <nolange79@gmail.com>
> > Reviewed-by: James Hilliard <james.hilliard1@gmail.com>
> > ---
> >   package/systemd/Config.in  | 12 ++++++++++++
> >   package/systemd/systemd.mk |  7 ++++++-
> >   2 files changed, 18 insertions(+), 1 deletion(-)
> >
> > diff --git a/package/systemd/Config.in b/package/systemd/Config.in
> > index f35305c0be..9278772951 100644
> > --- a/package/systemd/Config.in
> > +++ b/package/systemd/Config.in
> > @@ -481,6 +481,18 @@ config BR2_PACKAGE_SYSTEMD_SYSEXT
> >
> >         https://www.freedesktop.org/software/systemd/man/systemd-sysext.html
> >
> > +config BR2_PACKAGE_SYSTEMD_SYSUPDATE
> > +     bool "enable sysupdate support"
> > +     select BR2_PACKAGE_OPENSSL
> > +     select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
> > +     select BR2_PACKAGE_UTIL_LINUX_LIBFDISK
>
>   AFAIU, sysupdate uses its own particular way of doing A/B updates (by updating
> the GPT partition table) which is only supported by systemd-boot. Although I
> suppose it's possible to write a U-Boot script that does the same thing... So I
> added a note here to that effect. I don't suppose you actually used this option?

I dont think thats the case, there is only some way of measuring
successfull boots,
sysupdate is just a part of the puzzle, you will have to do some
additional work for sure.

No, I havent used it.

>
>
>   Applied to master, thanks.
>
>   Regards,
>   Arnout

Regards, Norbert

>
>
> > +     help
> > +       systemd-sysupdate atomically updates the host OS, container
> > +       images, portable service images or other sources, based on
> > +       the transfer configuration files described in sysupdate.d.
> > +
> > +       https://www.freedesktop.org/software/systemd/man/systemd-sysupdate.html
> > +
> >   config BR2_PACKAGE_SYSTEMD_SYSUSERS
> >       bool "enable sysusers support"
> >       help
> > diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
> > index b0597f9bb4..f49d34d32f 100644
> > --- a/package/systemd/systemd.mk
> > +++ b/package/systemd/systemd.mk
> > @@ -91,7 +91,6 @@ SYSTEMD_CONF_OPTS += \
> >       -Dsulogin-path=/usr/sbin/sulogin \
> >       -Dsystem-gid-max=999 \
> >       -Dsystem-uid-max=999 \
> > -     -Dsysupdate=false \
> >       -Dsysvinit-path= \
> >       -Dsysvrcnd-path= \
> >       -Dtelinit-path= \
> > @@ -489,6 +488,12 @@ else
> >   SYSTEMD_CONF_OPTS += -Dsysext=false
> >   endif
> >
> > +ifeq ($(BR2_PACKAGE_SYSTEMD_SYSUPDATE),y)
> > +SYSTEMD_CONF_OPTS += -Dsysupdate=true
> > +else
> > +SYSTEMD_CONF_OPTS += -Dsysupdate=false
> > +endif
> > +
> >   ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
> >   SYSTEMD_CONF_OPTS += -Dnetworkd=true
> >   SYSTEMD_NETWORKD_USER = systemd-network -1 systemd-network -1 * - - - systemd Network Management
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Buildroot] [PATCH v8 1/4] package/systemd: bump to version 252.4
  2023-02-07 18:38   ` Norbert Lange
@ 2023-02-07 21:57     ` Arnout Vandecappelle
  0 siblings, 0 replies; 11+ messages in thread
From: Arnout Vandecappelle @ 2023-02-07 21:57 UTC (permalink / raw)
  To: Norbert Lange; +Cc: James Hilliard, Yann E . MORIN, Sen Hastings, buildroot



On 07/02/2023 19:38, Norbert Lange wrote:
> Am Di., 7. Feb. 2023 um 17:41 Uhr schrieb Arnout Vandecappelle <arnout@mind.be>:
>>
>>
>>
>> On 15/01/2023 12:48, Norbert Lange wrote:

[snip]
>>    Applied to master, thanks. (Not pushed yet, I may make more changes while
>> reviewing the rest of the series.)
> 
> Wouldnt mind if you do a stealthy bump to 254.5 before going through
> all testing trouble ;)

  I'm afraid I already pushed now...

  Regards,
  Arnout

> 
> Regards, Norbert
>>
>>    Regards,
>>    Arnout
>>
>>>
>>> package/systemd: 252.4
>>> ---
>>>    package/systemd/Config.in    | 12 +++++++++---
>>>    package/systemd/systemd.hash |  5 +++--
>>>    package/systemd/systemd.mk   | 16 ++++++++++++++--
>>>    system/Config.in             |  6 +++---
>>>    4 files changed, 29 insertions(+), 10 deletions(-)
>>>
>>> diff --git a/package/systemd/Config.in b/package/systemd/Config.in
>>> index 45a9e2d644..f35305c0be 100644
>>> --- a/package/systemd/Config.in
>>> +++ b/package/systemd/Config.in
>>> @@ -22,7 +22,7 @@ menuconfig BR2_PACKAGE_SYSTEMD
>>>        depends on !BR2_STATIC_LIBS # kmod
>>>        depends on BR2_TOOLCHAIN_USES_GLIBC
>>>        depends on BR2_TOOLCHAIN_HAS_SSP
>>> -     depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
>>> +     depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
>>>        depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
>>>        depends on BR2_HOST_GCC_AT_LEAST_5 # host-systemd
>>>        select BR2_PACKAGE_HAS_UDEV
>>> @@ -51,7 +51,11 @@ menuconfig BR2_PACKAGE_SYSTEMD
>>>          an elaborate transactional dependency-based service control
>>>          logic.  It can work as a drop-in replacement for sysvinit.
>>>
>>> -       Systemd requires a Linux kernel >= 3.13 with the following
>>> +       Kernel versions below 4.15 ("recommended baseline") have
>>> +       significant gaps in functionality and are not recommended
>>> +       for use with this version of systemd.
>>> +
>>> +       Systemd requires a Linux kernel >= 3.15 with the following
>>>          options enabled:
>>>
>>>          - CONFIG_DEVTMPFS
>>> @@ -66,9 +70,11 @@ menuconfig BR2_PACKAGE_SYSTEMD
>>>          - CONFIG_PROC_FS
>>>          - CONFIG_FHANDLE (libudev, mount and bind mount handling)
>>>
>>> -       - CONFIG_NET_NS (needed by PrivateNetwork=, used in some
>>> +       - CONFIG_NET_NS (Required for PrivateNetwork=, used in some
>>>            systemd units)
>>>
>>> +       - CONFIG_USER_NS (Required for PrivateUsers=)
>>> +
>>>          - CONFIG_AUTOFS_FS / CONFIG_AUTOFS4_FS
>>>          - CONFIG_TMPFS_POSIX_ACL
>>>          - CONFIG_TMPFS_XATTR
>>> diff --git a/package/systemd/systemd.hash b/package/systemd/systemd.hash
>>> index 3b98566f32..00c08edcd9 100644
>>> --- a/package/systemd/systemd.hash
>>> +++ b/package/systemd/systemd.hash
>>> @@ -1,5 +1,5 @@
>>>    # sha256 locally computed
>>> -sha256  638a2fc78828765fc97bc73f428205b6dc1d359149b6c6bfe4d2a649cba2cca8  systemd-250.8.tar.gz
>>> +sha256  cf2d27e67663d599a045101c7178cf0ec63d9df2962a54adf7de0d0357724f00  systemd-252.4.tar.gz
>>>    sha256  ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  LICENSE.GPL2
>>>    sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  LICENSE.LGPL2.1
>>>    sha256  e5a8645ad94aab24e312dd0c6be2aa54236eb9374480b1b14ea5c61598874fd5  LICENSES/BSD-2-Clause.txt
>>> @@ -8,7 +8,8 @@ sha256  a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499  LICENS
>>>    sha256  61778e80a2fd85955b626b29aa2bcf06144c714277bded65633e4a81479d9fb3  LICENSES/LGPL-2.0-or-later.txt
>>>    sha256  5bcef4fedbfc08776630e65d5d0d074dd31208037eddb167ca46a9ec4f737764  LICENSES/Linux-syscall-note.txt
>>>    sha256  790ac93fb2859097bdda4cf08b5a4feb5e479d0cb2c74f403248241bc3e7c216  LICENSES/lookup3-public-domain.txt
>>> +sha256  8a6fc0879cecc0b96bf4c08159b9d733bf0f15fcf32879aec98c4ffd05424554  LICENSES/MIT-0.txt
>>>    sha256  b85dcd3e453d05982552c52b5fc9e0bdd6d23c6f8e844b984a88af32570b0cc0  LICENSES/MIT.txt
>>>    sha256  2a98749f6bec00dfaed86fa9c1edea871aaae4f11ee4d100b671aaf4ce353a73  LICENSES/murmurhash2-public-domain.txt
>>>    sha256  1a7adaa2c86cedfd6c7f5c0c7c72fd6d3e02cd0c9593f21fdb53c89bb2b130ec  LICENSES/OFL-1.1.txt
>>> -sha256  11801e931f252252a16eac8299465510d0a82c36bfd9ac8aea9b202b76d2f82b  LICENSES/README.md
>>> +sha256  da9b2c7b8cd10516fd2c4279b82496ea61787148f13e899c62fc8988c5fac34f  LICENSES/README.md
>>> diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
>>> index b96873b73f..b0597f9bb4 100644
>>> --- a/package/systemd/systemd.mk
>>> +++ b/package/systemd/systemd.mk
>>> @@ -19,7 +19,7 @@
>>>    # - Diff sysusers.d with the previous version
>>>    # - Diff factory/etc/nsswitch.conf with the previous version
>>>    #   (details are often sprinkled around in README and manpages)
>>> -SYSTEMD_VERSION = 250.8
>>> +SYSTEMD_VERSION = 252.4
>>>    SYSTEMD_SITE = $(call github,systemd,systemd-stable,v$(SYSTEMD_VERSION))
>>>    SYSTEMD_LICENSE = \
>>>        LGPL-2.1+, \
>>> @@ -29,6 +29,7 @@ SYSTEMD_LICENSE = \
>>>        BSD-3-Clause (tools/chromiumos), \
>>>        CC0-1.0 (few source files, see LICENSES/README.md), \
>>>        GPL-2.0 with Linux-syscall-note (linux kernel headers), \
>>> +     MIT-0 (few source files, see LICENSES/README.md), \
>>>        MIT (few source files, see LICENSES/README.md), \
>>>        OFL-1.1 (Heebo fonts)
>>>    SYSTEMD_LICENSE_FILES = \
>>> @@ -40,6 +41,7 @@ SYSTEMD_LICENSE_FILES = \
>>>        LICENSES/LGPL-2.0-or-later.txt \
>>>        LICENSES/Linux-syscall-note.txt \
>>>        LICENSES/lookup3-public-domain.txt \
>>> +     LICENSES/MIT-0.txt \
>>>        LICENSES/MIT.txt \
>>>        LICENSES/murmurhash2-public-domain.txt \
>>>        LICENSES/OFL-1.1.txt \
>>> @@ -61,7 +63,13 @@ SYSTEMD_SELINUX_MODULES = systemd udev xdg
>>>    SYSTEMD_PROVIDES = udev
>>>
>>>    SYSTEMD_CONF_OPTS += \
>>> +     -Ddbus=false \
>>> +     -Ddbus-interfaces-dir=no \
>>> +     -Ddefault-compression='auto' \
>>>        -Ddefault-hierarchy=unified \
>>> +     -Ddefault-locale='C.UTF-8' \
>>> +     -Ddefault-user-shell=/bin/sh \
>>> +     -Dfirst-boot-full-preset=false \
>>>        -Didn=true \
>>>        -Dima=false \
>>>        -Dkexec-path=/usr/sbin/kexec \
>>> @@ -72,6 +80,7 @@ SYSTEMD_CONF_OPTS += \
>>>        -Dman=false \
>>>        -Dmount-path=/usr/bin/mount \
>>>        -Dmode=release \
>>> +     -Dnspawn-locale='C.UTF-8' \
>>>        -Dnss-systemd=true \
>>>        -Dquotacheck-path=/usr/sbin/quotacheck \
>>>        -Dquotaon-path=/usr/sbin/quotaon \
>>> @@ -82,6 +91,7 @@ SYSTEMD_CONF_OPTS += \
>>>        -Dsulogin-path=/usr/sbin/sulogin \
>>>        -Dsystem-gid-max=999 \
>>>        -Dsystem-uid-max=999 \
>>> +     -Dsysupdate=false \
>>>        -Dsysvinit-path= \
>>>        -Dsysvrcnd-path= \
>>>        -Dtelinit-path= \
>>> @@ -553,7 +563,6 @@ SYSTEMD_DEPENDENCIES += gnu-efi
>>>    SYSTEMD_CONF_OPTS += \
>>>        -Defi=true \
>>>        -Dgnu-efi=true \
>>> -     -Defi-cc=$(TARGET_CC) \
>>>        -Defi-ld=bfd \
>>>        -Defi-libdir=$(STAGING_DIR)/usr/lib \
>>>        -Defi-includedir=$(STAGING_DIR)/usr/include/efi
>>> @@ -793,6 +802,8 @@ HOST_SYSTEMD_CONF_OPTS = \
>>>        -Dbinfmt=false \
>>>        -Drepart=false \
>>>        -Dcoredump=false \
>>> +     -Ddbus=false \
>>> +     -Ddbus-interfaces-dir=no \
>>>        -Dpstore=false \
>>>        -Doomd=false \
>>>        -Dlogind=false \
>>> @@ -801,6 +812,7 @@ HOST_SYSTEMD_CONF_OPTS = \
>>>        -Dmachined=false \
>>>        -Dportabled=false \
>>>        -Dsysext=false \
>>> +     -Dsysupdate=false \
>>>        -Duserdb=false \
>>>        -Dhomed=false \
>>>        -Dnetworkd=false \
>>> diff --git a/system/Config.in b/system/Config.in
>>> index 806a747315..232bdfe763 100644
>>> --- a/system/Config.in
>>> +++ b/system/Config.in
>>> @@ -125,19 +125,19 @@ config BR2_INIT_SYSTEMD
>>>        depends on BR2_TOOLCHAIN_USES_GLIBC
>>>        depends on BR2_TOOLCHAIN_HAS_SSP
>>>        depends on BR2_TOOLCHAIN_HAS_THREADS
>>> -     depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
>>> +     depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
>>>        depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
>>>        depends on BR2_HOST_GCC_AT_LEAST_5
>>>        select BR2_ROOTFS_MERGED_USR
>>>        select BR2_PACKAGE_SYSTEMD
>>>        select BR2_PACKAGE_SKELETON_INIT_SYSTEMD if BR2_ROOTFS_SKELETON_DEFAULT
>>>
>>> -comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.10, host and target gcc >= 5"
>>> +comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.15, host and target gcc >= 5"
>>>        depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
>>>        depends on BR2_USE_MMU
>>>        depends on !BR2_TOOLCHAIN_USES_GLIBC || \
>>>                !BR2_TOOLCHAIN_HAS_SSP || \
>>> -             !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 || \
>>> +             !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 || \
>>>                !BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
>>>                !BR2_HOST_GCC_AT_LEAST_5
>>>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Buildroot] [PATCH v8 4/4] system: Warn if systemd is used with kernel < 4.15
  2023-01-15 11:48 ` [Buildroot] [PATCH v8 4/4] system: Warn if systemd is used with kernel < 4.15 Norbert Lange
@ 2023-02-07 21:57   ` Arnout Vandecappelle
  0 siblings, 0 replies; 11+ messages in thread
From: Arnout Vandecappelle @ 2023-02-07 21:57 UTC (permalink / raw)
  To: Norbert Lange, buildroot; +Cc: James Hilliard, Yann E . MORIN



On 15/01/2023 12:48, Norbert Lange wrote:
> To quote the README:
> 
>> Kernel versions below 4.15 have significant gaps in functionality and
>> are not recommended for use with this version of systemd. Taint flag
>> 'old-kernel' will be set. Systemd will most likely still function, but
>> upstream support and testing are limited.
> 
> Signed-off-by: Norbert Lange <nolange79@gmail.com>
> Reviewed-by: James Hilliard <james.hilliard1@gmail.com>

  Finally applied to master and pushed.

  Regards,
  Arnout

> ---
>   system/Config.in | 9 +++++++++
>   1 file changed, 9 insertions(+)
> 
> diff --git a/system/Config.in b/system/Config.in
> index 232bdfe763..70ddf8df3c 100644
> --- a/system/Config.in
> +++ b/system/Config.in
> @@ -141,6 +141,15 @@ comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.15, host and targe
>   		!BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
>   		!BR2_HOST_GCC_AT_LEAST_5
>   
> +comment "systemd highly recommends headers >= 4.15"
> +	depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
> +	depends on BR2_USE_MMU
> +	depends on BR2_TOOLCHAIN_USES_GLIBC
> +	depends on BR2_TOOLCHAIN_HAS_SSP
> +	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
> +	depends on BR2_HOST_GCC_AT_LEAST_5
> +	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
> +
>   config BR2_INIT_NONE
>   	bool "None"
>   	select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_ROOTFS_SKELETON_DEFAULT
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-02-07 21:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-15 11:48 [Buildroot] [PATCH v8 1/4] package/systemd: bump to version 252.4 Norbert Lange
2023-01-15 11:48 ` [Buildroot] [PATCH v8 2/4] package/systemd: Add config option for sysupdate feature Norbert Lange
2023-02-07 17:16   ` Arnout Vandecappelle
2023-02-07 18:42     ` Norbert Lange
2023-01-15 11:48 ` [Buildroot] [PATCH v8 3/4] package/systemd: support dnssec if openssl is available Norbert Lange
2023-02-07 17:58   ` Arnout Vandecappelle
2023-01-15 11:48 ` [Buildroot] [PATCH v8 4/4] system: Warn if systemd is used with kernel < 4.15 Norbert Lange
2023-02-07 21:57   ` Arnout Vandecappelle
2023-02-07 16:41 ` [Buildroot] [PATCH v8 1/4] package/systemd: bump to version 252.4 Arnout Vandecappelle
2023-02-07 18:38   ` Norbert Lange
2023-02-07 21:57     ` Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.