From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 6876E15800F for ; Thu, 2 Feb 2023 07:02:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A427BE0BE5; Thu, 2 Feb 2023 07:02:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 8FF23E0BE5 for ; Thu, 2 Feb 2023 07:02:24 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9EAFF34072E for ; Thu, 2 Feb 2023 07:02:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A4D05893 for ; Thu, 2 Feb 2023 07:02:20 +0000 (UTC) From: "Sam James" 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" Message-ID: <1675321291.ac4738fca722ddc0e5c57ba852154c7e12b1b1c9.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/tesseract/files/, app-text/tesseract/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/tesseract/files/tesseract-5.3.0-gcc-13.patch app-text/tesseract/tesseract-5.3.0.ebuild X-VCS-Directories: app-text/tesseract/ app-text/tesseract/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ac4738fca722ddc0e5c57ba852154c7e12b1b1c9 X-VCS-Branch: master Date: Thu, 2 Feb 2023 07:02:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1958e4d7-bc7a-49b6-ab10-f6880129ee91 X-Archives-Hash: 38a4082dc4c6e73d92550fcccd49d871 commit: ac4738fca722ddc0e5c57ba852154c7e12b1b1c9 Author: Sam James gentoo org> AuthorDate: Thu Feb 2 07:01:31 2023 +0000 Commit: Sam James gentoo org> CommitDate: Thu Feb 2 07:01:31 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac4738fc app-text/tesseract: fix build w/ gcc 13 Signed-off-by: Sam James gentoo.org> .../tesseract/files/tesseract-5.3.0-gcc-13.patch | 25 ++++++++++++++++++++++ app-text/tesseract/tesseract-5.3.0.ebuild | 4 ++++ 2 files changed, 29 insertions(+) diff --git a/app-text/tesseract/files/tesseract-5.3.0-gcc-13.patch b/app-text/tesseract/files/tesseract-5.3.0-gcc-13.patch new file mode 100644 index 000000000000..959948aa677c --- /dev/null +++ b/app-text/tesseract/files/tesseract-5.3.0-gcc-13.patch @@ -0,0 +1,25 @@ +https://github.com/tesseract-ocr/tesseract/commit/2025b53de6b3d97285d7c5f80497493007c586c3 + +From 2025b53de6b3d97285d7c5f80497493007c586c3 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 30 Jan 2023 11:27:07 -0800 +Subject: [PATCH] Fix build with gcc 13 by including + +gcc 13 moved some includes around and as a result is +no longer transitively included [1]. Explicitly include it for +int32_t. + +[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes + +Signed-off-by: Khem Raj +--- a/src/ccutil/params.h ++++ b/src/ccutil/params.h +@@ -21,6 +21,7 @@ + + #include // for TESS_API + ++#include + #include + #include + #include + diff --git a/app-text/tesseract/tesseract-5.3.0.ebuild b/app-text/tesseract/tesseract-5.3.0.ebuild index 7c7753b1ecf2..cb7040d39bc6 100644 --- a/app-text/tesseract/tesseract-5.3.0.ebuild +++ b/app-text/tesseract/tesseract-5.3.0.ebuild @@ -37,6 +37,10 @@ DEPEND="${COMMON_DEPEND} dev-libs/libxslt doc? ( app-doc/doxygen )" +PATCHES=( + "${FILESDIR}"/${P}-gcc-13.patch +) + pkg_pretend() { [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp }