From 191df47efd11aed9da68b4a7f8531ae9791be24e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 25 Oct 2024 20:50:48 +0100 Subject: sys-kernel/nvidia-drivers-dkms : enable build for kernel 6.11.x --- sys-kernel/nvidia-drivers-dkms/files/dkms550.patch | 4 +- .../nvidia-drivers-dkms-550.127.05-r1.ebuild | 51 ++++++++++++++++++++++ .../nvidia-drivers-dkms-550.127.05.ebuild | 51 ---------------------- 3 files changed, 53 insertions(+), 53 deletions(-) create mode 100644 sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-550.127.05-r1.ebuild delete mode 100644 sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-550.127.05.ebuild (limited to 'sys-kernel') diff --git a/sys-kernel/nvidia-drivers-dkms/files/dkms550.patch b/sys-kernel/nvidia-drivers-dkms/files/dkms550.patch index e0798949..e0935e86 100644 --- a/sys-kernel/nvidia-drivers-dkms/files/dkms550.patch +++ b/sys-kernel/nvidia-drivers-dkms/files/dkms550.patch @@ -6,7 +6,7 @@ diff -Nur a/kernel/dkms.conf b/kernel/dkms.conf -PACKAGE_VERSION="__VERSION_STRING" +PACKAGE_NAME="nvidia-drivers-dkms" +PACKAGE_VERSION="550.127.05" -+BUILD_EXCLUSIVE_KERNEL="^(5\.[0-9]+\.|6\.[0-9]\.|\.|6\.1[0-0]\.)" # only build for kernels v5.x.x up to and including v6.10.x ++BUILD_EXCLUSIVE_KERNEL="^(5\.[0-9]+\.|6\.[0-9]\.|\.|6\.1[0-1]\.)" # only build for kernels v5.x.x up to and including v6.11.x AUTOINSTALL="yes" # By default, DKMS will add KERNELRELEASE to the make command line; however, @@ -36,7 +36,7 @@ diff -Nur a/kernel-open/dkms.conf b/kernel-open/dkms.conf -PACKAGE_VERSION="__VERSION_STRING" +PACKAGE_NAME="nvidia-drivers-dkms" +PACKAGE_VERSION="550.127.05" -+BUILD_EXCLUSIVE_KERNEL="^(5\.[0-9]+\.|6\.[0-9]\.|\.|6\.1[0-0]\.)" # only build for kernels v5.x.x up to and including v6.10.x ++BUILD_EXCLUSIVE_KERNEL="^(5\.[0-9]+\.|6\.[0-9]\.|\.|6\.1[0-1]\.)" # only build for kernels v5.x.x up to and including v6.11.x AUTOINSTALL="yes" # By default, DKMS will add KERNELRELEASE to the make command line; however, diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-550.127.05-r1.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-550.127.05-r1.ebuild new file mode 100644 index 00000000..1bc82c27 --- /dev/null +++ b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-550.127.05-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=8 + +NV_URI="http://us.download.nvidia.com/XFree86/" +AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${PV}" + +DESCRIPTION="NVIDIA driver sources for linux" +HOMEPAGE="http://www.nvidia.com/" +SRC_URI="amd64? ( ${NV_URI}Linux-x86_64/${PV}/${AMD64_NV_PACKAGE}.run )" + +LICENSE="GPL-2 NVIDIA-r2" +SLOT="5" +KEYWORDS="amd64" +IUSE="kernel-open" +RESTRICT="strip" + +DEPEND="sys-kernel/dkms" +RDEPEND="${DEPEND} + !!sys-kernel/nvidia-drivers-dkms:3 + !!sys-kernel/nvidia-drivers-dkms:4" + +PATCHES=( + "${FILESDIR}"/dkms550.patch +) + +S="${WORKDIR}/${AMD64_NV_PACKAGE}" + +src_unpack() { + sh ${DISTDIR}/${AMD64_NV_PACKAGE}.run --extract-only +} + +src_install() { + dodir usr/src/${P} + insinto usr/src/${P} + if use kernel-open; then + doins -r "${S}"/kernel-open/* + else + doins -r "${S}"/kernel/* + fi +} + +pkg_postinst() { + dkms add ${PN}/${PV} +} + +pkg_prerm() { + dkms remove ${PN}/${PV} --all +} diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-550.127.05.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-550.127.05.ebuild deleted file mode 100644 index 1bc82c27..00000000 --- a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-550.127.05.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=8 - -NV_URI="http://us.download.nvidia.com/XFree86/" -AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${PV}" - -DESCRIPTION="NVIDIA driver sources for linux" -HOMEPAGE="http://www.nvidia.com/" -SRC_URI="amd64? ( ${NV_URI}Linux-x86_64/${PV}/${AMD64_NV_PACKAGE}.run )" - -LICENSE="GPL-2 NVIDIA-r2" -SLOT="5" -KEYWORDS="amd64" -IUSE="kernel-open" -RESTRICT="strip" - -DEPEND="sys-kernel/dkms" -RDEPEND="${DEPEND} - !!sys-kernel/nvidia-drivers-dkms:3 - !!sys-kernel/nvidia-drivers-dkms:4" - -PATCHES=( - "${FILESDIR}"/dkms550.patch -) - -S="${WORKDIR}/${AMD64_NV_PACKAGE}" - -src_unpack() { - sh ${DISTDIR}/${AMD64_NV_PACKAGE}.run --extract-only -} - -src_install() { - dodir usr/src/${P} - insinto usr/src/${P} - if use kernel-open; then - doins -r "${S}"/kernel-open/* - else - doins -r "${S}"/kernel/* - fi -} - -pkg_postinst() { - dkms add ${PN}/${PV} -} - -pkg_prerm() { - dkms remove ${PN}/${PV} --all -} -- cgit v1.2.3