package/rasdaemon: bump version to v1.0.0
PATCH 1/1 package/rasdaemon: bump version to v1.0.0
As of v1.0.0, rasdaemon is using meson. Swith the buildroot pacakge to meson.
The patch added here by Bastien was applied as:
b62e70c ("rasdaemon: fix build when sqlite isn't enabled") Drop the patch.
However, some includes are still missing in rasdaemon to build using musl.
Fix missing includes.
--- ...1-rasdaemon-add-missing-include-of-time.h.patch | 31 +++++++++++++++ ...aemon-fix-build-when-sqlite-isn-t-enabled.patch | 46 ---------------------- ...sdaemon-fix-implicit-function-declaration.patch | 29 ++++++++++++++ package/rasdaemon/rasdaemon.hash | 2 +- package/rasdaemon/rasdaemon.mk | 15 ++++--- 5 files changed, 68 insertions(+), 55 deletions(-)
package/rasdaemon/0001-rasdaemon-add-missing-include-of-time.h.patch new file +31 -0
@@ -0,0 +1,31 @@ +From cbb184d43d73ff7f58080634893407c06c0cd378 Mon Sep 17 00:00:00 2001 +From: Thomas Bonnefille <[email protected]> +Date: Mon, 5 Oct 2026 10:24:51 +0200 +Subject: [PATCH] rasdaemon: add missing include of time.h + +queue.c uses time_t, even though glibc define time_t in bits/types.h +which is included by a lot of headers, musl and uclibc rely on time.h. +This causes a build error with "unknown type name 'time_t'". +Fixes build error with musl and uclibc. + +Upstream: https://github.com/mchehab/rasdaemon/pull/268 +Signed-off-by: Thomas Bonnefille <[email protected]> +--- + core/queue.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/core/queue.c b/core/queue.c +index 214bda1..16c96e5 100644 +--- a/core/queue.c ++++ b/core/queue.c +@@ -6,6 +6,7 @@ + + #include <stdio.h> + #include <stdlib.h> ++#include <time.h> + + #include "core/queue.h" + #include "core/ras-logger.h" +-- +2.55.0 +
package/rasdaemon/0001-rasdaemon-fix-build-when-sqlite-isn-t-enabled.patch deleted +0 -46
46 lines not on this page · raw message
package/rasdaemon/0002-rasdaemon-fix-implicit-function-declaration.patch new file +29 -0
@@ -0,0 +1,29 @@ +From b7e708c375244e50ec2206200899042aa8a0e3a2 Mon Sep 17 00:00:00 2001 +From: Thomas Bonnefille <[email protected]> +Date: Mon, 5 Oct 2026 10:38:51 +0200 +Subject: [PATCH] rasdaemon: fix implicit function declaration + +usleep is declared in unistd.h. Using musl, this issue appears. +Fix implicit function declaration. + +Upstream: https://github.com/mchehab/rasdaemon/pull/268 +Signed-off-by: Thomas Bonnefille <[email protected]> +--- + events/ras-signal-handler.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/events/ras-signal-handler.c b/events/ras-signal-handler.c +index 6fc73ed..5693bcf 100644 +--- a/events/ras-signal-handler.c ++++ b/events/ras-signal-handler.c +@@ -20,6 +20,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <unistd.h> + + #include "core/modules.h" + #include "core/ras-logger.h" +-- +2.55.0 +
package/rasdaemon/rasdaemon.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated -sha256 7e12459f9477036491ac2b1e4c07cc3e8efea6dcd30525a263ab1f83910b773a rasdaemon-0.8.4.tar.gz +sha256 3a1d70bef371e42c1b8f779791ee0a3492070ba4ba7d48450167e075570d5f4e rasdaemon-1.0.0.tar.gz sha256 39bc367cd7cd291d217447632b28a74be414a52b142b1875ac8789184aeca7b2 COPYING
package/rasdaemon/rasdaemon.mk +7 -8
@@ -4,32 +4,31 @@ # ################################################################################ -RASDAEMON_VERSION = 0.8.4 +RASDAEMON_VERSION = 1.0.0 RASDAEMON_SITE = $(call github,mchehab,rasdaemon,v$(RASDAEMON_VERSION)) RASDAEMON_LICENSE = GPL-2.0+ RASDAEMON_LICENSE_FILES = COPYING -RASDAEMON_AUTORECONF = YES RASDAEMON_DEPENDENCIES = libtraceevent # rasdaemon uses argp.h which is not provided by uclibc or musl by default. # Use the argp-standalone package to provide this. ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y) RASDAEMON_DEPENDENCIES += argp-standalone -RASDAEMON_CONF_ENV += LIBS="-largp" +RASDAEMON_LDFLAGS = $(TARGET_LDFLAGS) -largp endif ifeq ($(BR2_PACKAGE_SQLITE),y) -RASDAEMON_CONF_OPTS += --enable-sqlite3 +RASDAEMON_CONF_OPTS += -Dsqlite3=enabled RASDAEMON_DEPENDENCIES += sqlite else -RASDAEMON_CONF_OPTS += --disable-sqlite3 +RASDAEMON_CONF_OPTS += -Dsqlite3=disabled endif ifeq ($(BR2_PACKAGE_RASDAEMON_AER),y) RASDAEMON_DEPENDENCIES += pciutils -RASDAEMON_CONF_OPTS += --enable-aer +RASDAEMON_CONF_OPTS += -Daer=enabled else -RASDAEMON_CONF_OPTS += --disable-aer +RASDAEMON_CONF_OPTS += -Daer=disabled endif define RASDAEMON_INSTALL_INIT_SYSV
@@ -37,4 +36,4 @@ define RASDAEMON_INSTALL_INIT_SYSV $(TARGET_DIR)/etc/init.d/S95rasdaemon endef -$(eval $(autotools-package)) +$(eval $(meson-package))
---
base-commit: c29ff5b9b38e87af3df0c95c7e3d6f51c0c0688b
change-id: 20261005-update-rasdaemon-adb888d776fb
Best regards,
Signature · 6 lines
Thomas Bonnefille <[email protected]> _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Thomas,
Thanks for the patch.
Quoted 1 line · Thomas Bonnefille via buildroot
As of v1.0.0, rasdaemon is using meson. Swith the buildroot pacakge to
Small typo: "pacakge" -> "package".
Quoted 10 lines
meson.
The patch added here by Bastien was applied as:
b62e70c ("rasdaemon: fix build when sqlite isn't enabled") Drop the patch.
However, some includes are still missing in rasdaemon to build using musl.
Fix missing includes.Signed-off-by Thomas Bonnefille <[email protected]>---
[...]
package/rasdaemon/rasdaemon.mk line 8
Quoted 11 lines
package/rasdaemon/rasdaemon.mk +1
-1@@ -4,32 +4,31 @@ # ################################################################################ -RASDAEMON_VERSION = 0.8.4 +RASDAEMON_VERSION = 1.0.0
This new version is introducing build failures with "test-pkg -a -p rasdaemon". See:
https://gitlab.com/jolivain/buildroot/-/pipelines/2914516840
For reference, the previous version build fine:
https://gitlab.com/jolivain/buildroot/-/pipelines/2914518318
Could you have a look, please?
package/rasdaemon/rasdaemon.mk line 11
Quoted 5 lines
package/rasdaemon/rasdaemon.mk +0
-1RASDAEMON_SITE = $(call github,mchehab,rasdaemon,v$(RASDAEMON_VERSION)) RASDAEMON_LICENSE = GPL-2.0+ RASDAEMON_LICENSE_FILES = COPYING -RASDAEMON_AUTORECONF = YES
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot