From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/lm-sensors/
Date: Sat, 15 Feb 2025 09:29:27 +0000 (UTC) [thread overview]
Message-ID: <1739611595.b8dd396e63928b10a4a63352188a1175994636c8.ulm@gentoo> (raw)
commit: b8dd396e63928b10a4a63352188a1175994636c8
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:11:57 2025 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 09:26:35 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8dd396e
sys-apps/lm-sensors: Port to ver_replacing
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
sys-apps/lm-sensors/lm-sensors-3.6.2.ebuild | 53 +++++++++++++----------------
1 file changed, 24 insertions(+), 29 deletions(-)
diff --git a/sys-apps/lm-sensors/lm-sensors-3.6.2.ebuild b/sys-apps/lm-sensors/lm-sensors-3.6.2.ebuild
index de9e38be6c7a..d7aae5a352e7 100644
--- a/sys-apps/lm-sensors/lm-sensors-3.6.2.ebuild
+++ b/sys-apps/lm-sensors/lm-sensors-3.6.2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit linux-info systemd toolchain-funcs multilib-minimal
+inherit eapi9-ver linux-info systemd toolchain-funcs multilib-minimal
DESCRIPTION="Hardware Monitoring user-space utilities"
HOMEPAGE="https://hwmon.wiki.kernel.org/ https://github.com/lm-sensors/lm-sensors"
@@ -185,33 +185,28 @@ multilib_src_install_all() {
pkg_postinst() {
local _new_loader='3.4.0_p20160725'
- local _v
- for _v in ${REPLACING_VERSIONS}; do
- if ! ver_test "${_v}" -gt "${_new_loader}"; then
- # This is an upgrade which require migration
-
- elog ""
- elog "Since version 3.4.0_p20160725 ${PN} no longer loads modules on its own"
- elog "instead it is using \"modules-load\" services provided by OpenRC or systemd."
- elog ""
- elog "To migrate your configuration you have 2 options:"
- elog ""
- elog " a) Re-create a new configuration using \"/usr/sbin/sensors-detect\""
- elog ""
- elog " b) Copy existing \"modules_<n>\", \"HWMON_MODULES\" or \"BUS_MODULES\""
- elog " variables from \"/etc/conf.d/lm_modules\" to"
- elog " \"/etc/modules-load.d/lm_sensors.conf\" and adjust format."
- elog ""
- elog " For details see https://wiki.gentoo.org/wiki/Systemd#Automatic_module_loading"
- elog ""
- elog " Important: Don't forget to migrate your module's argument"
- elog " (modules_<name>_args variable) if your are not already"
- elog " using \"/etc/modprobe.d\" (which is recommended)."
-
- # Show this elog only once
- break
- fi
- done
+ if ver_replacing -lt "${_new_loader}"; then
+ # This is an upgrade which require migration
+
+ elog ""
+ elog "Since version 3.4.0_p20160725 ${PN} no longer loads modules on its own"
+ elog "instead it is using \"modules-load\" services provided by OpenRC or systemd."
+ elog ""
+ elog "To migrate your configuration you have 2 options:"
+ elog ""
+ elog " a) Re-create a new configuration using \"/usr/sbin/sensors-detect\""
+ elog ""
+ elog " b) Copy existing \"modules_<n>\", \"HWMON_MODULES\" or \"BUS_MODULES\""
+ elog " variables from \"/etc/conf.d/lm_modules\" to"
+ elog " \"/etc/modules-load.d/lm_sensors.conf\" and adjust format."
+ elog ""
+ elog " For details see https://wiki.gentoo.org/wiki/Systemd#Automatic_module_loading"
+ elog ""
+ elog " Important: Don't forget to migrate your module's argument"
+ elog " (modules_<name>_args variable) if your are not already"
+ elog " using \"/etc/modprobe.d\" (which is recommended)."
+
+ fi
if [[ -z "${REPLACING_VERSIONS}" ]]; then
# New installation
next reply other threads:[~2025-02-15 9:29 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-15 9:29 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-18 18:09 [gentoo-commits] repo/gentoo:master commit in: sys-apps/lm-sensors/ Sam James
2024-12-12 11:08 Sam James
2024-12-12 11:08 Sam James
2024-12-12 11:08 Sam James
2024-12-12 11:08 Sam James
2024-12-12 11:08 Sam James
2024-11-27 17:51 Sam James
2024-11-26 14:02 Mike Pagano
2024-10-17 12:48 Mike Pagano
2024-10-16 21:33 Mike Pagano
2024-01-08 12:28 Sam James
2023-06-28 7:50 Sam James
2022-11-20 22:17 Marek Szuba
2022-11-20 22:17 Marek Szuba
2022-11-16 5:57 Arthur Zamarin
2022-11-11 5:34 Sam James
2022-11-11 3:50 Sam James
2022-11-11 3:50 Sam James
2022-11-10 18:18 Arthur Zamarin
2022-11-10 18:18 Arthur Zamarin
2022-11-10 18:18 Arthur Zamarin
2022-09-07 14:30 Marek Szuba
2022-06-29 11:08 Marek Szuba
2022-05-05 10:06 WANG Xuerui
2021-11-20 9:40 Sam James
2021-07-01 14:06 Marek Szuba
2020-10-06 18:19 Sam James
2020-06-20 20:31 Thomas Deutschmann
2020-05-12 6:39 Agostino Sarubbo
2020-05-11 16:47 Agostino Sarubbo
2020-05-11 16:46 Agostino Sarubbo
2020-05-11 11:40 Agostino Sarubbo
2020-05-11 11:28 Agostino Sarubbo
2020-05-11 9:43 Agostino Sarubbo
2020-02-08 16:25 David Seifert
2019-10-18 13:33 Lars Wendler
2019-09-12 14:28 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1739611595.b8dd396e63928b10a4a63352188a1175994636c8.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox