Skip to contentSkip to conversation

systemd: needs kernel headers >= 3.0

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: needs kernel headers >= 3.0

Systemd requires at least Linux headers 3.0 because it uses:

- setns(2) syscall, introduced in 3.0.
- IFLA_GROUP from if_link.h, introduced in 2.6.39.

Fixes http://autobuild.buildroot.net/results/098/09866da023d527b3c228a98f1fde104e780e1883/

---
 system/Config.in |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
system/Config.in +4 -2
index 89578c5..e8f1ed6 100644
@@ -96,10 +96,12 @@ config BR2_INIT_SYSTEMD
 	depends on BR2_TOOLCHAIN_HAS_SSP
 	depends on BR2_USE_MMU
 	depends on !BR2_PREFER_STATIC_LIB
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
 	select BR2_PACKAGE_SYSTEMD
 
-comment 'systemd needs an (e)glibc toolchain'
-	depends on !BR2_TOOLCHAIN_USES_GLIBC
+comment 'systemd needs an (e)glibc toolchain, headers >= 3.0'
+	depends on !(BR2_TOOLCHAIN_USES_GLIBC \
+		&& BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0)
 
 config BR2_INIT_NONE
 	bool "None"
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 systemd: needs kernel headers >= 3.0

Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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

Systemd requires at least Linux headers 3.0 because it uses:
- setns(2) syscall, introduced in 3.0.
- IFLA_GROUP from if_link.h, introduced in 2.6.39.

Fixes http://autobuild.buildroot.net/results/098/09866da023d527b3c228a98f1fde104e780e1883/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard