From 1e25318379249c8c4c2c55c741b409a858b1f52e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 2 Oct 2022 09:11:28 +0200 Subject: Fix build error with gcc12 --- .../patches/0200-disable-check-equal-stderr.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 debian/patches/0200-disable-check-equal-stderr.patch (limited to 'debian/patches/0200-disable-check-equal-stderr.patch') diff --git a/debian/patches/0200-disable-check-equal-stderr.patch b/debian/patches/0200-disable-check-equal-stderr.patch new file mode 100644 index 0000000..3f27ca5 --- /dev/null +++ b/debian/patches/0200-disable-check-equal-stderr.patch @@ -0,0 +1,23 @@ +Description: Build fails on GCC12: +. +minigtest.h:43:29: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream’ and ‘const std::vector’) +minigtest.h:43:29: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream’ and ‘const std::vector’) +minigtest.h:43:29: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream’ and ‘const genesys::Pixel’) +minigtest.h:43:29: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream’ and ‘const genesys::RawPixel’) +minigtest.h:43:29: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream’ and ‘const genesys::PixelFormat’) +. +Simply suppressing the print of the mismatch is the lowest effort workaround. +Author: Nathan Pratta Teodosio +Bug: 1013034 +Forwarded: No + +--- a/testsuite/backend/genesys/minigtest.h ++++ b/testsuite/backend/genesys/minigtest.h +@@ -40,7 +40,6 @@ + s_num_failures++; + std::cerr << "FAILURE at "; + print_location(std::cerr, function, path, line); +- std::cerr << " :\n" << t << " != " << u << "\n\n"; + } else { + s_num_successes++; + std::cerr << "SUCCESS at "; -- cgit v1.2.3