summaryrefslogtreecommitdiff
path: root/x11-drivers
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-18 10:34:16 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-18 10:34:16 +0100
commit9f89bd8499ee8a61d8b3bb7d05bcd9de086b21e5 (patch)
tree363d5f858977bb494d1c927393098532c9db7dc4 /x11-drivers
parent7365aad6161ed2da1f31d6e30603346e8302d381 (diff)
x11-drivers/nvidia-drivers: fix build with USE=-dkms (https://gitweb.gentoo.org/repo/gentoo.git/commit/x11-drivers/nvidia-drivers?id=aefba1ed1e6cd2be0caa41abb600b0a492499424)
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-390.157-r11.ebuild6
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r3.ebuild6
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-550.107.02-r4.ebuild6
3 files changed, 12 insertions, 6 deletions
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.157-r11.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-390.157-r11.ebuild
index 222f9a18..be15e1fb 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.157-r11.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.157-r11.ebuild
@@ -312,8 +312,10 @@ documentation that is installed alongside this README."
# to ensure that the nouveau blacklist is applied
# https://github.com/dracut-ng/dracut-ng/issues/674
# https://bugs.gentoo.org/932781
- echo "install_items+=\" ${EPREFIX}/etc/modprobe.d/nvidia.conf \"" >> \
- "${ED}/usr/lib/dracut/dracut.conf.d/10-${PN}.conf" || die
+ if use dkms; then
+ echo "install_items+=\" ${EPREFIX}/etc/modprobe.d/nvidia.conf \"" >> \
+ "${ED}/usr/lib/dracut/dracut.conf.d/10-${PN}.conf" || die
+ fi
}
_dracut_initramfs_regen() {
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r3.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r3.ebuild
index 822d7180..db4c9dcb 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r3.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r3.ebuild
@@ -307,8 +307,10 @@ documentation that is installed alongside this README."
# to ensure that the nouveau blacklist is applied
# https://github.com/dracut-ng/dracut-ng/issues/674
# https://bugs.gentoo.org/932781
- echo "install_items+=\" ${EPREFIX}/etc/modprobe.d/nvidia.conf \"" >> \
- "${ED}/usr/lib/dracut/dracut.conf.d/10-${PN}.conf" || die
+ if use dkms; then
+ echo "install_items+=\" ${EPREFIX}/etc/modprobe.d/nvidia.conf \"" >> \
+ "${ED}/usr/lib/dracut/dracut.conf.d/10-${PN}.conf" || die
+ fi
}
_dracut_initramfs_regen() {
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-550.107.02-r4.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-550.107.02-r4.ebuild
index cb0a33e8..4d076225 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-550.107.02-r4.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-550.107.02-r4.ebuild
@@ -328,8 +328,10 @@ documentation that is installed alongside this README."
# to ensure that the nouveau blacklist is applied
# https://github.com/dracut-ng/dracut-ng/issues/674
# https://bugs.gentoo.org/932781
- echo "install_items+=\" ${EPREFIX}/etc/modprobe.d/nvidia.conf \"" >> \
- "${ED}/usr/lib/dracut/dracut.conf.d/10-${PN}.conf" || die
+ if use dkms; then
+ echo "install_items+=\" ${EPREFIX}/etc/modprobe.d/nvidia.conf \"" >> \
+ "${ED}/usr/lib/dracut/dracut.conf.d/10-${PN}.conf" || die
+ fi
}
_dracut_initramfs_regen() {