From deba8115d2c2af26df42966b91ef04ff4dd79cde Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 14 May 2020 11:09:11 +0100 Subject: gentoo resync : 14.05.2020 --- .../spectrum2-2.0.12-boost-173-compatibility.patch | 21 +++++++++ .../spectrum2-2.0.12-gcc-10-compatibility.patch | 54 ++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 net-im/spectrum2/files/spectrum2-2.0.12-boost-173-compatibility.patch create mode 100644 net-im/spectrum2/files/spectrum2-2.0.12-gcc-10-compatibility.patch (limited to 'net-im/spectrum2/files') diff --git a/net-im/spectrum2/files/spectrum2-2.0.12-boost-173-compatibility.patch b/net-im/spectrum2/files/spectrum2-2.0.12-boost-173-compatibility.patch new file mode 100644 index 000000000000..b9a8adeee5a8 --- /dev/null +++ b/net-im/spectrum2/files/spectrum2-2.0.12-boost-173-compatibility.patch @@ -0,0 +1,21 @@ +From 1a6ede2dbf0f621e3e6864675befcbc32e02c8b6 Mon Sep 17 00:00:00 2001 +From: Conrad Kostecki +Date: Thu, 14 May 2020 10:34:43 +0200 +Subject: [PATCH] Fix compilation with boost-1.73 + +Signed-off-by: Conrad Kostecki +--- + include/transport/ThreadPool.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/transport/ThreadPool.h b/include/transport/ThreadPool.h +index 5902f965..ffd07c8e 100644 +--- a/include/transport/ThreadPool.h ++++ b/include/transport/ThreadPool.h +@@ -1,5 +1,6 @@ + #pragma once + ++#include + #include + #include + #include diff --git a/net-im/spectrum2/files/spectrum2-2.0.12-gcc-10-compatibility.patch b/net-im/spectrum2/files/spectrum2-2.0.12-gcc-10-compatibility.patch new file mode 100644 index 000000000000..ad13208b3e13 --- /dev/null +++ b/net-im/spectrum2/files/spectrum2-2.0.12-gcc-10-compatibility.patch @@ -0,0 +1,54 @@ +From 95e6968c0f8c95f6bd817e5081e0b10dea9d4269 Mon Sep 17 00:00:00 2001 +From: Conrad Kostecki +Date: Wed, 13 May 2020 14:22:27 +0200 +Subject: [PATCH] Fix dfrotz compilation with GCC >= 10 + +Since GCC enables by default -fno-common, +the compilation of dfrotz due multiple definitions will fail. + +Signed-off-by: Conrad Kostecki +--- + backends/frotz/dfrotz/dumb/dumb_init.c | 2 +- + backends/frotz/dfrotz/dumb/dumb_input.c | 2 +- + backends/frotz/dfrotz/dumb/dumb_output.c | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/backends/frotz/dfrotz/dumb/dumb_init.c b/backends/frotz/dfrotz/dumb/dumb_init.c +index 4b9c6704..35295b74 100644 +--- a/backends/frotz/dfrotz/dumb/dumb_init.c ++++ b/backends/frotz/dfrotz/dumb/dumb_init.c +@@ -7,7 +7,7 @@ + + #include "dumb_frotz.h" + +-f_setup_t f_setup; ++extern f_setup_t f_setup; + + #define INFORMATION "\ + An interpreter for all Infocom and other Z-Machine games.\n\ +diff --git a/backends/frotz/dfrotz/dumb/dumb_input.c b/backends/frotz/dfrotz/dumb/dumb_input.c +index 4149b2b0..88fc8ae5 100644 +--- a/backends/frotz/dfrotz/dumb/dumb_input.c ++++ b/backends/frotz/dfrotz/dumb/dumb_input.c +@@ -5,7 +5,7 @@ + */ + + #include "dumb_frotz.h" +-f_setup_t f_setup; ++extern f_setup_t f_setup; + + static char runtime_usage[] = + "DUMB-FROTZ runtime help:\n" +diff --git a/backends/frotz/dfrotz/dumb/dumb_output.c b/backends/frotz/dfrotz/dumb/dumb_output.c +index 9e505167..6dc7db82 100644 +--- a/backends/frotz/dfrotz/dumb/dumb_output.c ++++ b/backends/frotz/dfrotz/dumb/dumb_output.c +@@ -7,7 +7,7 @@ + + #include "dumb_frotz.h" + +-f_setup_t f_setup; ++extern f_setup_t f_setup; + + static bool show_line_numbers = FALSE; + static bool show_line_types = -1; -- cgit v1.2.3