package/systemd: fix compiling with headers < 4.14
In commit360a7cd738("package/systemd: bump linux-headers dependency to 4.14"), the headers requirements were bumped to 4.14 because of new build failures due to LOOP_SET_BLOCK_SIZE. Even though systemd does not recommend using it with headers < 4.15 (see [1]), it is still possible to build it and use some of its features (after fixing the build failure). Note that this was build-tested with 4.4 headers only, and not all the way back to 3.15 (which is the version requirement that was used before360a7cd738). [1]: https://github.com/systemd/systemd/blob/main/README Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
60c8807c69
commit
63b4cbacb1
@@ -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_4_14
|
||||
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 >= 4.14, 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_4_14 || \
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
|
||||
!BR2_HOST_GCC_AT_LEAST_5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user