Bug#987637: fenix FTBFS with gcc 10

Baptiste Beauplat lyknode at debian.org
Tue May 11 21:56:48 BST 2021


Control: tags -1 + patch

Dear maintainer,

The following patch fixes the FTBFS. I've added a specific check in the
test suite and I've tested it manually.

Without feedback, I'll NMU the package and request an unblock in a
couple of days.

Best,

-- 
Baptiste Beauplat - lyknode
-------------- next part --------------
diff -Nru fenix-0.92a.dfsg1/debian/patches/fix_ftbfs_gcc10.patch fenix-0.92a.dfsg1/debian/patches/fix_ftbfs_gcc10.patch
--- fenix-0.92a.dfsg1/debian/patches/fix_ftbfs_gcc10.patch	1970-01-01 01:00:00.000000000 +0100
+++ fenix-0.92a.dfsg1/debian/patches/fix_ftbfs_gcc10.patch	2021-05-11 21:08:56.000000000 +0200
@@ -0,0 +1,19 @@
+From: Baptiste Beauplat <lyknode at debian.org>
+Date: Tue, 11 May 2021 21:06:15 +0200
+Subject: Fix FTBFS with gcc 10 (Closes: #987637)
+
+Declare debug as an external variable.
+Declaration and assignation is done in main.c.
+---
+
+--- a/fxc/src/c_main.c
++++ b/fxc/src/c_main.c
+@@ -182,7 +182,7 @@
+ #ifdef TARGET_MAC
+ static int debug ;
+ #else
+-int debug;
++extern int debug;
+ #endif
+ 
+ void compile_init ()
diff -Nru fenix-0.92a.dfsg1/debian/patches/series fenix-0.92a.dfsg1/debian/patches/series
--- fenix-0.92a.dfsg1/debian/patches/series	2019-02-12 10:40:57.000000000 +0100
+++ fenix-0.92a.dfsg1/debian/patches/series	2021-05-10 21:39:02.000000000 +0200
@@ -35,3 +35,4 @@
 fxc-cmdline-crash.patch
 fxi-cmdline-title.patch
 map-gif-256-colors.patch
+fix_ftbfs_gcc10.patch
diff -Nru fenix-0.92a.dfsg1/debian/tests/t/lib/Test/Fenix/Compile.pm fenix-0.92a.dfsg1/debian/tests/t/lib/Test/Fenix/Compile.pm
--- fenix-0.92a.dfsg1/debian/tests/t/lib/Test/Fenix/Compile.pm	2019-02-12 15:47:50.000000000 +0100
+++ fenix-0.92a.dfsg1/debian/tests/t/lib/Test/Fenix/Compile.pm	2021-05-11 22:17:32.000000000 +0200
@@ -41,12 +41,11 @@
 		Test::More::plan tests => 4;
 
 		my $cmd = Test::Command->new(cmd => [
-			$fxc, $test->{test}{src}->basename,
+			$fxc, '-d', $test->{test}{src}->basename,
 		]);
 		$cmd->exit_is_num(0);
-		# Yeah, this is backwards, I know...
-		$cmd->stdout_is_eq('');
-		$cmd->stderr_isnt_eq('');
+		$cmd->stdout_like(qr/END/);
+		$cmd->stderr_like(qr/----- Main procedure/);
 
 		Test::More::ok -f $test->{test}{exe},
 		    'the compiled program exists';
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-games-devel/attachments/20210511/5752e7f1/attachment.sig>


More information about the Pkg-games-devel mailing list