mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
sys-apps/coolercontrold: drop 2.2.2
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
DIST coolercontrol-2.2.2-dist.tar.xz 997364 BLAKE2B bc614c98382f9731df3ecf8922a0073f7a3912d29d4f29f7c75ba928ccf6c5a800640e70df28f9191914bbd0d59c986b997e517c1550a02ab84125b4014b2ac6 SHA512 c34f88bc432e7f5bca647d73d7366685d77c6ad21632cb59c265ffd625dca6eab5bdd4a739bf94b72a12658bdf84fad6d555d27f5ee4e328152485459280f3ee
|
||||
DIST coolercontrol-2.2.2.tar.bz2 15870398 BLAKE2B ee26c65b702f934a2a2bc25b1443a0050596c6b10a7c11c40b4391a84aee2cc8d7d4063b082e9ebf39f002aa413c1a023030aebbf23c4a0fb346fa0e6a0a54a2 SHA512 550e323368ecf5131b96544173d36bf05d9e3b2c925d557146f0a3c325b70563fbec19e03918c0398a60749748e3e00d40a25669209009dca37dc2fdec3bbacc
|
||||
DIST coolercontrol-3.0.1-dist.tar.xz 1103292 BLAKE2B 03accc9b4978026e8c8b6a558d83a89b21cec3e0230561e33d0cb5f35cfcca79a2d66394a66d901cb0be05370c646daf74d186780e478a79171dc8ddd36fbbf2 SHA512 32379e77ee4245b2a7046cfca9d8e5920fe4545c3fd35e787d03951a38a7ed6d9780ba20dcede92a91aeac578bdd25331d57b5f2e5a0cf080c116cd5750c81f7
|
||||
DIST coolercontrol-3.0.1.tar.bz2 38188904 BLAKE2B 2d6d1e9d84797b85eeaf5cf4b6184db187eeea47c767caf39570576c644ecc65e1df18ea8906ce5a62c956ffc64c650cf7412421e3909edfe166963f1f6ce54e SHA512 b053758772e1a4f69f95c11bb640bc6404ef51b8682982296b413cb48c77f264f17117c7524d4f9ee736af619cd67a985a81f476fe736e86cd85d73cfa7f5a70
|
||||
DIST coolercontrol-3.0.2.tar.gz 8937023 BLAKE2B 447705ef8f4347b3446802aada3d26a51cef97b09027822974ac175c8a8c7f47c30f8bb1a77c34f0efbda21f89e95828a4de7cf43d9eead3601ff25cf9aeb41a SHA512 45448cbbdd480272bf08af5aefc00a4704029831dc0983942a3f08f92a07c823e8c4458a5be247875f6214b8f469eedc5cde83d6815df37d1261fd7b6c534c71
|
||||
DIST coolercontrold-2.2.2-crates.tar.xz 35507500 BLAKE2B 97e6a99d124d7c2546eb4cceafb6cc65870701e9b8a583209a8b67afd0d6773d842b688897259f9b8d42f0c4e71aaa976922f70ff4e928dd0f4865ebc61511ae SHA512 cccd1c4ff007ee5f0db6bf3250dd6408a2928d4536ca3b4395dd0b8ff4ea05ab858f40610b9fd7dff7bd859fbd3689d3bd5d7e2f5d382ad68885434ed23c0aae
|
||||
DIST coolercontrold-3.0.1-crates.tar.xz 35903240 BLAKE2B de0f1661974e1de5317c7675b7b2c0844ddcce2e31d7fcd0750d4821a55d31749c5140bf5804fca8a3414289b9e0affdb79fad07a50d2948e324f36d0c65cacf SHA512 20ef9498190bf4c34bf81db9a71a878f9725049f9f66d575a869aaf97d881631361a0878aa52702a7ec178ed407b38633f1875c05a8442eb0eb52e0e9b5b08fb
|
||||
DIST coolercontrold-3.0.2-vendor.tar.gz 69396637 BLAKE2B 9eb3217dba48ed3ecabcbd7018cefaeeb238421a8b427f7da3c2c7fcdc22f007b0b7ad321ab6675162f22f26f65d0d738958524af21fcc8b4664ed0c8462a94d SHA512 8b7d7a0e5c7ac74cb37de798cd4a0553e9b01d01af4755f8c1236be456d6d6272ca505625caa7e78669307a7d67fef2fb0c268e0a50508c91186432ce74633c0
|
||||
DIST nvml-wrapper-572095f631da93be8d243c73820e581676969897.gh.tar.gz 234938 BLAKE2B 91820ff38212c176027ab6fb0552efb1544e539fc0dda29e1f7d82e2cec8dce1ecd6cc499c120049869cde638ecf3918db3f73f86ea73214135e83c4bccbf8b7 SHA512 1ead616cd59058e3c2f100cc0dff9b6f4f97aeb70d30ef7d9667eef3e8b272bfae487e1c68e042680c4be8667246b4048cf8124ffe6a7011899cd2b87d8e9ec2
|
||||
DIST tower-governor-9cc5a4433fa4f5fc7ffaf82ac277471d056ceef4.gh.tar.gz 31666 BLAKE2B a5e28607537049aa4d2659cd85229205b7541993e3bfa72a414ebb7ee6ef0c8f00d60b3571dda5e1d6d5174768f53618991f9a0bbaa9801648f37f7e72e0ac70 SHA512 85e5818b75d26f7a2d61f7100bbbd8d80c15b5fed0fea95bc874b7de7a874c28286e53499e9ab23cbbeb31ec9370053d8a01174aab42ac7c3c49e5cc375bd277
|
||||
DIST tower-governor-fd799d86418e58179468953c80ad7094a81a9e37.gh.tar.gz 31787 BLAKE2B 452d9423efbb4230bd88dfd58418850d0ccd53d5d7a45ff5f60005f292637c296c4c67d75397a7f4a59af51028b2fa95a2ef69b372c18b1dc02408437e8aac81 SHA512 40819f6d2dd7f1471af403e0314d261d043c6fddde12c55b797412d07f0ae6db3cfb640cbe3e2ebfea1be11794ed8ded20c39ca489784a4dbbbfdead3ff2f38c
|
||||
|
||||
@@ -1,92 +0,0 @@
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
"
|
||||
|
||||
declare -A GIT_CRATES=(
|
||||
[nvml-wrapper-sys]='https://github.com/codifryed/nvml-wrapper;572095f631da93be8d243c73820e581676969897;nvml-wrapper-%commit%/nvml-wrapper-sys'
|
||||
[nvml-wrapper]='https://github.com/codifryed/nvml-wrapper;572095f631da93be8d243c73820e581676969897;nvml-wrapper-%commit%/nvml-wrapper'
|
||||
[tower_governor]='https://github.com/codifryed/tower-governor;fd799d86418e58179468953c80ad7094a81a9e37;tower-governor-%commit%'
|
||||
)
|
||||
|
||||
RUST_MIN_VER=1.82
|
||||
|
||||
inherit cargo optfeature systemd
|
||||
|
||||
DESCRIPTION="Monitor and control your cooling and other devices (daemon)"
|
||||
HOMEPAGE="https://gitlab.com/coolercontrol/coolercontrol"
|
||||
SRC_URI="
|
||||
https://gitlab.com/coolercontrol/coolercontrol/-/archive/${PV}/coolercontrol-${PV}.tar.bz2
|
||||
https://gitlab.com/api/v4/projects/32909921/packages/generic/coolercontrol/${PV}/coolercontrol-${PV}-dist.tar.xz
|
||||
https://gitlab.com/api/v4/projects/32909921/packages/generic/coolercontrol/${PV}/coolercontrold-${PV}-crates.tar.xz
|
||||
${CARGO_CRATE_URIS}
|
||||
"
|
||||
S="${WORKDIR}/coolercontrol-${PV}/${PN}"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
AGPL-3+ Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD GPL-3+
|
||||
ISC MIT UoI-NCSA Unicode-3.0 ZLIB
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="video_cards_amdgpu"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/zstd:=
|
||||
video_cards_amdgpu? (
|
||||
x11-libs/libdrm[video_cards_amdgpu]
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
QA_FLAGS_IGNORED=".*"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/coolercontrold-2.1.0-optional-libdrm_amdgpu.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
pushd .. >/dev/null || die
|
||||
default
|
||||
popd >/dev/null || die
|
||||
|
||||
# Disable stripping
|
||||
sed -i -e '/^strip =/d' Cargo.toml || die
|
||||
|
||||
cp -rf "${WORKDIR}"/dist/* "${S}"/resources/app/ || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export ZSTD_SYS_USE_PKG_CONFIG=1
|
||||
|
||||
local myfeatures=(
|
||||
$(usev video_cards_amdgpu libdrm_amdgpu)
|
||||
)
|
||||
|
||||
cargo_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cargo_src_install
|
||||
|
||||
einstalldocs
|
||||
|
||||
doinitd ../packaging/openrc/init.d/coolercontrol
|
||||
doconfd ../packaging/openrc/conf.d/coolercontrol
|
||||
|
||||
systemd_dounit ../packaging/systemd/coolercontrold.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "interact with AIO liquid coolers and other devices" sys-apps/coolercontrol-liqctld
|
||||
|
||||
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||||
elog "Remember to restart coolercontrol service to use the new version."
|
||||
fi
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
From e55e506862c8c2bc37520fc72a16093f9a2a23fc Mon Sep 17 00:00:00 2001
|
||||
From: Alfred Wingate <parona@protonmail.com>
|
||||
Date: Mon, 23 Sep 2024 14:35:35 +0300
|
||||
Subject: [PATCH] Allow disabling linking to libdrm_amdgpu
|
||||
|
||||
Notably users on Gentoo may choose to disable building libdrm with amdgpu support leading to a build
|
||||
failure.
|
||||
|
||||
Signed-off-by: Alfred Wingate <parona@protonmail.com>
|
||||
--- a/coolercontrold/Cargo.toml
|
||||
+++ b/coolercontrold/Cargo.toml
|
||||
@@ -17,6 +17,7 @@ license = "GPL-3.0-or-later"
|
||||
[features]
|
||||
default = []
|
||||
io_uring = ["dep:tokio-uring"]
|
||||
+libdrm_amdgpu = []
|
||||
|
||||
[dependencies]
|
||||
log = "0.4.27"
|
||||
--- a/coolercontrold/src/repositories/gpu/amd.rs
|
||||
+++ b/coolercontrold/src/repositories/gpu/amd.rs
|
||||
@@ -37,7 +37,9 @@ use crate::repositories::hwmon::{devices, fans, freqs, power, temps};
|
||||
use crate::repositories::repository::DeviceLock;
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
use heck::ToTitleCase;
|
||||
+#[cfg(feature = "libdrm_amdgpu")]
|
||||
use libdrm_amdgpu_sys::LibDrmAmdgpu;
|
||||
+#[cfg(feature = "libdrm_amdgpu")]
|
||||
use libdrm_amdgpu_sys::AMDGPU::GPU_INFO;
|
||||
use log::{debug, error, info, trace, warn};
|
||||
use regex::Regex;
|
||||
@@ -145,7 +147,11 @@ impl GpuAMD {
|
||||
debug!("Could not get RDNA3/4 fan curve info: {err}");
|
||||
})
|
||||
.ok();
|
||||
+ #[cfg(feature = "libdrm_amdgpu")]
|
||||
let drm_device_name = Self::get_drm_device_name(&path).await;
|
||||
+ #[cfg(not(feature = "libdrm_amdgpu"))]
|
||||
+ // https://github.com/Umio-Yasuno/libdrm-amdgpu-sys-rs/blob/c10593dd00ad822d71e284424455023a3ad6a20c/amdgpu/mod.rs#L14
|
||||
+ let drm_device_name = Some(String::from("AMD Radeon Graphics"));
|
||||
let pci_device_names = devices::get_device_pci_names(&path).await;
|
||||
let model = devices::get_device_model_name(&path)
|
||||
.await
|
||||
@@ -187,6 +193,7 @@ impl GpuAMD {
|
||||
}
|
||||
}
|
||||
|
||||
+ #[cfg(feature = "libdrm_amdgpu")]
|
||||
async fn get_drm_device_name(base_path: &Path) -> Option<String> {
|
||||
let drm_amdgpu = LibDrmAmdgpu::new().ok()?;
|
||||
let slot_name = devices::get_pci_slot_name(base_path).await?;
|
||||
--
|
||||
2.49.0
|
||||
|
||||
Reference in New Issue
Block a user