public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/rtirq/
Date: Sun, 25 May 2025 08:22:31 +0000 (UTC)	[thread overview]
Message-ID: <1748161290.7a8b556544e6c03248b4d9b1fa99c9b3c1603d42.sam@gentoo> (raw)

commit:     7a8b556544e6c03248b4d9b1fa99c9b3c1603d42
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Fri May 23 21:56:35 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 25 08:21:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a8b5565

sys-process/rtirq: version bump to 20240905

Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Part-of: https://github.com/gentoo/gentoo/pull/42233
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-process/rtirq/Manifest              |  1 +
 sys-process/rtirq/rtirq-20240905.ebuild | 56 +++++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diff --git a/sys-process/rtirq/Manifest b/sys-process/rtirq/Manifest
index 34f363bbeda4..b4376918de73 100644
--- a/sys-process/rtirq/Manifest
+++ b/sys-process/rtirq/Manifest
@@ -1,2 +1,3 @@
 DIST rtirq-20240120.tar.gz 16077 BLAKE2B 2c1ab9f1824d861e13e49667a35fc048e931afb18084de756dcbabde0d4cdd21e78afc9733eb364cd826d4ffd29a89db862033c9539b7cfe7a7b22f7cb353864 SHA512 b945bdb29ef3ef551c19edc9d947a7ed50ecd756dec5a3b02a0cd519a0f506e3ca212b1cb629386dd525d565cc6e2d868c558934c59b8d0bc02573a9589deb86
 DIST rtirq-20240220.tar.gz 16273 BLAKE2B 08af8d371e4ace57dc18276748b00328e7ca1476ae46226ea85ba0c345c7f15b81e412bed8ac30768c5bedffc87887f60d647cd0ec2e82d3751654030c7937f1 SHA512 a6b44f09e158e71bc5697b313d2c7b75097b6f669be4bd7c5c3cee2e59ab38c5751dbd222a28fe7e1bd340d2b7ce5dc7277559c41ad25f9d7b19f180ce337978
+DIST rtirq-20240905.tar.gz 16386 BLAKE2B 9cc32619e4a53660c424bebfffe8452923b8072a2f913df34e2ed73709e45ed61d2d52be51c8c8376526a6a24fb50390fe30a6ec2d0bbe426404920c5103bf86 SHA512 f6e1db1c52a4a73ade89b23b59d5adbc98772c72fe7f6268c60828879ca90cf616f062366d0db514e1c3d5b51f90b4614f2e589426f8a43054da0ec763834552

diff --git a/sys-process/rtirq/rtirq-20240905.ebuild b/sys-process/rtirq/rtirq-20240905.ebuild
new file mode 100644
index 000000000000..d6af983bc41c
--- /dev/null
+++ b/sys-process/rtirq/rtirq-20240905.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit linux-info systemd
+
+DESCRIPTION="Modify realtime scheduling policy and priority of IRQ handlers"
+HOMEPAGE="https://github.com/rncbc/rtirq"
+SRC_URI="https://www.rncbc.org/archive/${P}.tar.gz
+	https://www.rncbc.org/archive/old/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+	sys-apps/util-linux
+"
+
+src_prepare() {
+	# We install into bin
+	sed -i -e "s:/usr/sbin/rtirq:/usr/bin/rtirq:" ${PN}{,-resume}.service || die
+
+	default
+}
+
+src_install() {
+	newbin rtirq.sh rtirq
+	newinitd "${FILESDIR}"/rtirq.initd rtirq
+	insinto /etc/
+	doins rtirq.conf
+	systemd_dounit rtirq{,-resume}.service
+}
+
+pkg_postinst() {
+	local kconfig_warn=1
+	local cmdline
+	local ver
+
+	if linux-info_get_any_version && linux_config_exists; then
+		if linux_chkconfig_present PREEMPT_RT; then
+			kconfig_warn=0
+		elif linux_chkconfig_present IRQ_FORCED_THREADING; then
+			cmdline=$(< /proc/cmdline) || die
+			[[ ${cmdline} == *threadirqs* ]] && kconfig_warn=0
+		fi
+	fi
+
+	if (( ${kconfig_warn} )); then
+		ewarn "To use rtirq, you need one of the following kernel configurations:"
+		ewarn " - PREEMPT_RT config option enabled (e.g. with sys-kernel/rt-sources);"
+		ewarn " - IRQ_FORCED_THREADING config option enabled and 'threadirqs' option"
+		ewarn "   added to the kernel cmdline."
+	fi
+}


             reply	other threads:[~2025-05-25  8:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-25  8:22 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-25  8:22 [gentoo-commits] repo/gentoo:master commit in: sys-process/rtirq/ Sam James
2024-04-24 12:51 Conrad Kostecki
2024-04-18 12:08 Yixun Lan
2024-04-18 12:08 Yixun Lan
2024-02-29 13:48 Joonas Niilola
2023-04-03  6:42 Viorel Munteanu
2023-04-03  6:42 Viorel Munteanu
2022-04-23  5:44 Joonas Niilola
2020-05-17 16:42 Joonas Niilola
2019-09-11 16:21 Michał Górny
2019-04-04 21:16 Aaron Bauman
2018-10-24 11:58 Michał Górny
2018-10-24 11:58 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=1748161290.7a8b556544e6c03248b4d9b1fa99c9b3c1603d42.sam@gentoo \
    --to=sam@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