From patchwork Tue Feb 9 16:22:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andy Tai X-Patchwork-Id: 26975 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C3B8627BC22; Tue, 9 Feb 2021 16:24:24 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A366F27BC21 for ; Tue, 9 Feb 2021 16:24:23 +0000 (GMT) Received: from localhost ([::1]:56126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9VoM-0000yF-LV for patchwork@mira.cbaines.net; Tue, 09 Feb 2021 11:24:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Vn5-0000Km-Dj for guix-patches@gnu.org; Tue, 09 Feb 2021 11:23:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42897) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9Vn4-00031l-49 for guix-patches@gnu.org; Tue, 09 Feb 2021 11:23:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l9Vn4-0004sX-0O for guix-patches@gnu.org; Tue, 09 Feb 2021 11:23:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46376] [PATCH] gnu: tesseract-ocr: update to 4.1.1) Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Feb 2021 16:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46376 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Jelle Licht Cc: 46376@debbugs.gnu.org Received: via spool by 46376-submit@debbugs.gnu.org id=B46376.161288776518717 (code B ref 46376); Tue, 09 Feb 2021 16:23:01 +0000 Received: (at 46376) by debbugs.gnu.org; 9 Feb 2021 16:22:45 +0000 Received: from localhost ([127.0.0.1]:54443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9Vmm-0004ro-Nh for submit@debbugs.gnu.org; Tue, 09 Feb 2021 11:22:45 -0500 Received: from mail-il1-f173.google.com ([209.85.166.173]:39003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9Vmk-0004ra-5N for 46376@debbugs.gnu.org; Tue, 09 Feb 2021 11:22:43 -0500 Received: by mail-il1-f173.google.com with SMTP id d6so16611509ilo.6 for <46376@debbugs.gnu.org>; Tue, 09 Feb 2021 08:22:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atai-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=z58LPFd5fpOosDdsCDX0JoDlFzWNC5oLLhHeWmzZHbw=; b=IoiwMtSai5KTR7q1ckwOPPwCcGjRxUOjC9kGTe8UFlh6EBnxsy6hJg0wburXVrJy0a QWVbxpZ64vxuNB+kOPx3K4PTCNAGecmgEjbakqN3NT10jdZ2g2kcfvhy8qvV3te2weaB iipsu8mBd6RU/g5MLug4J3PQBu00gqYJ4LXtvRmnjYRlce67QFzK3zqv2Pr9oRVofvu8 Qs2obiniWd9hb3BmAGAVX1TT+C7Ijburt1fNBqiGtjMydagC5lflwG8jRs5xjZN7rv4N SotTYEDa71j/iXpRkdef05zhYwgwSwZe6hW/NxJNepbOwG9IOap5iQFx3ubiJEwV3G/W ru3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=z58LPFd5fpOosDdsCDX0JoDlFzWNC5oLLhHeWmzZHbw=; b=sNm96jqBw0U1th516/QCPvILapFJ4ezcpU5ilMBEjgC7oOH3E+IBa4Gkp6+KA/4bO5 O1cZPdmLWpImMSL4bsI0znq2NLndbUZmsn4FsrxdcbrrVNekTlNHWvYuSEMLc74QdXrM 0UpmmhHTFY66Wc6HpLVRg/o3jkKD/zm6eXcHjVbb8USMz0JSLw/4gCLUe9RX34D1r5jb ReehctC8l6AKvG30jnCgrEXsXmHSelP4/UU1/jMNVSsuXW01zmbcRkAM30yU5kWw6G5A Hp1GpDruv1G60uW0nANeHD/fqbJFMkNNyYcmHz+v70w+HvpzzMJRECsz3DI1Afd/f1qX GlpQ== X-Gm-Message-State: AOAM533BIwpnwtnNeIVmadmgPz9XrRn8bukqoy2rCGNzCy8116sHyw5j 2r2+NYCKpSYyC+f8q/XQYevOO5SoomiIamM29Cw= X-Google-Smtp-Source: ABdhPJzrevCHxYdvW449Sjro7Sct2rmvNi4OSsWm0Nv4MkDqhj2eG140W9+Rlnm7tlFs0Bb4MOgwA1kDAh5M6m65akc= X-Received: by 2002:a05:6e02:881:: with SMTP id z1mr20315216ils.288.1612887756466; Tue, 09 Feb 2021 08:22:36 -0800 (PST) MIME-Version: 1.0 References: <86a6sep7h0.fsf@posteo.net> <867dnhpi85.fsf@posteo.net> In-Reply-To: <867dnhpi85.fsf@posteo.net> From: Andy Tai Date: Tue, 9 Feb 2021 08:22:00 -0800 Message-ID: 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi, I updated the patch to only build in serial, with "-j 1" and with this, everything, including tests, builds successfully. Not sure if there is a way to specify only building the tests with "-j 1" In any case, the updated patch is attached Thanks On Tue, Feb 9, 2021 at 3:56 AM Jelle Licht wrote: > > Adding the following arguments might help to validate your assumption: > `#:make-flags (list "-j" "1")'. > > Thanks, > - Jelle From 5fde44f0d89660af23672ce16c640df7a9947fa2 Mon Sep 17 00:00:00 2001 From: Andy Tai Date: Tue, 9 Feb 2021 08:16:30 -0800 Subject: [PATCH] gnu: tesseract-ocr: Update to 4.1.1) * gnu/packages/ocr.scm (tesseract-ocr): Update to 4.1.1 --- gnu/packages/ocr.scm | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/gnu/packages/ocr.scm b/gnu/packages/ocr.scm index dc4930918a..37b6771db5 100644 --- a/gnu/packages/ocr.scm +++ b/gnu/packages/ocr.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2016, 2020 Efraim Flashner ;;; Copyright © 2019 Tobias Geerinckx-Rice ;;; Copyright © 2019 Alex Vong +;;; Copyright © 2021 Andy Tai ;;; ;;; This file is part of GNU Guix. ;;; @@ -26,7 +27,12 @@ #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system python) + #:use-module (gnu packages autotools) + #:use-module (gnu packages check) #:use-module (gnu packages compression) + #:use-module (gnu packages gtk) + #:use-module (gnu packages icu4c) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages image)) @@ -52,23 +58,39 @@ it produces text in 8-bit or UTF-8 formats.") (license license:gpl3+))) (define-public tesseract-ocr + ;; some useful commits beyond last official stable release in release branch + (let ((commit "97079fa353557af6df86fd20b5d2e0dff5d8d5df") + (revision "1")) (package (name "tesseract-ocr") - (version "3.04.01") + (version (git-version "4.1.1" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/tesseract-ocr/tesseract") - (commit version))) + (commit commit) + ;; source git repo with submodules; ensure they are fetched + (recursive? #t))) (file-name (git-file-name name version)) (sha256 - (base32 "0h1x4z1h86n2gwknd0wck6gykkp99bmm02lg4a47a698g4az6ybv")))) + (base32 "0axwla82fpzp86lc553wp3hk0fz5dylw4as0jbf4hkqcyajlbzp4")))) (build-system gnu-build-system) (inputs - `(("leptonica" ,leptonica))) + `( ("cairo" ,cairo) + ("icu" ,icu4c) + ("leptonica" ,leptonica) + ("pango" ,pango))) + (native-inputs + `(("autoconf" ,autoconf) + ("autoconf-archive" ,autoconf-archive) + ("automake" ,automake) + ("googletest" ,googletest) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) (arguments - '(#:configure-flags + '(#:make-flags (list "-j" "1") ;; some test, applybox_test fails to build if built in parallel + #:configure-flags (let ((leptonica (assoc-ref %build-inputs "leptonica"))) (list (string-append "LIBLEPT_HEADERSDIR=" leptonica "/include"))))) (home-page "https://github.com/tesseract-ocr/tesseract") @@ -79,7 +101,7 @@ high accuracy. It supports many languages, output text formatting, hOCR positional information and page layout analysis. Several image formats are supported through the Leptonica library. It can also detect whether text is monospaced or proportional.") - (license license:asl2.0))) + (license license:asl2.0)))) (define-public zinnia (let* ((commit "581faa8f6f15e4a7b21964be3a5ec36265c80e5b") -- 2.30.0