[packages/xorg-driver-video-nvidia] - up to 550.107.02 - relax gcc warnings to make conftest pass on gcc 14
baggins
baggins at pld-linux.org
Tue Aug 13 04:42:40 CEST 2024
commit 77ecb5fb24c5eae1f244f792d94039ba77c51c2b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Aug 13 03:00:43 2024 +0200
- up to 550.107.02
- relax gcc warnings to make conftest pass on gcc 14
gcc14.patch | 11 +++++++++++
xorg-driver-video-nvidia.spec | 6 ++++--
2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/xorg-driver-video-nvidia.spec b/xorg-driver-video-nvidia.spec
index 79495b9..9e95886 100644
--- a/xorg-driver-video-nvidia.spec
+++ b/xorg-driver-video-nvidia.spec
@@ -27,18 +27,19 @@ Summary(hu.UTF-8): Linux meghajtók nVidia GeForce/Quadro chipekhez
Summary(pl.UTF-8): Sterowniki do kart graficznych nVidia GeForce/Quadro
Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel}
# when updating version here, keep nvidia-settings.spec in sync as well
-Version: 550.100
+Version: 550.107.02
Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}}
Epoch: 1
License: nVidia Binary
Group: X11
Source0: https://us.download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}.run
-# Source0-md5: 2f9d2cf2c5b90dde8069e73a6ea834d9
+# Source0-md5: 6ff5afd9e02536a14c16d6fea3089903
Source2: %{pname}-xinitrc.sh
Source3: gl.pc.in
Source4: 10-nvidia.conf
Source5: 10-nvidia-modules.conf
Patch0: X11-driver-nvidia-desktop.patch
+Patch1: gcc14.patch
URL: https://www.nvidia.com/en-us/drivers/unix/
BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 1.752
@@ -316,6 +317,7 @@ rm -rf NVIDIA-Linux-x86_64-%{version}
/bin/sh %{SOURCE0} --extract-only
%setup -qDT -n NVIDIA-Linux-x86_64-%{version}
%patch0 -p1
+%patch1 -p1
echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> kernel/Makefile.kbuild
%build
diff --git a/gcc14.patch b/gcc14.patch
new file mode 100644
index 0000000..d839c5b
--- /dev/null
+++ b/gcc14.patch
@@ -0,0 +1,11 @@
+--- NVIDIA-Linux-x86_64-550.107.02/kernel/conftest.sh~ 2024-08-13 02:24:58.000000000 +0200
++++ NVIDIA-Linux-x86_64-550.107.02/kernel/conftest.sh 2024-08-13 02:25:41.159765941 +0200
+@@ -4558,7 +4558,7 @@
+ }
+ }" > conftest$$.c
+
+- $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
++ $CC -Wno-int-conversion $CFLAGS -c conftest$$.c > /dev/null 2>&1
+ rm -f conftest$$.c
+
+ if [ -f conftest$$.o ]; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xorg-driver-video-nvidia.git/commitdiff/77ecb5fb24c5eae1f244f792d94039ba77c51c2b
More information about the pld-cvs-commit
mailing list