Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] support/testing: TestLxc switch to the Arm Bootlin toolchain
@ 2023-08-02 16:46 Romain Naour
  2023-08-02 16:46 ` [Buildroot] [PATCH 2/2] package/systemd: bump linux-headers dependency to 4.14 Romain Naour
  2023-08-02 19:25 ` [Buildroot] [PATCH 1/2] support/testing: TestLxc switch to the Arm Bootlin toolchain Yann E. MORIN
  0 siblings, 2 replies; 4+ messages in thread
From: Romain Naour @ 2023-08-02 16:46 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour

TestLxc uses systemd as init but the recent update to systemd v254
requires a toolchain w/ linux headers >= 4.14 to provide
LOOP_SET_BLOCK_SIZE [1] (added in systemd v253 [2]).

Since no other toolchain that the Bootlin one is available
switch to it.
(ARM Arm toolchain requires BR2_ARM_CPU_HAS_NEON enabled)

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=89e4fdecb51cf5535867026274bc97de9480ade5
[2] https://github.com/systemd/systemd/commit/1163ddb386ef46f63942171e6eab0ca64eb818e4

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/4768561390

Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
 support/testing/tests/package/test_lxc.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/support/testing/tests/package/test_lxc.py b/support/testing/tests/package/test_lxc.py
index f66b31f3ba..5be4782e2d 100644
--- a/support/testing/tests/package/test_lxc.py
+++ b/support/testing/tests/package/test_lxc.py
@@ -10,6 +10,7 @@ class TestLxc(infra.basetest.BRTest):
             BR2_cortex_a9=y
             BR2_ARM_ENABLE_VFP=y
             BR2_TOOLCHAIN_EXTERNAL=y
+            BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
             BR2_LINUX_KERNEL=y
             BR2_LINUX_KERNEL_CUSTOM_VERSION=y
             BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.38"
-- 
2.41.0

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

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

* [Buildroot] [PATCH 2/2] package/systemd: bump linux-headers dependency to 4.14
  2023-08-02 16:46 [Buildroot] [PATCH 1/2] support/testing: TestLxc switch to the Arm Bootlin toolchain Romain Naour
@ 2023-08-02 16:46 ` Romain Naour
  2023-08-02 19:26   ` Yann E. MORIN
  2023-08-02 19:25 ` [Buildroot] [PATCH 1/2] support/testing: TestLxc switch to the Arm Bootlin toolchain Yann E. MORIN
  1 sibling, 1 reply; 4+ messages in thread
From: Romain Naour @ 2023-08-02 16:46 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour

The recent update to systemd v254 requires a toolchain w/ linux headers
>= 4.14 to provide LOOP_SET_BLOCK_SIZE [1] (added in systemd v253 [2]).

Note:
Buildroot already warn the user if a toolchain w/ linux headers < 4.15
is used while enabling systemd as init system [3]. It was matter of
time before problem occurs.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=89e4fdecb51cf5535867026274bc97de9480ade5
[2] https://github.com/systemd/systemd/commit/1163ddb386ef46f63942171e6eab0ca64eb818e4
[3] 9a095643b4dd34eb7acb69662aa64fa945f4b542

Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
 package/systemd/Config.in | 7 +++----
 system/Config.in          | 6 +++---
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/package/systemd/Config.in b/package/systemd/Config.in
index 174ee77b29..a3e424cb4c 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_15
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 # LOOP_SET_BLOCK_SIZE
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
 	depends on BR2_HOST_GCC_AT_LEAST_5 # host-systemd
 	select BR2_PACKAGE_HAS_UDEV
@@ -237,7 +237,6 @@ config BR2_PACKAGE_SYSTEMD_HOMED
 	depends on BR2_USE_MMU # cryptsetup -> lvm2
 	depends on !BR2_STATIC_LIBS # cryptsetup -> lvm2
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # cryptsetup -> json-c
-	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12 # fscrypt_key
 	select BR2_PACKAGE_CRYPTSETUP
 	select BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
@@ -248,11 +247,11 @@ config BR2_PACKAGE_SYSTEMD_HOMED
 
 	  https://www.freedesktop.org/software/systemd/man/systemd-homed.service.html
 
-comment "homed support needs a toolchain w/ threads, dynamic library, kernel headers >= 4.12"
+comment "homed support needs a toolchain w/ threads, dynamic library"
 	depends on BR2_USE_MMU
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || \
-		BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
+		BR2_STATIC_LIBS
 
 config BR2_PACKAGE_SYSTEMD_HOSTNAMED
 	bool "enable hostname daemon"
diff --git a/system/Config.in b/system/Config.in
index 1ca7690ea3..24798dc068 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -124,19 +124,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_15
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
 	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.15, host and target gcc >= 5"
+comment "systemd needs a glibc toolchain w/ SSP, headers >= 4.14, 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_15 || \
+		!BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 || \
 		!BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
 		!BR2_HOST_GCC_AT_LEAST_5
 
-- 
2.41.0

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

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

* Re: [Buildroot] [PATCH 1/2] support/testing: TestLxc switch to the Arm Bootlin toolchain
  2023-08-02 16:46 [Buildroot] [PATCH 1/2] support/testing: TestLxc switch to the Arm Bootlin toolchain Romain Naour
  2023-08-02 16:46 ` [Buildroot] [PATCH 2/2] package/systemd: bump linux-headers dependency to 4.14 Romain Naour
