diff --git a/nvidia-graphics-drivers-565/debian/patches/0001.patch b/nvidia-graphics-drivers-565/debian/patches/0001.patch index aba50e2..09e2d99 100644 --- a/nvidia-graphics-drivers-565/debian/patches/0001.patch +++ b/nvidia-graphics-drivers-565/debian/patches/0001.patch @@ -93,26 +93,3 @@ index 8cb94219..16f0d13e 100644 -- 2.47.0 -Signed-off-by: Rahul Rameshbabu ---- - kernel-open/nvidia-drm/nvidia-drm-drv.c | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/kernel/nvidia-drm/nvidia-drm-drv.c b/kernel/nvidia-drm/nvidia-drm-drv.c -index 8cb94219..16f0d13e 100644 ---- a/kernel/nvidia-drm/nvidia-drm-drv.c -+++ b/kernel/nvidia-drm/nvidia-drm-drv.c -@@ -1711,6 +1711,10 @@ static const struct file_operations nv_drm_fops = { - .read = drm_read, - - .llseek = noop_llseek, -+ -+#if defined(FOP_UNSIGNED_OFFSET) -+ .fop_flags = FOP_UNSIGNED_OFFSET, -+#endif - }; - - static const struct drm_ioctl_desc nv_drm_ioctls[] = { --- -2.47.0 - diff --git a/nvidia-graphics-drivers-565/debian/rules b/nvidia-graphics-drivers-565/debian/rules index 8e3d568..73827b4 100644 --- a/nvidia-graphics-drivers-565/debian/rules +++ b/nvidia-graphics-drivers-565/debian/rules @@ -18,7 +18,8 @@ ifeq (amd64,$(DEB_HOST_ARCH)) # Extract all manpages gunzip debian/tmp/*.1.gz -k # Apply the patch from debian/patches/0001.patch - patch -p1 debian/tmp < debian/tmp/patches/0001.patch + patch -Np2 -i debian/tmp/patches/0001.patch -d debian/tmp/kernel + patch -Np2 -i debian/tmp/patches/0001.patch -d debian/tmp/kernel-open # NVENC/NvFBC sed -i 's/\xe8\x35\x3e\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x35\x3e\xfe\xff\x29\xc0\x41\x89\xc4/g' "debian/tmp/libnvidia-encode.so.565.57.01" sed -i 's/\x85\xc0\x0f\x84\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' "debian/tmp/libnvidia-fbc.so.565.57.01" @@ -32,7 +33,8 @@ ifeq (i386,$(DEB_HOST_ARCH)) # Copy installer contents into debian temp dir cp -rf ./NVIDIA-Linux-*/* debian/tmp # Apply the patch from debian/patches/0001.patch - patch -p1 debian/tmp < debian/tmp/patches/0001.patch + patch -Np2 -i debian/tmp/patches/0001.patch -d debian/tmp/kernel + patch -Np2 -i debian/tmp/patches/0001.patch -d debian/tmp/kernel-open # Replace libs with 32 bit rm -rf debian/tmp/*.so* cp -rf ./NVIDIA-Linux-*/32/* debian/tmp