From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aHR/IXwz/WM9VQEAbAwnHQ (envelope-from ) for ; Mon, 27 Feb 2023 23:49:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uPk2IXwz/WO7/AAAauVa8A (envelope-from ) for ; Mon, 27 Feb 2023 23:49:32 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4B04DFDC3 for ; Mon, 27 Feb 2023 23:49:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWmIs-0006bL-1z; Mon, 27 Feb 2023 17:49:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWmIq-0006a4-7E for guix-patches@gnu.org; Mon, 27 Feb 2023 17:49:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWmIo-00069W-CR for guix-patches@gnu.org; Mon, 27 Feb 2023 17:49:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWmIo-0000Wl-8X for guix-patches@gnu.org; Mon, 27 Feb 2023 17:49:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61851] [PATCH] gnu: tesseract-ocr: Use standard TESSDATA_PREFIX. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Feb 2023 22:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61851 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: jlicht@fsfe.org Cc: 61851@debbugs.gnu.org Received: via spool by 61851-submit@debbugs.gnu.org id=B61851.16775380951833 (code B ref 61851); Mon, 27 Feb 2023 22:49:02 +0000 Received: (at 61851) by debbugs.gnu.org; 27 Feb 2023 22:48:15 +0000 Received: from localhost ([127.0.0.1]:49143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWmI3-0000TT-18 for submit@debbugs.gnu.org; Mon, 27 Feb 2023 17:48:15 -0500 Received: from mailout.easymail.ca ([64.68.200.34]:57574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWmI0-0000Sc-KY for 61851@debbugs.gnu.org; Mon, 27 Feb 2023 17:48:14 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 7675CE8B3D; Mon, 27 Feb 2023 22:48:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GfnLZpcDzJaW; Mon, 27 Feb 2023 22:48:06 +0000 (UTC) Received: from localhost.localdomain (23-233-96-72.cpe.pppoe.ca [23.233.96.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 8C319E23C3; Mon, 27 Feb 2023 22:48:06 +0000 (UTC) From: Simon South Date: Mon, 27 Feb 2023 17:48:04 -0500 Message-Id: <20230227224804.21743-1-simon@simonsouth.net> X-Mailer: git-send-email 2.39.1 In-Reply-To: <878rgik9uo.fsf@simonsouth.net> References: <878rgik9uo.fsf@simonsouth.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677538172; a=rsa-sha256; cv=none; b=NMR8WpnMVIg4GroWAJ8epC4rxm6RVzBS+NOphCTAUbd1eTAqg1myLVDW5JtqkLufCYf+Ie aYGV/Gh6DWiF2SY4+di/JtYBeWQP8R+CS/2dzeHOlsznWRIgxIFJQeS/HYCeeYCLGhf6xj 6oime1UDYrFQfanCSCvcNvXqV+Cz02eHQ/IyeAgRLQi/yoEqoEiLbpwgzLka4AOTuV25c2 opWGVaJ0ZbvmsrZ+KcmV94w9WpjsByocMVq2lLUc7sKV4YoTMQ1vLq1/26OMxnVAVrf+K6 xCHJ7woRLJNjxiAJ9z3uRrSJB+Yi3dj2hw35/Kmc+nr1MXwytWGxDYTWiFrreg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677538172; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=UHmbfzM72P0vx55cul0thCGx8yo7EelJNuvMWK8vPqs=; b=gYf04iybcPrHLMupWGRuyC+zkGGUaIVm1u8SKae42Gbe4/HwhkIY6xrkrl6MmWA4i2PVK9 cyIP38WagnHZC9ijzjLu85PbnVkXryLceTLa2tuxkP5VNcwvrJw9tu/mzSCTzrRNUVdvF+ xO+KFnxJxIFgFYpX2GMpM4IHF8Id/wU2XXxD3/BbgmKnENIj7CR0EswdMwwSbn7DHQk3WM xdkK/Gyy576toOqGIIw0WV78+iisV/13YfKXH8y4MnhfMEU6QBKLKrToAHzijbMfPeAKoH f1AlXU0ycYx3Y6LvE4+WAySoUUFJhmI/CFYpV7IdexicBcvYePeqUek8vE+KzA== Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Spam-Score: -0.39 X-Spam-Score: -0.39 X-Migadu-Scanner: scn1.migadu.com X-Migadu-Queue-Id: 4B04DFDC3 X-TUID: aMlgkuJTmH9T --- gnu/packages/ocr.scm | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/gnu/packages/ocr.scm b/gnu/packages/ocr.scm index c1cd4f061e..fc069b83e3 100644 --- a/gnu/packages/ocr.scm +++ b/gnu/packages/ocr.scm @@ -88,7 +88,7 @@ (define-public tesseract-ocr-tessdata-fast (base32 "1m310cpb87xx8l8q7jy9fvzf6a0m8rm0dmjpbiwhc2mi6w4gn084")))) (build-system copy-build-system) - (arguments (list #:install-plan #~'(("." "share/tesseract-ocr/tessdata")) + (arguments (list #:install-plan #~'(("." "share/tessdata")) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'delete-broken-links (lambda _ @@ -131,15 +131,6 @@ (define-public tesseract-ocr (substitute* "configure.ac" (("AC_SUBST\\(\\[XML_CATALOG_FILES])") "")))) - (add-after 'unpack 'adjust-TESSDATA_PREFIX-macro - (lambda _ - ;; Use a deeper TESSDATA_PREFIX hierarchy so that a more - ;; specific search-path than '/share' can be specified. The - ;; build system uses CPPFLAGS for itself, so we can't simply set - ;; a make flag. - (substitute* "Makefile.am" - (("-DTESSDATA_PREFIX='\"@datadir@\"'") - "-DTESSDATA_PREFIX='\"@datadir@/tesseract-ocr\"'")))) (add-after 'build 'build-training (lambda* (#:key parallel-build? #:allow-other-keys) (define n (if parallel-build? (number->string @@ -155,7 +146,7 @@ (define n (if parallel-build? (number->string ;; extended via TESSDATA_PREFIX. (lambda* (#:key native-inputs inputs #:allow-other-keys) (define eng.traineddata - "/share/tesseract-ocr/tessdata/eng.traineddata") + "/share/tessdata/eng.traineddata") (install-file (search-input-file (or native-inputs inputs) eng.traineddata) (dirname (string-append #$output @@ -183,7 +174,7 @@ (define eng.traineddata (list leptonica)) (native-search-paths (list (search-path-specification (variable "TESSDATA_PREFIX") - (files (list "share/tesseract-ocr/tessdata")) + (files (list "share/tessdata")) (separator #f)))) ;single value (home-page "https://github.com/tesseract-ocr/tesseract") (synopsis "Optical character recognition engine") -- 2.39.1