@ 2023-08-02 19:25 ` Yann E. MORIN
  1 sibling, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2023-08-02 19:25 UTC (permalink / raw)
  To: Romain Naour; +Cc: buildroot

Romain, All,

On 2023-08-02 18:46 +0200, Romain Naour spake thusly:
> TestLxc uses systemd as init but the recent update to systemd v254
> requires a toolchain w/ linux headers >= 4.14 to provide
> LOOP_SET_BLOCK_SIZE [1] (added in systemd v253 [2]).
> 
> Since no other toolchain that the Bootlin one is available
> switch to it.
> (ARM Arm toolchain requires BR2_ARM_CPU_HAS_NEON enabled)
> 
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=89e4fdecb51cf5535867026274bc97de9480ade5
> [2] https://github.com/systemd/systemd/commit/1163ddb386ef46f63942171e6eab0ca64eb818e4
> 
> Fixes:
> https://gitlab.com/buildroot.org/buildroot/-/jobs/4768561390
> 
> Signed-off-by: Romain Naour <romain.naour@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  support/testing/tests/package/test_lxc.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/support/testing/tests/package/test_lxc.py b/support/testing/tests/package/test_lxc.py
> index f66b31f3ba..5be4782e2d 100644
> --- a/support/testing/tests/package/test_lxc.py
> +++ b/support/testing/tests/package/test_lxc.py
> @@ -10,6 +10,7 @@ class TestLxc(infra.basetest.BRTest):
>              BR2_cortex_a9=y
>              BR2_ARM_ENABLE_VFP=y
>              BR2_TOOLCHAIN_EXTERNAL=y
> +            BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
>              BR2_LINUX_KERNEL=y
>              BR2_LINUX_KERNEL_CUSTOM_VERSION=y
>              BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.38"
> -- 
> 2.41.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 2/2] package/systemd: bump linux-headers dependency to 4.14
  2023-08-02 16:46 ` [Buildroot] [PATCH 2/2] package/systemd: bump linux-headers dependency to 4.14 Romain Naour
@ 2023-08-02 19:26   ` Yann E. MORIN
  0 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2023-08-02 19:26 UTC (permalink / raw)
  To: Romain Naour; +Cc: buildroot

Romain, All,

On 2023-08-02 18:46 +0200, Romain Naour spake thusly:
> The recent update to systemd v254 requires a toolchain w/ linux headers
> >= 4.14 to provide LOOP_SET_BLOCK_SIZE [1] (added in systemd v253 [2]).
> 
> Note:
> Buildroot already warn the user if a toolchain w/ linux headers < 4.15
> is used while enabling systemd as init system [3]. It was matter of
> time before problem occurs.
> 
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=89e4fdecb51cf5535867026274bc97de9480ade5
> [2] https://github.com/systemd/systemd/commit/1163ddb386ef46f63942171e6eab0ca64eb818e4
> [3] 9a095643b4dd34eb7acb69662aa64fa945f4b542
> 
> Signed-off-by: Romain Naour <romain.naour@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  package/systemd/Config.in | 7 +++----
>  system/Config.in          | 6 +++---
>  2 files changed, 6 insertions(+), 7 deletions(-)
> 
> diff --git a/package/systemd/Config.in b/package/systemd/Config.in
> index 174ee77b29..a3e424cb4c 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_15
> +	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 # LOOP_SET_BLOCK_SIZE
>  	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
>  	depends on BR2_HOST_GCC_AT_LEAST_5 # host-systemd
>  	select BR2_PACKAGE_HAS_UDEV
> @@ -237,7 +237,6 @@ config BR2_PACKAGE_SYSTEMD_HOMED
>  	depends on BR2_USE_MMU # cryptsetup -> lvm2
>  	depends on !BR2_STATIC_LIBS # cryptsetup -> lvm2
>  	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # cryptsetup -> json-c
> -	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12 # fscrypt_key
>  	select BR2_PACKAGE_CRYPTSETUP
>  	select BR2_PACKAGE_OPENSSL
>  	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
> @@ -248,11 +247,11 @@ config BR2_PACKAGE_SYSTEMD_HOMED
>  
>  	  https://www.freedesktop.org/software/systemd/man/systemd-homed.service.html
>  
> -comment "homed support needs a toolchain w/ threads, dynamic library, kernel headers >= 4.12"
> +comment "homed support needs a toolchain w/ threads, dynamic library"
>  	depends on BR2_USE_MMU
>  	depends on BR2_TOOLCHAIN_HAS_SYNC_4
>  	depends on !BR2_TOOLCHAIN_HAS_THREADS || \
> -		BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
> +		BR2_STATIC_LIBS
>  
>  config BR2_PACKAGE_SYSTEMD_HOSTNAMED
>  	bool "enable hostname daemon"
> diff --git a/system/Config.in b/system/Config.in
> index 1ca7690ea3..24798dc068 100644
> --- a/system/Config.in
> +++ b/system/Config.in
> @@ -124,19 +124,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_15
> +	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
>  	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.15, host and target gcc >= 5"
> +comment "systemd needs a glibc toolchain w/ SSP, headers >= 4.14, 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_15 || \
> +		!BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 || \
>  		!BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
>  		!BR2_HOST_GCC_AT_LEAST_5
>  
> -- 
> 2.41.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2023-08-02 19:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-02 16:46 [Buildroot] [PATCH 1/2] support/testing: TestLxc switch to the Arm Bootlin toolchain Romain Naour
2023-08-02 16:46 ` [Buildroot] [PATCH 2/2] package/systemd: bump linux-headers dependency to 4.14 Romain Naour
2023-08-02 19:26   ` Yann E. MORIN
2023-08-02 19:25 ` [Buildroot] [PATCH 1/2] support/testing: TestLxc switch to the Arm Bootlin toolchain Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox