* [Buildroot] [PATCH] package/thermald: bump to version 2.5.13
@ 2026-11-13 12:12 Pieterjan Camerlynck
2026-11-15 16:13 ` Julien Olivain via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Pieterjan Camerlynck @ 2026-11-13 12:12 UTC (permalink / raw)
To: buildroot; +Cc: Pieterjan Camerlynck, Ricardo Martincoski
From: Pieterjan Camerlynck <p.camerlynck@televic.com>
- xz is not needed since version 2.5.7
- dbus-glib is not needed since version 2.5.8, so add libglib2, which
is now used directly
Add a backported upstream patch to fix the build on 32-bit with a
64-bit time_t (e.g. i686 musl), where -Werror turns a printf format
warning introduced after 2.5.6 into an error.
https://github.com/intel/thermal_daemon/blob/v2.5.13/README.txt
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Pieterjan Camerlynck <p.camerlynck@televic.com>
---
...ring-formatting-for-state_entry_time.patch | 34 +++++++++++++++++++
package/thermald/Config.in | 7 ++--
package/thermald/thermald.hash | 2 +-
package/thermald/thermald.mk | 7 ++--
4 files changed, 41 insertions(+), 9 deletions(-)
create mode 100644 package/thermald/0001-Fix-string-formatting-for-state_entry_time.patch
diff --git a/package/thermald/0001-Fix-string-formatting-for-state_entry_time.patch b/package/thermald/0001-Fix-string-formatting-for-state_entry_time.patch
new file mode 100644
index 0000000000..1548d56210
--- /dev/null
+++ b/package/thermald/0001-Fix-string-formatting-for-state_entry_time.patch
@@ -0,0 +1,34 @@
+From 506dcaf8d5ca99b626ea7ddf35f4a5f0ff71ff4c Mon Sep 17 00:00:00 2001
+From: Lucas de Castro Borges <lucas@gnuabordo.com.br>
+Date: Tue, 22 Sep 2026 18:01:06 -0300
+Subject: [PATCH] Fix string formatting for state_entry_time
+
+state_entry_time is time_t data type, time_t has changed the
+data size to 64bits due to year 2038 problem, then to avoid string format
+issue the type had been casted to intmax_t and switch from long(l) to
+intmax_t(j) because long has the minimum size of 32bits and the mininum size
+for time_t is 64bits.
+
+Signed-off-by: Lucas de Castro Borges <lucas@gnuabordo.com.br>
+Upstream: https://github.com/intel/thermal_daemon/commit/506dcaf8d5ca99b626ea7ddf35f4a5f0ff71ff4c
+Signed-off-by: Pieterjan Camerlynck <p.camerlynck@televic.com>
+---
+ src/thd_gddv.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/thd_gddv.cpp b/src/thd_gddv.cpp
+index dc82eb3..303f786 100644
+--- a/src/thd_gddv.cpp
++++ b/src/thd_gddv.cpp
+@@ -1738,7 +1738,7 @@ int cthd_gddv::evaluate_condition(struct condition& condition) {
+ return ret;
+
+ if (condition.time) {
+- thd_log_debug("time condition matched %ld \n", condition.state_entry_time);
++ thd_log_debug("time condition matched %jd\n", (intmax_t)condition.state_entry_time);
+ if (condition.state_entry_time == 0) {
+ condition.state_entry_time = time(nullptr);
+ return THD_ERROR;
+--
+2.56.0
+
diff --git a/package/thermald/Config.in b/package/thermald/Config.in
index 353ce31a7a..19cf7cde0d 100644
--- a/package/thermald/Config.in
+++ b/package/thermald/Config.in
@@ -4,15 +4,14 @@ config BR2_PACKAGE_THERMALD
depends on BR2_USE_MMU # uses fork()
depends on BR2_USE_WCHAR # upower -> libgudev
depends on BR2_INSTALL_LIBSTDCPP
- depends on BR2_TOOLCHAIN_HAS_THREADS # dbus-glib -> glib2, dbus, upower
- depends on BR2_USE_WCHAR # dbus-glib -> glib2
+ depends on BR2_TOOLCHAIN_HAS_THREADS # glib2, dbus, upower
+ depends on BR2_USE_WCHAR # glib2
depends on BR2_PACKAGE_HAS_UDEV # upower
select BR2_PACKAGE_DBUS
- select BR2_PACKAGE_DBUS_GLIB
select BR2_PACKAGE_LIBEVDEV
+ select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_LIBXML2
select BR2_PACKAGE_UPOWER
- select BR2_PACKAGE_XZ
help
Thermal Daemon is a Linux daemon for monitoring and
controlling platform temperatures. Once the system temperature
diff --git a/package/thermald/thermald.hash b/package/thermald/thermald.hash
index fff5ae6284..a158cc8365 100644
--- a/package/thermald/thermald.hash
+++ b/package/thermald/thermald.hash
@@ -1,3 +1,3 @@
# Locally computed:
-sha256 e5a452624f133d71f4aff0bd0c8f8258399a5ae1a7d5aea177fa6a6e33dad1fd thermald-2.5.6.tar.gz
+sha256 5456f60aed52e9a14f88dde9b2e2875e5e3d0cc3d1e7bf742d7ea4b22ff6a995 thermald-2.5.13.tar.gz
sha256 e98be8bc482e038a14bfbc01caf800bbd0024fff275ef14cd999db6560254a8d COPYING
diff --git a/package/thermald/thermald.mk b/package/thermald/thermald.mk
index 4e3d897bf3..f06271c850 100644
--- a/package/thermald/thermald.mk
+++ b/package/thermald/thermald.mk
@@ -4,7 +4,7 @@
#
################################################################################
-THERMALD_VERSION = 2.5.6
+THERMALD_VERSION = 2.5.13
THERMALD_SITE = $(call github,intel,thermal_daemon,v$(THERMALD_VERSION))
# fetched from Github, with no configure script
THERMALD_AUTORECONF = YES
@@ -13,11 +13,10 @@ THERMALD_DEPENDENCIES = \
$(TARGET_NLS_DEPENDENCIES) \
host-autoconf-archive \
dbus \
- dbus-glib \
libevdev \
+ libglib2 \
libxml2 \
- upower \
- xz
+ upower
# tools are GPL-3.0+ but are not added to the target
THERMALD_LICENSE = GPL-2.0+
THERMALD_LICENSE_FILES = COPYING
--
2.56.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-15 16:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-13 12:12 [Buildroot] [PATCH] package/thermald: bump to version 2.5.13 Pieterjan Camerlynck
2026-11-15 16:13 ` Julien Olivain via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox