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 4BC99158030 for ; Sun, 26 Feb 2023 15:25:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 96794E0863; Sun, 26 Feb 2023 15:25:21 +0000 (UTC) Received: from smtp.gentoo.org (dev.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 801EAE0863 for ; Sun, 26 Feb 2023 15:25:21 +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 6C5A1335D4F for ; Sun, 26 Feb 2023 15:25:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 25C538C1 for ; Sun, 26 Feb 2023 15:25:18 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1677425111.bda2d1aa7515f101dcdde4f37a8807889e7142b8.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyocr/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pyocr/pyocr-0.8.3.ebuild X-VCS-Directories: dev-python/pyocr/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: bda2d1aa7515f101dcdde4f37a8807889e7142b8 X-VCS-Branch: master Date: Sun, 26 Feb 2023 15:25:18 +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: cc6d144a-f8c2-45c1-bb3c-70d13f86fb05 X-Archives-Hash: 7c6181c2fac78f34e073041d4fd0197c commit: bda2d1aa7515f101dcdde4f37a8807889e7142b8 Author: Michał Górny gentoo org> AuthorDate: Sun Feb 26 15:20:03 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Feb 26 15:25:11 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bda2d1aa dev-python/pyocr: Fix version-related build failure Closes: https://bugs.gentoo.org/897690 Signed-off-by: Michał Górny gentoo.org> dev-python/pyocr/pyocr-0.8.3.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev-python/pyocr/pyocr-0.8.3.ebuild b/dev-python/pyocr/pyocr-0.8.3.ebuild index fddb70bcf83d..23dfc62ed252 100644 --- a/dev-python/pyocr/pyocr-0.8.3.ebuild +++ b/dev-python/pyocr/pyocr-0.8.3.ebuild @@ -34,4 +34,9 @@ RDEPEND+=" tesseract? ( app-text/tesseract ) " -export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} +src_prepare() { + # workaround setuptools failing due to version being None + # https://gitlab.gnome.org/World/OpenPaperwork/pyocr/-/issues/127 + sed -i -e '/version=version/d' setup.py || die + distutils-r1_src_prepare +}