mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-21 16:32:45 -09:00
package/haveged: needs threads
Since the bump to version 1.9.15 in commit2a28d25d0c("package/haveged: bump to version 1.9.15"), haveged unconditionally includes <semaphore.h> and uses named semaphores (sem_open() and friends) to synchronize command instances. As a result, the build fails with toolchains without threads support: haveged.c:37:10: fatal error: semaphore.h: No such file or directory Add a dependency on BR2_TOOLCHAIN_HAS_THREADS. Since threads are now always available, unconditionally pass --enable-threads. Fixes: https://autobuild.buildroot.org/results/814cb7b5537d8b7b2c23f3d90e37b2b41de7ee3f Fixes:2a28d25d0c("package/haveged: bump to version 1.9.15") Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commitcec5f7af80) Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
This commit is contained in:
committed by
Raphaël Mélotte
parent
af0cac3258
commit
0b98157406
@@ -1,9 +1,14 @@
|
||||
config BR2_PACKAGE_HAVEGED
|
||||
bool "haveged"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # semaphore.h
|
||||
help
|
||||
The haveged project is an attempt to provide an easy-to-use,
|
||||
unpredictable random number generator based upon an adaptation
|
||||
of the HAVEGE algorithm.
|
||||
|
||||
http://www.issihosts.com/haveged/
|
||||
|
||||
comment "haveged needs a toolchain w/ threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
@@ -18,18 +18,13 @@ HAVEGED_CONF_OPTS = \
|
||||
--disable-nistest \
|
||||
--disable-enttest \
|
||||
--disable-olt \
|
||||
--enable-threads \
|
||||
--enable-tune
|
||||
|
||||
ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y)
|
||||
HAVEGED_CONF_OPTS += --enable-clock_gettime
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
HAVEGED_CONF_OPTS += --enable-threads
|
||||
else
|
||||
HAVEGED_CONF_OPTS += --disable-threads
|
||||
endif
|
||||
|
||||
define HAVEGED_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -m 755 -D package/haveged/S21haveged \
|
||||
$(TARGET_DIR)/etc/init.d/S21haveged
|
||||
|
||||
Reference in New Issue
Block a user