* [gentoo-commits] repo/proj/guru:dev commit in: sys-apps/coolercontrold/files/, sys-apps/coolercontrold/
@ 2025-07-05 13:26 Quinet Charlie
0 siblings, 0 replies; only message in thread
From: Quinet Charlie @ 2025-07-05 13:26 UTC (permalink / raw
To: gentoo-commits
commit: 29c3e04a40cb7dd7bb74e066280277b92bb61e9c
Author: Charlie Quinet <w.iron.zombie <AT> gmail <DOT> com>
AuthorDate: Sat Jul 5 13:25:19 2025 +0000
Commit: Quinet Charlie <w.iron.zombie <AT> gmail <DOT> com>
CommitDate: Sat Jul 5 13:26:06 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=29c3e04a
sys-apps/coolercontrold: backport musl fix
Needed to build it on musl until 2.2.2 is released:
https://gitlab.com/coolercontrol/coolercontrol/-/merge_requests/327
Signed-off-by: Charlie Quinet <w.iron.zombie <AT> gmail.com>
sys-apps/coolercontrold/coolercontrold-2.2.1.ebuild | 1 +
.../files/coolercontrold-2.2.0-backport-musl_fix.patch | 17 +++++++++++++++++
2 files changed, 18 insertions(+)
diff --git a/sys-apps/coolercontrold/coolercontrold-2.2.1.ebuild b/sys-apps/coolercontrold/coolercontrold-2.2.1.ebuild
index 408eed3764..e807726716 100644
--- a/sys-apps/coolercontrold/coolercontrold-2.2.1.ebuild
+++ b/sys-apps/coolercontrold/coolercontrold-2.2.1.ebuild
@@ -47,6 +47,7 @@ QA_FLAGS_IGNORED=".*"
PATCHES=(
"${FILESDIR}"/coolercontrold-2.1.0-optional-libdrm_amdgpu.patch
+ "${FILESDIR}"/coolercontrold-2.2.0-backport-musl_fix.patch
)
src_prepare() {
diff --git a/sys-apps/coolercontrold/files/coolercontrold-2.2.0-backport-musl_fix.patch b/sys-apps/coolercontrold/files/coolercontrold-2.2.0-backport-musl_fix.patch
new file mode 100644
index 0000000000..f41a0fca8f
--- /dev/null
+++ b/sys-apps/coolercontrold/files/coolercontrold-2.2.0-backport-musl_fix.patch
@@ -0,0 +1,17 @@
+diff --git a/coolercontrold/src/repositories/hwmon/drivetemp.rs b/coolercontrold/src/repositories/hwmon/drivetemp.rs
+index f49a8251..30d36a61 100644
+--- a/coolercontrold/src/repositories/hwmon/drivetemp.rs
++++ b/coolercontrold/src/repositories/hwmon/drivetemp.rs
+@@ -149,10 +149,10 @@ async fn drive_power_state(dev_path: &Path) -> Result<PowerState> {
+ // low level kernel ioctl
+ unsafe {
+ query[0] = ATA_CHECKPOWERMODE;
+- if libc::ioctl(fd, IOCTL_DRIVE_CMD, query.as_mut_ptr()) != 0 {
++ if libc::ioctl(fd, IOCTL_DRIVE_CMD.try_into()?, query.as_mut_ptr()) != 0 {
+ // Try the retired command if the current one failed
+ query[0] = ATA_CHECKPOWERMODE_RETIRED;
+- if libc::ioctl(fd, IOCTL_DRIVE_CMD, query.as_mut_ptr()) != 0 {
++ if libc::ioctl(fd, IOCTL_DRIVE_CMD.try_into()?, query.as_mut_ptr()) != 0 {
+ return Err(anyhow!("Not a Block Device File"));
+ }
+ }
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-05 13:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-05 13:26 [gentoo-commits] repo/proj/guru:dev commit in: sys-apps/coolercontrold/files/, sys-apps/coolercontrold/ Quinet Charlie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox