Compare commits

...

10 Commits

Author SHA1 Message Date
Bastien Nocera 1ccf09ac25 Update to 2.5.2 2023-05-19 10:18:40 +00:00
Bastien Nocera c9efee709e Update to 2.5.1
Resolves: rhbz#2114049
2023-02-01 15:46:44 +01:00
Benjamin Berg 3f00b7a868 Accept 2.5 as package version
Thermald release tarballs do not generally contain the .0, while the
printed releaes may or may not contain a .0. i.e. we can get a mismatch.
Accpet a missing .0 on either the RPM (/tarball) version or the output
version.

Related: #2040081
2022-07-25 20:47:50 +02:00
Benjamin Berg 1cd3f5b145 Fix version test script
Related: #2040081
2022-07-25 14:49:26 +02:00
Benjamin Berg 5b6e68b3b5 Update to 2.5
Resolves: #2040081
2022-07-22 16:33:13 +02:00
Mohan Boddu 7feb919949 Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-08-10 01:04:59 +00:00
Benjamin Berg 5d014dfcde Add gating definition for RHEL 9
Related: #1961047
2021-06-10 17:49:14 +02:00
Benjamin Berg bf7460a40f Pull update to 2.4.6 and specfile fixes
Update to 2.4.6 (#1965783)
Update main license to GPLv2 only for now
Add bundled(qcustomplot) for monitor subpackage

Resolves: #1961047
2021-06-10 16:01:28 +02:00
Mohan Boddu e032b1122c - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-04-16 05:52:42 +00:00
DistroBaker 2980349d65 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/thermald.git#b06314325298a76c09252475118f700d3c0f6248
2021-02-17 12:44:26 +01:00
10 changed files with 37748 additions and 21 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
*.rpm
*.tar*
results_*/
/thermald-2.5.1.tar.gz

1
.thermald.metadata Normal file
View File

@ -0,0 +1 @@
ba4eb08d776f0641b8b545a1c79551f3f8a0188e thermald-2.5.2.tar.gz

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,16 +0,0 @@
diff --git a/src/thd_engine_adaptive.cpp b/src/thd_engine_adaptive.cpp
index 1464006..c0ab87e 100644
--- a/src/thd_engine_adaptive.cpp
+++ b/src/thd_engine_adaptive.cpp
@@ -1190,9 +1190,9 @@ int cthd_engine_adaptive::install_passive(struct psv *psv) {
int target_state = 0;
if (psv->limit.length()) {
- if (psv->limit == "MAX") {
+ if (psv->limit == "MAX" || psv->limit == "max" ) {
target_state = TRIP_PT_INVALID_TARGET_STATE;
- } else if (psv->limit == "MIN") {
+ } else if (psv->limit == "MIN" || psv->limit == "min") {
target_state = 0;
} else {
std::istringstream buffer(psv->limit);

37658
qcustomplot.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
SHA512 (thermald-2.4.1.tar.gz) = 2dab7d57e028037208034ab4be95dc138ce028d4a47a0151c69816e1502065d801d52990641544b5d246144e654c15c663fa78af6cea094cf9a107f2fb29c1ef
SHA512 (thermald-2.5.2.tar.gz) = 50ec8c0afb62805d4a86eff91725c468c9035d4524d5d12c187c8b5bbff5a6e723ead7a32bda1a2964fa8a8a8ae437bc7c05d657ea1ac64e4a3d32e6dc0591e2

12
tests/run_tests.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# fail the whole test set if any of the command pipelines fail
set -ex
# when running this in 1minutetip the PATH must be specified to execute
# in the local directory.
echo "Setting path to local directory"
PATH=$PATH:$(pwd)
# simple version test
version.sh

9
tests/tests.yml Normal file
View File

@ -0,0 +1,9 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: . # switch to subfolder. This parameter is REQUIRED, use `dir: .` for current folder
run: ./run_tests.sh # this is your test command, its exit code is the outcome of the test

17
tests/version.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
#
# Thermald is a systemd unit file that requires specific hardware and
# firmware. As such it is difficult to test in an automated fashion.
# fail the whole test if any of the command pipelines below fails
set -ex
rpmversion=$(rpm -q --queryformat '%{VERSION}' thermald)
version=$(thermald --version)
if [ "$version" != "$rpmversion" -a "$version.0" != "$rpmversion" -a "$version" != "$rpmversion.0" ]; then
echo "reported thermald version (${version}) does not match rpm version (${rpmversion})"
exit 1
fi
# if we get here, it's OK

View File

@ -7,11 +7,13 @@
Name: thermald
Version: 2.4.1
Release: 3%{?dist}
Version: 2.5.2
Release: 1%{?dist}
Summary: Thermal Management daemon
License: GPLv2+
# thd_cdev_modem.{cpp,h} is currently GPLv2 only
# https://github.com/intel/thermal_daemon/issues/306
License: GPLv2
URL: https://github.com/intel/%{pkgname}
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
@ -37,7 +39,9 @@ Requires(pre): shadow-utils
%{?systemd_requires}
Patch01: issue_291.diff
# Upstream removed the internal copy of qcustomplot, add it back as we don't have it in RHEL.
# The alternative would be removing the GUI package
Patch9000: qcustomplot.patch
%description
%{name} monitors and controls platform temperature.
@ -56,6 +60,8 @@ BuildRequires: qt5-qtbase-devel
Requires: hicolor-icon-theme
Requires: %{name}%{?_isa} == %{version}-%{release}
Provides: bundled(qcustomplot) = 2.0.0-beta
%description monitor
This package contains an Application to monitor %{name} for system
developers who want to enable application developers and their
@ -245,6 +251,39 @@ exit 0
%changelog
* Thu Feb 23 2023 Bastien Nocera <bnocera@redhat.com> - 2.5.2-1
- Update to 2.5.2
Resolves: rhbz#2172590
* Mon Dec 19 2022 Bastien Nocera <bnocera@redhat.com> - 2.5.1-1
- Update to 2.5.1
Resolves: rhbz#2114049
* Mon Jul 25 2022 Benjamin Berg <bberg@redhat.com> - 2.5-3
- Accept 2.5 as package version
Related: #2040081
* Mon Jul 25 2022 Benjamin Berg <bberg@redhat.com> - 2.5-2
- Fix version test script
Related: #2040081
* Fri Jul 22 2022 Benjamin Berg <bberg@redhat.com> - 2.5-1
- Update to 2.5
Resolves: #2040081
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.6-2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Thu Jun 10 2021 Benjamin Berg <bberg@redhat.com> - 2.4.6-1
- Update to 2.4.6 (#1965783)
- Update main license to GPLv2 only for now
- Add bundled(qcustomplot) for monitor subpackage
- Resolves: #1961047
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.1-4
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Feb 02 2021 Benjamin Berg <bberg@redhat.com> - 2.4.1-3
- Add upstream patch fixing parsing of passive targets