From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 01D3515808B for ; Wed, 14 Feb 2024 16:46:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36B87E2A6D; Wed, 14 Feb 2024 16:46:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 170AFE2A6D for ; Wed, 14 Feb 2024 16:46:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 16A4C343082 for ; Wed, 14 Feb 2024 16:46:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 94C311132 for ; Wed, 14 Feb 2024 16:46:48 +0000 (UTC) From: "Gonçalo Negrier Duarte" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Gonçalo Negrier Duarte" Message-ID: <1707929195.7cbf93cf509ba4805fe3f12bea1089f758979d14.gonegrier.duarte@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild sys-power/nvidia-exec/nvidia-exec-0.1.2.ebuild sys-power/nvidia-exec/nvidia-exec-9999.ebuild X-VCS-Directories: sys-power/nvidia-exec/ X-VCS-Committer: gonegrier.duarte X-VCS-Committer-Name: Gonçalo Negrier Duarte X-VCS-Revision: 7cbf93cf509ba4805fe3f12bea1089f758979d14 X-VCS-Branch: dev Date: Wed, 14 Feb 2024 16:46:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b15f80e8-974b-43bd-a3ab-64f304c28b46 X-Archives-Hash: 104a4e73c4f32b00410ff501a6aa2d5f commit: 7cbf93cf509ba4805fe3f12bea1089f758979d14 Author: Gonçalo Negrier Duarte gmail com> AuthorDate: Wed Feb 14 16:45:01 2024 +0000 Commit: Gonçalo Negrier Duarte gmail com> CommitDate: Wed Feb 14 16:46:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7cbf93cf sys-power/nvidia-exec: Update nvidia-exec ebuild to changes upstream Closes: https://bugs.gentoo.org/924329 Signed-off-by: Gonçalo Negrier Duarte gmail.com> sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild | 44 +++++++++++++++++++++++ sys-power/nvidia-exec/nvidia-exec-0.1.2.ebuild | 33 ----------------- sys-power/nvidia-exec/nvidia-exec-9999.ebuild | 27 ++++++++++---- 3 files changed, 64 insertions(+), 40 deletions(-) diff --git a/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild b/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild new file mode 100644 index 0000000000..d3b619ba11 --- /dev/null +++ b/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..12} ) + +inherit systemd + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/pedro00dk/nvidia-exec.git" +else + SRC_URI="https://github.com/pedro00dk/nvidia-exec/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +fi + +DESCRIPTION="GPU switching without login out for Nvidia Optimus laptops under Linux" +HOMEPAGE="https://github.com/pedro00dk/nvidia-exec" + +LICENSE="GPL-3" +SLOT="0" + +RDEPEND=" + app-misc/jq + sys-apps/lshw + sys-process/lsof + x11-drivers/nvidia-drivers +" + +KEYWORDS="~amd64 ~x86" + +src_install() { + dobin "${WORKDIR}/${P}/nvx" + systemd_dounit "${WORKDIR}/${P}/nvx.service" + insinto /usr/lib/modprobe.d + newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf +} + +pkg_postinst() { + ewarn "Don't forget to enable the nvx service:\nsystemctl enable --now nvx\n" + ewarn "\nThe nvx.service prevents nvidia modules from loading and turn off the graphics card during boot.\n" + ewarn "It is not necessary to handle files, configurations, PCI buses, etc, all that is done automatically.\n" +} diff --git a/sys-power/nvidia-exec/nvidia-exec-0.1.2.ebuild b/sys-power/nvidia-exec/nvidia-exec-0.1.2.ebuild deleted file mode 100644 index 34cdc38b9f..0000000000 --- a/sys-power/nvidia-exec/nvidia-exec-0.1.2.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..12} ) - -inherit systemd - -SRC_URI="https://github.com/pedro00dk/nvidia-exec/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" - -DESCRIPTION="Lenovo Legion Linux kernel module" -HOMEPAGE="https://github.com/pedro00dk/nvidia-exec" - -LICENSE="GPL-3" -SLOT="0" - -KEYWORDS="~amd64 ~x86" - -src_install() { - dobin "${WORKDIR}/${P}/nvx" - insinto /usr/lib/systemd/system-sleep - doins "${WORKDIR}/${P}/nvx-suspend-restore" - systemd_dounit "${WORKDIR}/${P}/nvx.service" - insinto /usr/lib/modprobe.d - newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf -} - -pkg_postinst() { - ewarn "Don't forget to reload dbus to enable \"nvx\" service, \ -by runnning:\n \`systemctl daemon-reload && systemctl enable --now nvx\`\n" -} diff --git a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild index 7b9751ab99..d3b619ba11 100644 --- a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild +++ b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild @@ -6,26 +6,39 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{9..12} ) -inherit git-r3 systemd +inherit systemd -EGIT_REPO_URI="https://github.com/pedro00dk/nvidia-exec.git" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/pedro00dk/nvidia-exec.git" +else + SRC_URI="https://github.com/pedro00dk/nvidia-exec/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +fi -DESCRIPTION="Lenovo Legion Linux kernel module" +DESCRIPTION="GPU switching without login out for Nvidia Optimus laptops under Linux" HOMEPAGE="https://github.com/pedro00dk/nvidia-exec" LICENSE="GPL-3" SLOT="0" +RDEPEND=" + app-misc/jq + sys-apps/lshw + sys-process/lsof + x11-drivers/nvidia-drivers +" + +KEYWORDS="~amd64 ~x86" + src_install() { dobin "${WORKDIR}/${P}/nvx" - insinto /usr/lib/systemd/system-sleep - doins "${WORKDIR}/${P}/nvx-suspend-restore" systemd_dounit "${WORKDIR}/${P}/nvx.service" insinto /usr/lib/modprobe.d newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf } pkg_postinst() { - ewarn "Don't forget to reload dbus to enable \"nvx\" service, \ -by runnning:\n \`systemctl daemon-reload && systemctl enable --now nvx\`\n" + ewarn "Don't forget to enable the nvx service:\nsystemctl enable --now nvx\n" + ewarn "\nThe nvx.service prevents nvidia modules from loading and turn off the graphics card during boot.\n" + ewarn "It is not necessary to handle files, configurations, PCI buses, etc, all that is done automatically.\n" }