open-gpu-kernel-modules: Skip nvidia-open-gcc-ibt-sls patch on 525 and up

This commit is contained in:
Tk-Glitch 2022-11-11 01:16:54 +01:00
parent 8016370bfc
commit 0661459342

View File

@ -447,7 +447,9 @@ prepare() {
cd open-gpu-kernel-modules-${pkgver}
# Fix for https://bugs.archlinux.org/task/74886
patch -Np1 --no-backup-if-mismatch -i "$srcdir"/nvidia-open-gcc-ibt-sls.diff
if (( ${pkgver%%.*} < 525 )); then
patch -Np1 --no-backup-if-mismatch -i "$srcdir"/nvidia-open-gcc-ibt-sls.diff
fi
# Attempt to make this reproducible
sed -i "s/^HOSTNAME.*/HOSTNAME = echo archlinux"/ utils.mk