diff --git a/game/fps/alienarena/files/alienarena-20130827-format.patch b/game/fps/alienarena/files/alienarena-20130827-format.patch new file mode 100644 index 0000000000..3162a558af --- /dev/null +++ b/game/fps/alienarena/files/alienarena-20130827-format.patch @@ -0,0 +1,11 @@ +--- a/source/game/p_client.c.old 2016-01-18 20:13:25.147714704 +0100 ++++ b/source/game/p_client.c 2016-01-18 20:13:38.776476727 +0100 +@@ -2123,7 +2123,7 @@ + #else + ent->ctype = 0; //alien is default + sprintf(modelpath, "players/%s/human", playermodel); +- sprintf(ent->charModel, playermodel); ++ sprintf(ent->charModel, "%s", playermodel); + Q2_FindFile (modelpath, &file); + if(file) + { diff --git a/game/fps/alienarena/files/gcc7.patch b/game/fps/alienarena/files/gcc7.patch new file mode 100644 index 0000000000..0b9166a263 --- /dev/null +++ b/game/fps/alienarena/files/gcc7.patch @@ -0,0 +1,25 @@ +From: Markus Koschany +Date: Fri, 18 Aug 2017 23:24:22 +0200 +Subject: gcc7 + +Fix FTBFS with GCC 7. + +Bug-Debian: https://bugs.debian.org/871218 +Forwarded: no +--- + source/ref_gl/r_iqm.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/source/ref_gl/r_iqm.c b/source/ref_gl/r_iqm.c +index ba5d178..cb3d2da 100644 +--- a/source/ref_gl/r_iqm.c ++++ b/source/ref_gl/r_iqm.c +@@ -1263,7 +1263,7 @@ void IQM_Vlight (vec3_t baselight, mnormal_t *normal, vec3_t angles, vec3_t ligh + void R_Mesh_SetupShell (int shell_skinnum, qboolean ragdoll, qboolean using_varray, vec3_t lightcolor); + void R_Mesh_SetupGLSL (int skinnum, rscript_t *rs, vec3_t lightcolor); + +-inline void IQM_DrawVBO (qboolean tangents) ++void IQM_DrawVBO (qboolean tangents) + { + qglEnableClientState( GL_VERTEX_ARRAY ); + GL_BindVBO(vbo_xyz); diff --git a/game/fps/alienarena/pspec.xml b/game/fps/alienarena/pspec.xml index 3bf41f6271..f2a4a3d028 100644 --- a/game/fps/alienarena/pspec.xml +++ b/game/fps/alienarena/pspec.xml @@ -29,6 +29,8 @@ libvorbis-devel + gcc7.patch + alienarena-20130827-format.patch use_home_dir.patch @@ -58,6 +60,13 @@ + + 2018-09-14 + 7.66 + Rebuild with new toolchain + Mustafa Cinasal + muscnsl@gmail.com + 2017-05-05 7.66