Bug#966065: tome: FTBFS with GCC 10 due to insufficient #includes
Followup-For: Bug #966065 Control: tag -1 pending Hi, I've just uploaded a NMU to DELAYED/10 fixing this FTBFS. Please let me know if I should delay it longer or cancel it. Andreas
Bug#966065: tome: FTBFS with GCC 10 due to insufficient #includes
Control: tags -1 + patch Control: forwarded -1 https://github.com/tome2/tome2/pull/49 Hi, the attached patch fixes the FTBFS with GCC 10. Regards, Reiner diff --git a/debian/patches/gcc10.patch b/debian/patches/gcc10.patch new file mode 100644 index ..bf9fcf45 --- /dev/null +++ b/debian/patches/gcc10.patch @@ -0,0 +1,16 @@ +Author: Reiner Herrmann +Description: Fix FTBFS with GCC 10 +Bug-Debian: https://bugs.debian.org/966065 +Forwarded: https://github.com/tome2/tome2/pull/49 + +--- a/src/init1.hpp b/src/init1.hpp +@@ -3,6 +3,8 @@ + #include "h-basic.hpp" + #include "dungeon_flag_set.hpp" + ++#include ++ + int color_char_to_attr(char c); + extern byte conv_color[16]; + errr init_player_info_txt(FILE *fp); diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index ..50fb8b62 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +gcc10.patch signature.asc Description: PGP signature
Bug#966065: tome: FTBFS with GCC 10 due to insufficient #includes
Source: tome Version: 2.41-ah~0.git.20200131-1 Severity: serious Tags: ftbfs Justification: fails to build from source (but built successfully in the past) User: debian-...@lists.debian.org Usertags: ftbfs-gcc-10 Hi, tome started to FTBFS when GCC 10 was made the default compiler: In file included from /build/tome-2.41-ah~0.git.20200131/src/init1.cc:1: /build/tome-2.41-ah~0.git.20200131/src/init1.hpp:8:27: error: 'FILE' was not declared in this scope 8 | errr init_player_info_txt(FILE *fp); | ^~~~ /build/tome-2.41-ah~0.git.20200131/src/init1.hpp:5:1: note: 'FILE' is defined in header ''; did you forget to '#include '? 4 | #include "dungeon_flag_set.hpp" +++ |+#include 5 | /build/tome-2.41-ah~0.git.20200131/src/init1.hpp:8:33: error: 'fp' was not declared in this scope 8 | errr init_player_info_txt(FILE *fp); | ^~ [...] Andreas