Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [WIP] New package: nvidia-open-dkms-550.107.02
@ 2024-07-30  5:00 mike7d7
  2024-10-29  2:00 ` github-actions
  0 siblings, 1 reply; 2+ messages in thread
From: mike7d7 @ 2024-07-30  5:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 861 bytes --]

There is a new pull request by mike7d7 against master on the void-packages repository

https://github.com/mike7d7/void-packages nvidia-open
https://github.com/void-linux/void-packages/pull/51538

[WIP] New package: nvidia-open-dkms-550.107.02
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc


#### Comments
Requires #51537 
Marked as WIP since this release is still in [beta](https://us.download.nvidia.com/XFree86/Linux-x86_64/550.107.02/README/kernel_open.html)

A patch file from https://github.com/void-linux/void-packages/pull/51538.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-nvidia-open-51538.patch --]
[-- Type: text/x-diff, Size: 3474 bytes --]

From f8251ae2493036c616f6e7ff54ad6a5f43534068 Mon Sep 17 00:00:00 2001
From: Miguel <migue07mx@protonmail.com>
Date: Mon, 29 Jul 2024 22:37:14 -0600
Subject: [PATCH] New package: nvidia-open-dkms-550.107.02

---
 srcpkgs/nvidia-open-dkms/files/dkms.conf | 26 +++++++++++++++++
 srcpkgs/nvidia-open-dkms/template        | 37 ++++++++++++++++++++++++
 2 files changed, 63 insertions(+)
 create mode 100644 srcpkgs/nvidia-open-dkms/files/dkms.conf
 create mode 100644 srcpkgs/nvidia-open-dkms/template

diff --git a/srcpkgs/nvidia-open-dkms/files/dkms.conf b/srcpkgs/nvidia-open-dkms/files/dkms.conf
new file mode 100644
index 00000000000000..62866c7b2f04bd
--- /dev/null
+++ b/srcpkgs/nvidia-open-dkms/files/dkms.conf
@@ -0,0 +1,26 @@
+PACKAGE_NAME="nvidia"
+PACKAGE_VERSION="__VERSION_STRING"
+AUTOINSTALL="yes"
+
+# By default, DKMS will add KERNELRELEASE to the make command line; however,
+# this will cause the kernel module build to infer that it was invoked via
+# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
+# the 'make' command name to suppress this behavior.
+MAKE[0]="'make' -j`nproc` NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=${kernelver} modules"
+
+# The list of kernel modules will be generated by nvidia-installer at runtime.
+BUILT_MODULE_NAME[0]="nvidia"
+BUILT_MODULE_LOCATION[0]="kernel-open"
+DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
+BUILT_MODULE_NAME[1]="nvidia-uvm"
+BUILT_MODULE_LOCATION[1]="kernel-open"
+DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
+BUILT_MODULE_NAME[2]="nvidia-modeset"
+BUILT_MODULE_LOCATION[2]="kernel-open"
+DEST_MODULE_LOCATION[2]="/kernel/drivers/video"
+BUILT_MODULE_NAME[3]="nvidia-drm"
+BUILT_MODULE_LOCATION[3]="kernel-open"
+DEST_MODULE_LOCATION[3]="/kernel/drivers/video"
+BUILT_MODULE_NAME[4]="nvidia-peermem"
+BUILT_MODULE_LOCATION[4]="kernel-open"
+DEST_MODULE_LOCATION[4]="/kernel/drivers/video"
diff --git a/srcpkgs/nvidia-open-dkms/template b/srcpkgs/nvidia-open-dkms/template
new file mode 100644
index 00000000000000..600d72975e702b
--- /dev/null
+++ b/srcpkgs/nvidia-open-dkms/template
@@ -0,0 +1,37 @@
+# Template file for 'nvidia-open-dkms'
+pkgname=nvidia-open-dkms
+version=550.107.02
+revision=1
+archs="x86_64"
+depends="dkms nvidia"
+short_desc="NVIDIA Linux open GPU kernel module source"
+maintainer="mike7d7 <mike7d7@proton.me>"
+license="GPL-2.0-only, MIT"
+homepage="https://github.com/NVIDIA/open-gpu-kernel-modules"
+changelog="https://github.com/NVIDIA/open-gpu-kernel-modules/blob/main/CHANGELOG.md"
+distfiles="https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/${version}.tar.gz"
+checksum=b96ed0ab2c9d03f76ff85098d08523d4aaa041c580565a7905fe6add69ba2569
+replaces="nvidia-dkms>=0"
+dkms_modules="nvidia-open-dkms ${version}"
+triggers="dkms initramfs-regenerate"
+
+
+do_install() {
+	vmkdir usr/src/nvidia-open-dkms-${version}
+	vcopy "*" usr/src/nvidia-open-dkms-${version}
+	cp ${FILESDIR}/dkms.conf ${DESTDIR}/usr/src/nvidia-open-dkms-${version}/dkms.conf
+	vsed -e "s/__VERSION_STRING/${version}/" -i ${DESTDIR}/usr/src/nvidia-open-dkms-${version}/dkms.conf
+
+	vmkdir usr/lib/modprobe.d
+	echo "blacklist nouveau" > ${DESTDIR}/usr/lib/modprobe.d/nvidia.conf
+	echo "options nvidia NVreg_OpenRmEnableUnsupportedGpus=1" >> ${DESTDIR}/usr/lib/modprobe.d/nvidia.conf
+	chmod 644 ${DESTDIR}/usr/lib/modprobe.d/nvidia.conf
+
+	vdoc README.md
+	vlicense COPYING
+
+	pkg_install() {
+		vmove usr/src
+		vmove usr/lib/modprobe.d
+	}
+}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [WIP] New package: nvidia-open-dkms-550.107.02
  2024-07-30  5:00 [PR PATCH] [WIP] New package: nvidia-open-dkms-550.107.02 mike7d7
@ 2024-10-29  2:00 ` github-actions
  0 siblings, 0 replies; 2+ messages in thread
From: github-actions @ 2024-10-29  2:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/51538#issuecomment-2443008976

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-29  2:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-30  5:00 [PR PATCH] [WIP] New package: nvidia-open-dkms-550.107.02 mike7d7
2024-10-29  2:00 ` github-actions

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).