commit: 73bbf5c9464fb3ab17a72c1dc653015d0aa15605 Author: Florian Schmaus <flow <AT> gentoo <DOT> org> AuthorDate: Fri Nov 10 12:55:22 2023 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Sat Nov 11 08:56:45 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73bbf5c9
sys-apps/irqbalance: add 1.9.3 The new version introduces the 'thermal' USE flag with according optfeature and installs irqbalance's udev rule. Closes: https://github.com/gentoo/gentoo/pull/33754 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> profiles/arch/amd64/package.use | 2 +- profiles/arch/amd64/package.use.mask | 4 ++ profiles/base/package.use.mask | 4 ++ sys-apps/irqbalance/Manifest | 1 + sys-apps/irqbalance/irqbalance-1.9.3.ebuild | 74 +++++++++++++++++++++++++++++ sys-apps/irqbalance/metadata.xml | 1 + 6 files changed, 85 insertions(+), 1 deletion(-) diff --git a/profiles/arch/amd64/package.use b/profiles/arch/amd64/package.use index c057afab7c94..31d17baca413 100644 --- a/profiles/arch/amd64/package.use +++ b/profiles/arch/amd64/package.use @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # James Le Cuirot <ch...@gentoo.org> (2022-06-25) diff --git a/profiles/arch/amd64/package.use.mask b/profiles/arch/amd64/package.use.mask index d2c6e747e0da..7acda262fc3c 100644 --- a/profiles/arch/amd64/package.use.mask +++ b/profiles/arch/amd64/package.use.mask @@ -17,6 +17,10 @@ #--- END OF EXAMPLES --- +# Florian Schmaus <f...@gentoo.org> (2023-11-10) +# Only available for amd64. +sys-apps/irqbalance -thermal + # Ionen Wolkens <io...@gentoo.org> (2023-10-09) # media-libs/shaderc is keyworded here. media-libs/libplacebo -shaderc diff --git a/profiles/base/package.use.mask b/profiles/base/package.use.mask index a67c3921d90c..c9b054fc959a 100644 --- a/profiles/base/package.use.mask +++ b/profiles/base/package.use.mask @@ -6,6 +6,10 @@ # This file is only for generic masks. For arch-specific masks (i.e. # mask everywhere, unmask on arch/*) use arch/base. +# Florian Schmaus <f...@gentoo.org> (2023-11-10) +# Only available for amd64. +sys-apps/irqbalance thermal + # Marek Szuba <mare...@gentoo.org> (2023-10-26) # media-gfx/gmic has been masked for removal, see Bug #916289. media-gfx/darktable gmic diff --git a/sys-apps/irqbalance/Manifest b/sys-apps/irqbalance/Manifest index bd18e55b42f0..e5aa80c92da6 100644 --- a/sys-apps/irqbalance/Manifest +++ b/sys-apps/irqbalance/Manifest @@ -1 +1,2 @@ DIST irqbalance-1.9.2.tar.gz 62188 BLAKE2B bc640323c3a594090f77983e63d9b7df177a05b859e4d29edb5b654f886c9e9f0d748ce22b1323bee443ea8369e014b9e0ce383bfe6f396692346649199d10a2 SHA512 d0fb157fbfc096fa9cfb4562e51fd4c3f4fa8788f72377c58b27df67c70073b787bba05e39809dcbe17532bb5b8e74b6d27c5e5b3d9af09bc9ce1a9b6aab9378 +DIST irqbalance-1.9.3.tar.gz 62573 BLAKE2B 0f7b3b62c3784c009c6829078cdf5496910ec3f3c8c13de5f0dfbaed510fb5e3dab4953810c646ece962ef130af3aaa0bb9fa8c2e013485751cc661c9458e87a SHA512 5638fb59f5a59901333b90289ee70c960df0e2b9e55731805397797b8e630bb3703e36a4dfd05bf01de49334dab9d6fc95bde4967eeab131534950d281103fa1 diff --git a/sys-apps/irqbalance/irqbalance-1.9.3.ebuild b/sys-apps/irqbalance/irqbalance-1.9.3.ebuild new file mode 100644 index 000000000000..066d36bb150d --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.9.3.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools udev systemd linux-info optfeature + +DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system" +HOMEPAGE="https://github.com/Irqbalance/irqbalance" +SRC_URI="https://github.com/Irqbalance/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="caps +numa systemd selinux thermal tui" +# Hangs +RESTRICT="test" + +DEPEND=" + dev-libs/glib:2 + caps? ( sys-libs/libcap-ng ) + numa? ( sys-process/numactl ) + systemd? ( sys-apps/systemd:= ) + thermal? ( dev-libs/libnl:3 ) + tui? ( sys-libs/ncurses:=[unicode(+)] ) +" +BDEPEND=" + virtual/pkgconfig +" +RDEPEND=" + ${DEPEND} + selinux? ( sec-policy/selinux-irqbalance ) +" + +pkg_setup() { + CONFIG_CHECK="~PCI_MSI" + linux-info_pkg_setup +} + +src_prepare() { + # Follow systemd policies + # https://wiki.gentoo.org/wiki/Project:Systemd/Ebuild_policy + sed \ + -e 's/ $IRQBALANCE_ARGS//' \ + -e '/EnvironmentFile/d' \ + -i misc/irqbalance.service || die + + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_with caps libcap-ng) + $(use_enable numa) + $(use_with systemd) + $(use_enable thermal) + $(use_with tui irqbalance-ui) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + newinitd "${FILESDIR}"/irqbalance.init.4 irqbalance + newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance + systemd_dounit misc/irqbalance.service + udev_dorules misc/90-irqbalance.rules +} + +pkg_postinst() { + optfeature "thermal events support (requires USE=thermal)" sys-power/thermald +} diff --git a/sys-apps/irqbalance/metadata.xml b/sys-apps/irqbalance/metadata.xml index 6e8113310952..170316cf57a9 100644 --- a/sys-apps/irqbalance/metadata.xml +++ b/sys-apps/irqbalance/metadata.xml @@ -7,6 +7,7 @@ </maintainer> <use> <flag name="numa">Support balancing IRQs across NUMA nodes</flag> + <flag name="thermal">Enable support of thermal events via <pkg>sys-power/thermald</pkg></flag> <flag name="tui">Enable build of irqbalance terminal user interface</flag> </use> <upstream>