From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1453385-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0B5EC158003 for <garchives@archives.gentoo.org>; Fri, 4 Nov 2022 03:59:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1EB28E0878; Fri, 4 Nov 2022 03:59:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F39B2E0878 for <gentoo-commits@lists.gentoo.org>; Fri, 4 Nov 2022 03:59:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E7FA33413A7 for <gentoo-commits@lists.gentoo.org>; Fri, 4 Nov 2022 03:59:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2EA0D75 for <gentoo-commits@lists.gentoo.org>; Fri, 4 Nov 2022 03:59:28 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1667534330.1ed286d1a7256205061253ffe58df0fc2a48f8ae.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/sane-backends/files/, media-gfx/sane-backends/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/sane-backends/files/sane-backends-1.1.1-gcc12-tests.patch media-gfx/sane-backends/sane-backends-1.1.1-r4.ebuild X-VCS-Directories: media-gfx/sane-backends/files/ media-gfx/sane-backends/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 1ed286d1a7256205061253ffe58df0fc2a48f8ae X-VCS-Branch: master Date: Fri, 4 Nov 2022 03:59:28 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fae38b96-90eb-45cd-a56b-24f82fd293db X-Archives-Hash: 965731598d55470be7ae5087bcb8ad1b commit: 1ed286d1a7256205061253ffe58df0fc2a48f8ae Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Nov 4 03:58:50 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Nov 4 03:58:50 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ed286d1 media-gfx/sane-backends: fix tests w/ gcc 12 Closes: https://bugs.gentoo.org/840137 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/sane-backends-1.1.1-gcc12-tests.patch | 78 ++++++++++++++++++++++ .../sane-backends/sane-backends-1.1.1-r4.ebuild | 1 + 2 files changed, 79 insertions(+) diff --git a/media-gfx/sane-backends/files/sane-backends-1.1.1-gcc12-tests.patch b/media-gfx/sane-backends/files/sane-backends-1.1.1-gcc12-tests.patch new file mode 100644 index 000000000000..25a1e4db265e --- /dev/null +++ b/media-gfx/sane-backends/files/sane-backends-1.1.1-gcc12-tests.patch @@ -0,0 +1,78 @@ +https://bugs.gentoo.org/840137 +https://gitlab.com/sane-project/backends/-/commit/6b99447f5b12758ff015b5c360a6dcbcf9b0a72d +https://gitlab.com/sane-project/backends/-/issues/597 +https://gitlab.com/sane-project/backends/-/issues/557 + +From edfc90450ee06149537fadb3095ba4b215c5c4fa Mon Sep 17 00:00:00 2001 +From: Ralph Little <skelband@gmail.com> +Date: Sun, 2 Oct 2022 18:14:25 -0700 +Subject: [PATCH] genesys: corrections to include file order. + +minigtest.h has items that require the definitions in tests_printers.h. +Pre-GCC-12, this didn't seem to matter but GCC12 seems to have a +problem with this and requires the template definitions to have already +appeared. +--- a/testsuite/backend/genesys/minigtest.cpp ++++ b/testsuite/backend/genesys/minigtest.cpp +@@ -18,10 +18,10 @@ + along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +-#include "minigtest.h" +- + #define DEBUG_DECLARE_ONLY + ++#include "minigtest.h" ++ + size_t s_num_successes = 0; + size_t s_num_failures = 0; + +--- a/testsuite/backend/genesys/tests_image.cpp ++++ b/testsuite/backend/genesys/tests_image.cpp +@@ -21,8 +21,8 @@ + #define DEBUG_DECLARE_ONLY + + #include "tests.h" +-#include "minigtest.h" + #include "tests_printers.h" ++#include "minigtest.h" + + #include "../../../backend/genesys/image.h" + #include "../../../backend/genesys/image_pipeline.h" +--- a/testsuite/backend/genesys/tests_image_pipeline.cpp ++++ b/testsuite/backend/genesys/tests_image_pipeline.cpp +@@ -21,8 +21,8 @@ + #define DEBUG_DECLARE_ONLY + + #include "tests.h" +-#include "minigtest.h" + #include "tests_printers.h" ++#include "minigtest.h" + + #include "../../../backend/genesys/image_pipeline.h" + +--- a/testsuite/backend/genesys/tests_motor.cpp ++++ b/testsuite/backend/genesys/tests_motor.cpp +@@ -21,8 +21,8 @@ + #define DEBUG_DECLARE_ONLY + + #include "tests.h" +-#include "minigtest.h" + #include "tests_printers.h" ++#include "minigtest.h" + + #include "../../../backend/genesys/low.h" + #include "../../../backend/genesys/enums.h" +--- a/testsuite/backend/genesys/tests_utilities.cpp ++++ b/testsuite/backend/genesys/tests_utilities.cpp +@@ -21,8 +21,8 @@ + #define DEBUG_DECLARE_ONLY + + #include "tests.h" +-#include "minigtest.h" + #include "tests_printers.h" ++#include "minigtest.h" + + #include "../../../backend/genesys/utilities.h" + +GitLab diff --git a/media-gfx/sane-backends/sane-backends-1.1.1-r4.ebuild b/media-gfx/sane-backends/sane-backends-1.1.1-r4.ebuild index 6bff44a1f891..e34fadb86e95 100644 --- a/media-gfx/sane-backends/sane-backends-1.1.1-r4.ebuild +++ b/media-gfx/sane-backends/sane-backends-1.1.1-r4.ebuild @@ -182,6 +182,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.0.30-add_hpaio_epkowa_dll.conf.patch # https://gitlab.com/sane-project/backends/-/merge_requests/688 "${FILESDIR}"/${PN}-1.1.1-genesys-gl845-crash.patch + "${FILESDIR}"/${P}-gcc12-tests.patch ) MULTILIB_CHOST_TOOLS=(