[packages/quake3] - fix build on x32

baggins baggins at pld-linux.org
Fri Nov 8 20:30:53 CET 2019


commit d450e06e22ad06f7a631e72c0660d1374e9b8f94
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Nov 8 20:30:37 2019 +0100

    - fix build on x32

 quake3.spec |  4 ++++
 x32.patch   | 11 +++++++++++
 2 files changed, 15 insertions(+)
---
diff --git a/quake3.spec b/quake3.spec
index 90311e5..9b5741d 100644
--- a/quake3.spec
+++ b/quake3.spec
@@ -19,6 +19,7 @@ Source4:	%{name}.desktop
 Source5:	%{name}-smp.desktop
 Patch0:		%{name}-QUAKELIBDIR.patch
 Patch1:		%{name}-alpha.patch
+Patch2;		x32.patch
 URL:		http://ioquake3.org/
 BuildRequires:	OpenAL-devel
 BuildRequires:	OpenGL-GLU-devel
@@ -128,6 +129,9 @@ Pliki wspólne Quake3 dla serwera i trybu gracza.
 %setup -q -n %{name}
 %patch0 -p1
 %patch1 -p1
+%ifarch x32
+%patch2 -p1
+%endif
 
 %build
 cat << 'EOF' > Makefile.local
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..febe2b4
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,11 @@
+--- quake3/Makefile~	2019-07-11 15:20:31.000000000 +0200
++++ quake3/Makefile	2019-11-08 20:27:12.427121911 +0100
+@@ -353,7 +353,7 @@
+   ifeq ($(ARCH),x86_64)
+     OPTIMIZEVM = -O3
+     OPTIMIZE = $(OPTIMIZEVM) -ffast-math
+-    HAVE_VM_COMPILED = true
++    HAVE_VM_COMPILED = false
+   else
+   ifeq ($(ARCH),x86)
+     OPTIMIZEVM = -O3 -march=i586
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/quake3.git/commitdiff/d450e06e22ad06f7a631e72c0660d1374e9b8f94



More information about the pld-cvs-commit mailing list