From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 finch.gentoo.org (Postfix) with ESMTPS id AD5541581EE for ; Tue, 01 Apr 2025 02:45:26 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 96C1034305E for ; Tue, 01 Apr 2025 02:45:26 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 7FC261104B1; Tue, 01 Apr 2025 02:45:22 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 bobolink.gentoo.org (Postfix) with ESMTPS id 71C6A1104B1 for ; Tue, 01 Apr 2025 02:45:22 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1D542340C39 for ; Tue, 01 Apr 2025 02:45:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6CBA31A3C for ; Tue, 01 Apr 2025 02:45:20 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1743475422.9acbb7d8d0a63f550fd5e0427f45621e10d75cb1.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-containers/nvidia-container-toolkit/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-containers/nvidia-container-toolkit/Manifest app-containers/nvidia-container-toolkit/nvidia-container-toolkit-1.17.5.ebuild X-VCS-Directories: app-containers/nvidia-container-toolkit/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 9acbb7d8d0a63f550fd5e0427f45621e10d75cb1 X-VCS-Branch: master Date: Tue, 01 Apr 2025 02:45:20 +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: ca081b95-0b62-46af-ba0e-826091b8c2ba X-Archives-Hash: 7c793a966457274f38a37e7866e538d4 commit: 9acbb7d8d0a63f550fd5e0427f45621e10d75cb1 Author: Z. Liu gmail com> AuthorDate: Thu Mar 13 03:26:07 2025 +0000 Commit: Yixun Lan gentoo org> CommitDate: Tue Apr 1 02:43:42 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9acbb7d8 app-containers/nvidia-container-toolkit: add 1.17.5 Closes: https://github.com/gentoo/gentoo/pull/41044 Signed-off-by: Z. Liu gmail.com> Signed-off-by: Yixun Lan gentoo.org> app-containers/nvidia-container-toolkit/Manifest | 1 + .../nvidia-container-toolkit-1.17.5.ebuild | 58 ++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/app-containers/nvidia-container-toolkit/Manifest b/app-containers/nvidia-container-toolkit/Manifest index 8c922b3d10de..ee2d82221832 100644 --- a/app-containers/nvidia-container-toolkit/Manifest +++ b/app-containers/nvidia-container-toolkit/Manifest @@ -1,2 +1,3 @@ DIST nvidia-container-toolkit-1.17.3.tar.gz 2718001 BLAKE2B 455a4159c45846951e8ebaee94393e20764e9e6cac10247dcbd4d9a16431a529ebe9bd6146fb590c1ea92f2e5f4c5561adfa6b8b495fe79f761e5664661acad4 SHA512 8c7a4290a1decc448c72e9a09213e0dc4e418ec633cefb16bb6b01fef7c502d23ed72cc1f3cc6583cad07feae5ca3cf44dad73e1274e042e3b26bdc7a4152b95 DIST nvidia-container-toolkit-1.17.4.tar.gz 2720079 BLAKE2B 48f040872e6545455736bd8b4931ebc3988cb78d51c3a763987504b882ad2a79ada9e98251f06f14f2199cd89680beb14e84fdc444ef3a51ac1b7e1d89e95d98 SHA512 ba79670cfc5e0abec388af858f2f7f1a153c5bc90f0b9540ffc6a095b8724f08c329742bc22cdc700299e063668bf574a7ac0bfa4c964763370c9b0500d5057c +DIST nvidia-container-toolkit-1.17.5.tar.gz 5357060 BLAKE2B 18cb5e1bbe8a5cc9c365d009fcd724edd7f9016a6cda97f3ea07604becb817e25ba56272c3eb8b29176b1e2384fc0ba0a190618a2e58cc8a659df5b66bf0f96e SHA512 4feb91c730946e33853afea5a073d92a78ca9bf737ae7dcbf6afc4071f9d531da08b616823b9a28b6c65c6f307725538d47319082ff38ef5af7b8e1286e7166f diff --git a/app-containers/nvidia-container-toolkit/nvidia-container-toolkit-1.17.5.ebuild b/app-containers/nvidia-container-toolkit/nvidia-container-toolkit-1.17.5.ebuild new file mode 100644 index 000000000000..0124c0488696 --- /dev/null +++ b/app-containers/nvidia-container-toolkit/nvidia-container-toolkit-1.17.5.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +EGO_PN="github.com/NVIDIA/${PN}" + +inherit go-module + +DESCRIPTION="NVIDIA container runtime toolkit" +HOMEPAGE="https://github.com/NVIDIA/container-toolkit" + +if [[ "${PV}" == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/NVIDIA/${PN}.git" +else + SRC_URI=" + https://github.com/NVIDIA/${PN}/archive/v${PV/_rc/-rc.}.tar.gz -> ${P}.tar.gz + " + S="${WORKDIR}/${PN}-${PV/_rc/-rc.}" + KEYWORDS="~amd64" +fi + +LICENSE="Apache-2.0" +SLOT="0/${PV}" + +# Some tests may require specific environmental setups or additional hardware. +RESTRICT="test" # Bug 831702 + +# Bug 950233 version should not be newer than libnvidia-container +RDEPEND=" + ~sys-libs/libnvidia-container-${PV} +" + +src_compile() { + emake binaries +} + +src_install() { + dobin nvidia-cdi-hook \ + nvidia-container-runtime \ + nvidia-container-runtime.cdi \ + nvidia-container-runtime.legacy \ + nvidia-container-runtime-hook \ + nvidia-ctk + insinto "/etc/nvidia-container-runtime" + doins "${FILESDIR}/config.toml" +} + +pkg_postinst() { + elog "Your docker or containerd (if applicable) service may need restart" + elog "after install this package:" + elog "OpenRC: rc-service containerd restart; rc-service docker restart" + elog "systemd: systemctl restart containerd; systemctl restart docker" + elog "You may need to edit your /etc/nvidia-container-runtime/config.toml" + elog "file before running ${PN} for the first time." + elog "For details, please see the NVIDIA docker manual page." +}