From: quentin-z80 <quentin-z80@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: nvidia-docker-2.11.0
Date: Sun, 19 Jun 2022 05:37:08 +0200 [thread overview]
Message-ID: <20220619033708.0SxQzyKs3Z_bkmRcdWdeDCn3FZetFkalMWHryvGV-1I@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33059@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 811 bytes --]
There is an updated pull request by quentin-z80 against master on the void-packages repository
https://github.com/quentin-z80/void-packages nvidia-docker
https://github.com/void-linux/void-packages/pull/33059
New package: nvidia-docker-2.11.0
#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
Resolves: #11084
Supersedes #17505
Can be tested by running:
`docker run --gpus all nvidia/cuda:9.0-base nvidia-smi`
A patch file from https://github.com/void-linux/void-packages/pull/33059.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-nvidia-docker-33059.patch --]
[-- Type: text/x-diff, Size: 7235 bytes --]
From f3b7b084f90b13ffbabfbfdc22b170e5d2de3265 Mon Sep 17 00:00:00 2001
From: Quentin Freimanis <quentinfreimanis@gmail.com>
Date: Sat, 18 Jun 2022 20:36:45 -0700
Subject: [PATCH 1/3] New package: libnvidia-container-1.10.0
---
common/shlibs | 2 +
srcpkgs/libnvidia-container-devel | 1 +
.../patches/fix_rpc_flags.patch | 12 ++++++
srcpkgs/libnvidia-container/template | 43 +++++++++++++++++++
4 files changed, 58 insertions(+)
create mode 120000 srcpkgs/libnvidia-container-devel
create mode 100644 srcpkgs/libnvidia-container/patches/fix_rpc_flags.patch
create mode 100644 srcpkgs/libnvidia-container/template
diff --git a/common/shlibs b/common/shlibs
index 098f15bbf3e5..7f35c64b3f77 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4162,3 +4162,5 @@ libCore.so root-6.24.06_1
libCore.so qtcreator-7.0.2_1
liblowdown.so lowdown-0.11.2_1
libjaylink.so.0 libjaylink-0.2.0_1
+libnvidia-container.so.1 libnvidia-container-1.10.0_1
+libnvidia-container-go.so.1 libnvidia-container-1.10.0_1
diff --git a/srcpkgs/libnvidia-container-devel b/srcpkgs/libnvidia-container-devel
new file mode 120000
index 000000000000..39e6f1942c7b
--- /dev/null
+++ b/srcpkgs/libnvidia-container-devel
@@ -0,0 +1 @@
+libnvidia-container
\ No newline at end of file
diff --git a/srcpkgs/libnvidia-container/patches/fix_rpc_flags.patch b/srcpkgs/libnvidia-container/patches/fix_rpc_flags.patch
new file mode 100644
index 000000000000..2ff327e4612c
--- /dev/null
+++ b/srcpkgs/libnvidia-container/patches/fix_rpc_flags.patch
@@ -0,0 +1,12 @@
+--- a/Makefile 2021-11-23 10:58:59.234599602 -0800
++++ b/Makefile 2021-11-23 11:00:02.476171671 -0800
+@@ -126,7 +126,8 @@
+ -Wall -Wextra -Wcast-align -Wpointer-arith -Wmissing-prototypes -Wnonnull \
+ -Wwrite-strings -Wlogical-op -Wformat=2 -Wmissing-format-attribute -Winit-self -Wshadow \
+ -Wstrict-prototypes -Wunreachable-code -Wconversion -Wsign-conversion \
+- -Wno-unknown-warning-option -Wno-format-extra-args -Wno-gnu-alignof-expression $(CFLAGS)
++ -Wno-unknown-warning-option -Wno-format-extra-args -Wno-gnu-alignof-expression \
++ -I/usr/include/tirpc -ltirpc $(CFLAGS)
+ LDFLAGS := -Wl,-zrelro -Wl,-znow -Wl,-zdefs -Wl,--gc-sections $(LDFLAGS)
+ LDLIBS := $(LDLIBS)
+
diff --git a/srcpkgs/libnvidia-container/template b/srcpkgs/libnvidia-container/template
new file mode 100644
index 000000000000..29cca16981f6
--- /dev/null
+++ b/srcpkgs/libnvidia-container/template
@@ -0,0 +1,43 @@
+# Template file for 'libnvidia-container'
+pkgname=libnvidia-container
+version=1.10.0
+revision=1
+archs="x86_64"
+hostmakedepends="tar xz curl bmake groff m4 pkg-config which go"
+makedepends="rpcsvc-proto libcap-devel libseccomp-devel libtirpc-devel"
+short_desc="NVIDIA container runtime library"
+maintainer="Quentin Freimanis <quentinfreimanis@gmail.com>"
+license="Apache-2.0"
+homepage="https://github.com/NVIDIA/libnvidia-container"
+distfiles="https://github.com/NVIDIA/libnvidia-container/archive/v${version}.tar.gz"
+checksum=418bdfa14d6339e21a401b945967945ff0b1e99a319783f84ee59a032ff7759d
+
+do_build() {
+ make dist prefix=/usr REVISION=${version}
+}
+
+pre_install() {
+ cd dist
+ tar xvf ${pkgname}_${version}_${archs}.tar.xz
+}
+
+do_install() {
+ vinstall dist/${pkgname}_${version}/usr/lib/${pkgname}.so.${version} 755 /usr/lib/
+ vinstall dist/${pkgname}_${version}/usr/lib/${pkgname}-go.so.${version} 755 /usr/lib/
+ ln -s /usr/lib/${pkgname}.so.${version} ${DESTDIR}/usr/lib/${pkgname}.so.${version%%.*}
+ ln -s /usr/lib/${pkgname}-go.so.${version} ${DESTDIR}/usr/lib/${pkgname}-go.so.${version%%.*}
+
+ vbin dist/${pkgname}_${version}/usr/bin/nvidia-container-cli
+}
+
+libnvidia-container-devel_package() {
+ short_desc+=" - development files"
+ depends="${sourcepkg}>=${version}_${revision}"
+ pkg_install() {
+ vinstall dist/${sourcepkg}_${version}/usr/lib/${sourcepkg}.a 644 /usr/lib/
+ ln -s /usr/lib/${pkgname}.so.${version} ${PKGDESTDIR}/usr/lib/${pkgname}.so
+ ln -s /usr/lib/${pkgname}-go.so.${version} ${PKGDESTDIR}/usr/lib/${pkgname}-go.so
+ vinstall dist/${sourcepkg}_${version}/usr/include/nvc.h 644 /usr/include/
+ vinstall dist/${sourcepkg}_${version}/usr/lib/pkgconfig/${sourcepkg}.pc 644 /usr/lib/pkgconfig/
+ }
+}
From 599955e61a477f56abd74b37273af338ef6701c5 Mon Sep 17 00:00:00 2001
From: Quentin Freimanis <quentinfreimanis@gmail.com>
Date: Sat, 18 Jun 2022 20:36:51 -0700
Subject: [PATCH 2/3] New package: nvidia-container-toolkit-1.10.0
---
srcpkgs/nvidia-container-toolkit/template | 24 +++++++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 srcpkgs/nvidia-container-toolkit/template
diff --git a/srcpkgs/nvidia-container-toolkit/template b/srcpkgs/nvidia-container-toolkit/template
new file mode 100644
index 000000000000..99d6afdfb11c
--- /dev/null
+++ b/srcpkgs/nvidia-container-toolkit/template
@@ -0,0 +1,24 @@
+# Template file for 'nvidia-container-toolkit'
+pkgname=nvidia-container-toolkit
+version=1.10.0
+revision=1
+archs="x86_64"
+build_style=go
+go_import_path=github.com/NVIDIA/nvidia-container-toolkit
+go_package="${go_import_path}/cmd/nvidia-container-toolkit
+ ${go_import_path}/cmd/nvidia-container-runtime
+ ${go_import_path}/cmd/nvidia-ctk"
+depends="libnvidia-container"
+short_desc="Build and run containers leveraging NVIDIA GPUs"
+maintainer="Quentin Freimanis <quentinfreimanis@gmail.com>"
+license="Apache-2.0"
+homepage="https://github.com/NVIDIA/nvidia-container-toolkit/"
+distfiles="https://github.com/NVIDIA/nvidia-container-toolkit/archive/v${version}.tar.gz"
+checksum=7c88e6b16df92feac9a14f7ca7f2960409c71760b2563fea29c57c8799930db3
+
+post_install() {
+ ln -sf /usr/bin/nvidia-container-toolkit ${DESTDIR}/usr/bin/nvidia-container-runtime-hook
+ vmkdir /etc/nvidia-container-runtime 755
+ vinstall config/config.toml.centos 644 /etc/nvidia-container-runtime config.toml
+ vinstall oci-nvidia-hook.json 644 /usr/share/containers/oci/hooks.d 00-oci-nvidia-hook.json
+}
From 9f1b2813ebe1612ae749e91095b5472b8516bda2 Mon Sep 17 00:00:00 2001
From: Quentin Freimanis <quentinfreimanis@gmail.com>
Date: Sat, 18 Jun 2022 20:36:54 -0700
Subject: [PATCH 3/3] New package: nvidia-docker-2.11.0
---
srcpkgs/nvidia-docker/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/nvidia-docker/template
diff --git a/srcpkgs/nvidia-docker/template b/srcpkgs/nvidia-docker/template
new file mode 100644
index 000000000000..1bb57464f874
--- /dev/null
+++ b/srcpkgs/nvidia-docker/template
@@ -0,0 +1,17 @@
+# Template file for 'nvidia-docker'
+pkgname=nvidia-docker
+version=2.11.0
+revision=1
+archs="x86_64"
+depends="nvidia-container-toolkit libnvidia-container docker"
+short_desc="Build and run Docker containers leveraging NVIDIA GPUs"
+maintainer="Quentin Freimanis <quentinfreimanis@gmail.com>"
+license="Apache-2.0"
+homepage="https://github.com/NVIDIA/nvidia-docker"
+distfiles="https://github.com/NVIDIA/nvidia-docker/archive/v${version}.tar.gz"
+checksum=01d96e5063da71ad51989b555dfe2fc9af64115ae128e47ceec3a27a3e7dccf2
+
+do_install() {
+ vbin nvidia-docker
+ vinstall daemon.json 644 etc/docker/
+}
next prev parent reply other threads:[~2022-06-19 3:37 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-22 20:56 [PR PATCH] New package: nvidia-docker-2.6.0 quentin-z80
2021-10-15 16:39 ` [PR PATCH] [Updated] " quentin-z80
2021-11-11 23:16 ` quentin-z80
2021-11-24 0:26 ` quentin-z80
2021-11-25 0:00 ` [PR PATCH] [Updated] New package: nvidia-docker-2.7.0 quentin-z80
2021-11-25 0:03 ` quentin-z80
2021-12-20 22:23 ` quentin-z80
2021-12-22 4:58 ` quentin-z80
2021-12-22 22:25 ` quentin-z80
2022-01-03 9:04 ` New package: nvidia-docker-2.8.0 classabbyamp
2022-01-03 20:19 ` classabbyamp
2022-01-04 0:31 ` classabbyamp
2022-01-04 0:33 ` classabbyamp
2022-01-04 1:11 ` [PR PATCH] [Updated] " quentin-z80
2022-01-21 22:55 ` quentin-z80
2022-01-30 0:59 ` jchook
2022-01-30 3:45 ` [PR PATCH] [Updated] " quentin-z80
2022-01-30 3:53 ` quentin-z80
2022-01-30 4:00 ` quentin-z80
2022-01-31 5:43 ` jchook
2022-01-31 5:44 ` jchook
2022-01-31 5:51 ` jchook
2022-01-31 18:09 ` [PR PATCH] [Updated] " quentin-z80
2022-02-02 4:16 ` quentin-z80
2022-02-02 17:32 ` [PR REVIEW] " classabbyamp
2022-02-02 18:51 ` [PR PATCH] [Updated] " quentin-z80
2022-02-02 18:51 ` [PR REVIEW] " quentin-z80
2022-02-20 19:25 ` [PR PATCH] [Updated] " quentin-z80
2022-02-26 5:48 ` ryjelsum
2022-02-26 6:52 ` jchook
2022-03-02 19:48 ` [PR PATCH] [Updated] " quentin-z80
2022-04-08 0:03 ` [PR PATCH] [Updated] New package: nvidia-docker-2.9.1 quentin-z80
2022-05-01 19:55 ` New package: nvidia-docker-2.10.0 nuxion
2022-05-07 22:20 ` [PR PATCH] [Updated] " quentin-z80
2022-05-07 22:21 ` quentin-z80
2022-06-12 1:24 ` quentin-z80
2022-06-14 18:36 ` [PR REVIEW] " classabbyamp
2022-06-14 18:36 ` classabbyamp
2022-06-14 18:36 ` classabbyamp
2022-06-18 17:00 ` [PR PATCH] [Updated] " quentin-z80
2022-06-18 17:46 ` [PR PATCH] [Updated] New package: nvidia-docker-2.11.0 quentin-z80
2022-06-18 17:51 ` quentin-z80
2022-06-18 17:55 ` [PR REVIEW] " quentin-z80
2022-06-19 1:06 ` classabbyamp
2022-06-19 1:06 ` classabbyamp
2022-06-19 3:37 ` quentin-z80 [this message]
2022-06-19 4:39 ` [PR PATCH] [Updated] " quentin-z80
2022-06-20 17:52 ` [PR PATCH] [Merged]: " classabbyamp
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=20220619033708.0SxQzyKs3Z_bkmRcdWdeDCn3FZetFkalMWHryvGV-1I@z \
--to=quentin-z80@users.noreply.github.com \
--cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).