diff -Nru sane-backends-1.1.1/debian/changelog sane-backends-1.1.1/debian/changelog --- sane-backends-1.1.1/debian/changelog 2022-03-27 13:31:28.000000000 -0300 +++ sane-backends-1.1.1/debian/changelog 2022-09-29 12:20:26.000000000 -0300 @@ -1,3 +1,11 @@ +sane-backends (1.1.1-5ubuntu1) kinetic; urgency=medium + + * New debian/patches/0726-disable-check-equal-stderr.patch: + - Workaround for build failure on GCC12 by supressing the print of + test mismatch on stderr (LP: #1991293). + + -- Nathan Pratta Teodosio Thu, 29 Sep 2022 12:20:26 -0300 + sane-backends (1.1.1-5) unstable; urgency=medium * debian/rules: diff -Nru sane-backends-1.1.1/debian/control sane-backends-1.1.1/debian/control --- sane-backends-1.1.1/debian/control 2022-03-27 08:33:44.000000000 -0300 +++ sane-backends-1.1.1/debian/control 2022-09-29 12:20:26.000000000 -0300 @@ -1,7 +1,8 @@ Source: sane-backends Section: graphics Priority: optional -Maintainer: Jörg Frings-Fürst +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Jörg Frings-Fürst Standards-Version: 4.6.0 Build-Depends: autoconf, diff -Nru sane-backends-1.1.1/debian/patches/0726-disable-check-equal-stderr.patch sane-backends-1.1.1/debian/patches/0726-disable-check-equal-stderr.patch --- sane-backends-1.1.1/debian/patches/0726-disable-check-equal-stderr.patch 1969-12-31 21:00:00.000000000 -0300 +++ sane-backends-1.1.1/debian/patches/0726-disable-check-equal-stderr.patch 2022-09-29 12:19:10.000000000 -0300 @@ -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 "; diff -Nru sane-backends-1.1.1/debian/patches/series sane-backends-1.1.1/debian/patches/series --- sane-backends-1.1.1/debian/patches/series 2022-03-27 12:22:54.000000000 -0300 +++ sane-backends-1.1.1/debian/patches/series 2022-09-29 12:19:23.000000000 -0300 @@ -21,3 +21,4 @@ #0180-gt68xx_fix_use-after-free_two_memleaks.patch 0185-Change_output_from_sane-find-scanner.patch #0190-remove-kernel-driver-for-plustek_pp.patch +0726-disable-check-equal-stderr.patch