Bug#1067108: alien-arena: FTBFS with -Werror=implicit-function-declaration

2024-04-09 Thread Steve Langasek
Package: alien-arena
Followup-For: Bug #1067108
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Please find attached a fix for this bug, which has been uploaded to Ubuntu.

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developer   https://www.debian.org/
slanga...@ubuntu.com vor...@debian.org
diff -Nru alien-arena-7.71.3+dfsg/debian/patches/no-implicit-declarations.patch 
alien-arena-7.71.3+dfsg/debian/patches/no-implicit-declarations.patch
--- alien-arena-7.71.3+dfsg/debian/patches/no-implicit-declarations.patch   
1969-12-31 16:00:00.0 -0800
+++ alien-arena-7.71.3+dfsg/debian/patches/no-implicit-declarations.patch   
2024-04-09 13:53:07.0 -0700
@@ -0,0 +1,18 @@
+Description: add missing include
+Author: Steve Langasek 
+Bug-Debian: https://bugs.debian.org/1067108
+Last-Update: 2024-04-09
+Forwarded: no
+
+Index: alien-arena-7.71.3+dfsg/source/game/g_unlagged.c
+===
+--- alien-arena-7.71.3+dfsg.orig/source/game/g_unlagged.c
 alien-arena-7.71.3+dfsg/source/game/g_unlagged.c
+@@ -21,6 +21,7 @@
+ #include "config.h"
+ #endif
+ 
++#include "qcommon/qcommon.h"
+ #include "g_local.h"
+ 
+ /*
diff -Nru alien-arena-7.71.3+dfsg/debian/patches/series 
alien-arena-7.71.3+dfsg/debian/patches/series
--- alien-arena-7.71.3+dfsg/debian/patches/series   2023-02-12 
08:19:19.0 -0800
+++ alien-arena-7.71.3+dfsg/debian/patches/series   2024-04-09 
13:51:57.0 -0700
@@ -6,3 +6,4 @@
 odeconfig.patch
 irc.patch
 http11.patch
+no-implicit-declarations.patch


Bug#1067108: alien-arena: FTBFS with -Werror=implicit-function-declaration

2024-03-18 Thread Andreas Beckmann
Source: alien-arena
Version: 7.71.3+dfsg-3
Severity: serious
Tags: ftbfs sid trixie
Justification: fails to build from source (but built successfully in the past)

Hi,

alien-arena FTBFS with -Werror=implicit-function-declaration which was
recently enabled by default in dpkg 1.22.6 to support the 64-bit time_t
transition. For more information, see
https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration

gcc -DHAVE_CONFIG_H -I. -I../config  -DCOR_DATADIR='"/usr/share/alienarena"' 
-I../source -isystem ../source/unix -Wdate-time -D_FORTIFY_SOURCE=2 -fpic -g 
-O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/alien-arena-7.71.3+dfsg=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-fcommon -ffast-math -fno-strict-aliasing -c -o game/libgame_a-g_unlagged.o 
`test -f 'game/g_unlagged.c' || echo './'`game/g_unlagged.c
game/g_unlagged.c: In function 'G_TimeShiftClient':
game/g_unlagged.c:187:25: error: implicit declaration of function 
'Cvar_SetValue' [-Werror=implicit-function-declaration]
  187 | Cvar_SetValue( "g_antilagprojectiles", 0);
  | ^


Andreas