app-containers/nvidia-container-toolkit: treeclean, promoted to ::gentoo

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2024-12-10 05:32:53 +05:00
parent fcdb440954
commit e999e9d79a
6 changed files with 0 additions and 178 deletions

View File

@@ -1 +0,0 @@
DIST nvidia-container-toolkit-1.16.1.tar.gz 2642534 BLAKE2B 0b286accab4b6730b1e3b15a726bc5e20ffae9b6816f0fb840013291fdbf9151cd39d8a8e7a97697113c0c4ec88c9fc9e9551e66ec1c3fb61dfa76e31bc41f44 SHA512 691d4fc47ea60b730ec491b333aa8118bcfd62cdab20a42b84155c6a13484d920e758435b5029bbae4fbefce82352aa5764f1554992682f689c95615809fb83c

View File

@@ -1,17 +0,0 @@
disable-require = false
#swarm-resource = "DOCKER_RESOURCE_GPU"
[nvidia-container-cli]
#root = "/run/nvidia/driver"
#path = "/usr/bin/nvidia-container-cli"
environment = []
#debug = "/var/log/nvidia-container-toolkit.log"
#ldcache = "/etc/ld.so.cache"
load-kmods = true
#no-cgroups = false
user = "root:video"
ldconfig = "@/sbin/ldconfig"
#alpha-merge-visible-devices-envvars = false
[nvidia-container-runtime]
#debug = "/var/log/nvidia-container-runtime.log"

View File

@@ -1,11 +0,0 @@
--- a/Makefile
+++ b/Makefile
@@ -60,7 +60,7 @@
cmds: $(CMD_TARGETS)
ifneq ($(shell uname),Darwin)
-EXTLDFLAGS = -Wl,--export-dynamic -Wl,--unresolved-symbols=ignore-in-object-files
+EXTLDFLAGS = -Wl,--export-dynamic -Wl,--unresolved-symbols=ignore-in-object-files -Wl,-z,lazy
else
EXTLDFLAGS = -Wl,-undefined,dynamic_lookup
endif

View File

@@ -1,27 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>vowstar@gmail.com</email>
<name>Huang Rui</name>
</maintainer>
<upstream>
<remote-id type="github">NVIDIA/nvidia-container-toolkit</remote-id>
</upstream>
<longdescription lang="en">
NVIDIA container runtime toolkit, build and run containers leveraging
NVIDIA GPUs. tl;dr: nvidia-docker is deprecated because docker now has
native gpu support, which this package is required to use. The NVIDIA
Container Toolkit (formerly known as NVIDIA Docker) allows containers to
access full GPU acceleration. OpenGL, OpenCL and CUDA are supported for
production use. Vulkan support is currently in beta. This only works for
Linux containers running on Linux host systems with NVIDIA GPUs.
</longdescription>
<longdescription lang="zh">
NVIDIA容器运行时工具包构建和运行利用NVIDIA GPU的容器。简而言之
nvidia-docker已经过时因为docker现在具有原生的GPU支持而这个包是使用它
所必需的。NVIDIA容器工具包以前称为NVIDIA Docker允许容器访问完整的
GPU加速。OpenGL、OpenCL和CUDA支持生产使用。Vulkan支持目前处于测试阶段。
这只适用于在配备NVIDIA GPU的Linux主机系统上运行的Linux容器。
</longdescription>
</pkgmetadata>

View File

@@ -1,61 +0,0 @@
# Copyright 1999-2024 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/nvidia-container-toolkit"
if [[ "${PV}" == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/NVIDIA/${PN}.git"
inherit git-r3
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
RDEPEND="
sys-libs/libnvidia-container:0/${PV}
"
PATCHES=(
"${FILESDIR}/extldflags-1.16.1.patch"
)
src_compile() {
emake binaries
}
src_install() {
# Fixed by https://github.com/vizv
dobin "nvidia-cdi-hook"
dobin "nvidia-container-runtime"
dobin "nvidia-container-runtime.cdi"
dobin "nvidia-container-runtime.legacy"
dobin "nvidia-container-runtime-hook"
dobin "nvidia-ctk"
insinto "/etc/nvidia-container-runtime"
doins "${FILESDIR}/config.toml"
}
pkg_postinst() {
elog "Your docker service must restart after install this package."
elog "OpenRC: sudo rc-service docker restart"
elog "systemd: sudo 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."
}

View File

@@ -1,61 +0,0 @@
# Copyright 1999-2024 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/nvidia-container-toolkit"
if [[ "${PV}" == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/NVIDIA/${PN}.git"
inherit git-r3
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
RDEPEND="
sys-libs/libnvidia-container:0/${PV}
"
PATCHES=(
"${FILESDIR}/extldflags-1.16.1.patch"
)
src_compile() {
emake binaries
}
src_install() {
# Fixed by https://github.com/vizv
dobin "nvidia-cdi-hook"
dobin "nvidia-container-runtime"
dobin "nvidia-container-runtime.cdi"
dobin "nvidia-container-runtime.legacy"
dobin "nvidia-container-runtime-hook"
dobin "nvidia-ctk"
insinto "/etc/nvidia-container-runtime"
doins "${FILESDIR}/config.toml"
}
pkg_postinst() {
elog "Your docker service must restart after install this package."
elog "OpenRC: sudo rc-service docker restart"
elog "systemd: sudo 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."
}