Control: tags 1013043 + patch Control: tags 1013043 + pending Dear maintainer,
I've prepared an NMU for stressapptest (versioned as 1.0.6-2.1) and uploaded it to DELAYED/14. Please feel free to tell me if I should cancel it. cu Adrian
diff -Nru stressapptest-1.0.6/debian/changelog stressapptest-1.0.6/debian/changelog --- stressapptest-1.0.6/debian/changelog 2015-01-21 02:44:51.000000000 +0200 +++ stressapptest-1.0.6/debian/changelog 2022-09-05 00:42:31.000000000 +0300 @@ -1,3 +1,10 @@ +stressapptest (1.0.6-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Backport upstream fix for FTBFS with gcc 12. (Closes: #1013043) + + -- Adrian Bunk <b...@debian.org> Mon, 05 Sep 2022 00:42:31 +0300 + stressapptest (1.0.6-2) unstable; urgency=medium * Add i586 support patch. (Closes: #775642) diff -Nru stressapptest-1.0.6/debian/patches/gcc-12 stressapptest-1.0.6/debian/patches/gcc-12 --- stressapptest-1.0.6/debian/patches/gcc-12 1970-01-01 02:00:00.000000000 +0200 +++ stressapptest-1.0.6/debian/patches/gcc-12 2022-09-05 00:42:31.000000000 +0300 @@ -0,0 +1,19 @@ +Description: Backport upstream fix for FTBFS with gcc 12 +Author: Adrian Bunk <b...@debian.org> +Bug-Debian: https://bugs.debian.org/1013043 +Forwarded: https://github.com/stressapptest/stressapptest/commit/2ea87b7996f4f433d5d946eaf8f0d2f6fd18c144 + +--- stressapptest-1.0.6.orig/src/worker.cc ++++ stressapptest-1.0.6/src/worker.cc +@@ -2989,8 +2989,9 @@ bool DiskThread::AsyncDiskIO(IoOp op, in + errorcount_++; + os_->ErrorReport(device_name_.c_str(), operations[op].error_str, 1); + +- if (event.res < 0) { +- switch (event.res) { ++ int64 result = static_cast<int64>(event.res); ++ if (result < 0) { ++ switch (result) { + case -EIO: + logprintf(0, "Hardware Error: Low-level I/O error while doing %s to " + "sectors starting at %lld on disk %s (thread %d).\n", diff -Nru stressapptest-1.0.6/debian/patches/series stressapptest-1.0.6/debian/patches/series --- stressapptest-1.0.6/debian/patches/series 2015-01-21 02:44:51.000000000 +0200 +++ stressapptest-1.0.6/debian/patches/series 2022-09-05 00:42:31.000000000 +0300 @@ -1,3 +1,4 @@ armhf_support support_i486_builds support_i586_builds +gcc-12