From patchwork Tue Dec 25 11:44:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 541 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 C1D4716996; Tue, 25 Dec 2018 11:45:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mira.cbaines.net (Postfix) with ESMTP id 442E91695C for ; Tue, 25 Dec 2018 11:45:11 +0000 (GMT) Received: from localhost ([127.0.0.1]:40609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbl94-0002Zu-Rq for patchwork@mira.cbaines.net; Tue, 25 Dec 2018 06:45:10 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbl90-0002Zh-2f for guix-patches@gnu.org; Tue, 25 Dec 2018 06:45:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gbl8w-0004tW-0Y for guix-patches@gnu.org; Tue, 25 Dec 2018 06:45:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:32847) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gbl8v-0004t9-TL for guix-patches@gnu.org; Tue, 25 Dec 2018 06:45:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gbl8v-0003Uq-N8 for guix-patches@gnu.org; Tue, 25 Dec 2018 06:45:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33868] [PATCH] gnu: calibre: Fix PDF to EPUB conversion. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 25 Dec 2018 11:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33868 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33868@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154573828913400 (code B ref -1); Tue, 25 Dec 2018 11:45:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Dec 2018 11:44:49 +0000 Received: from localhost ([127.0.0.1]:35740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gbl8i-0003U4-JL for submit@debbugs.gnu.org; Tue, 25 Dec 2018 06:44:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gbl8g-0003Tn-Vp for submit@debbugs.gnu.org; Tue, 25 Dec 2018 06:44:47 -0500 Received: from lists.gnu.org ([208.118.235.17]:34256) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gbl8b-0004WX-Kz for submit@debbugs.gnu.org; Tue, 25 Dec 2018 06:44:41 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbl8a-0002E4-PR for guix-patches@gnu.org; Tue, 25 Dec 2018 06:44:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gbl8W-0004Py-OE for guix-patches@gnu.org; Tue, 25 Dec 2018 06:44:40 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:38309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gbl8W-0004Og-Hh for guix-patches@gnu.org; Tue, 25 Dec 2018 06:44:36 -0500 Received: by mail-wm1-x32e.google.com with SMTP id m22so13496726wml.3 for ; Tue, 25 Dec 2018 03:44:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YXJavN6xV41s+Os0699j7eMjHsKO7zXwA2mq7KPTevk=; b=aVj6ZKNwKA1GxEhg6ott0cumhUgPYcmqQ+1VF6yHmlS8QQqcmWWaTUfof6JfqCQubw t9t+1nUmJrJLJRYh/81Vj/+JX/zMVpSFkYOcWCNxXi9ekt8E4Kh0wufCR/6GQ9HN1cHY +FaAX7a2MDsrXMmUNs4MDaC3tesdmA1eXFxh1wSFX3b8RTbVpeDEgYFgp5XV+Ddqkz8P /5ilC5zkmBSDZNBGMN0cgeJJO9G0UkR8DMfHRrCjby3XxolNXYAe/Ewm6RZJR/VZIfeZ N5AKOJgs9P8HN1U73G86LFS4jrpiW88HBpJ4kecdD3Fn/YVRCljN5E+Fvo1qmWhQMxUh Rm7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YXJavN6xV41s+Os0699j7eMjHsKO7zXwA2mq7KPTevk=; b=Zl7qNibSXWmhpnI3atwQ0dNkopEq4cxYeMeTJeQVHuUoUhLRDicac4xQQ1Tp60bB8V xuoy82EXhNZHEmWisHhIWdQvpG3O9NEl4HchcSfhSY1bNDXMNGQZnvHY2sDulHHSn+mz I8U7iPFQhHv197CnoKDKKYR8mD/LmrrRLpu5MAyrDowfCeXOXidWEeuKGV0o1FNpkF4D 2TLzkT+oJ9iUSbJdHK9+QSzTxU01xxa1WmyGYZpu/RdrE+VkGaRb4kMnRW+68HHovjd7 auAz07ExfomBH5p3X6f16W45DHso1dnWeMjq6zAbUinxa2V4VJznbZLRN8PcL//o9Azn MOdw== X-Gm-Message-State: AJcUuke8fm/RCS+wjmpbqfiMjHhePHQeb2Fq+OfidrE1kTw6Pe2ln8Yn OMAF6Pc/Vu3e5IpVB30XGhkegrT5 X-Google-Smtp-Source: ALg8bN5n/M1YdoQjiYfHJFj31owGWDr7pW2WEbthpm1fb0t8cmBYCYyD4zLuMIMgQo6hI82Wz02h9g== X-Received: by 2002:a1c:8acd:: with SMTP id m196mr15256309wmd.120.1545738274825; Tue, 25 Dec 2018 03:44:34 -0800 (PST) Received: from localhost.localdomain (abayonne-651-1-193-198.w109-223.abo.wanadoo.fr. [109.223.81.198]) by smtp.gmail.com with ESMTPSA id k128sm26733723wmd.37.2018.12.25.03.44.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Dec 2018 03:44:34 -0800 (PST) From: Mathieu Othacehe Date: Tue, 25 Dec 2018 12:44:27 +0100 Message-Id: <20181225114427.2777-1-m.othacehe@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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 When trying to convert a PDF to EPUB, the following error occurs: File "/gnu/store/kz6bgqw9z7akj11zh20wkx14cgq0s3n2-calibre-3.35.0/lib/calibre/calibre/ebooks/pdf/pdftohtml.py", line 76, in pdftohtml _('Could not find pdftohtml, check it is in your PATH')) Move poppler which provides pdftohtml from inputs to propagated-inputs to fix it. * gnu/packages/ebook.scm (calibre)[inputs]: Move poppler from here ... [propagated-inputs]: ... to here. --- gnu/packages/ebook.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm index e750c6cac..70434293a 100644 --- a/gnu/packages/ebook.scm +++ b/gnu/packages/ebook.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2017 Brendan Tildesley ;;; Copyright © 2017 Roel Janssen ;;; Copyright © 2018 Tobias Geerinckx-Rice +;;; Copyright © 2018 Mathieu Othacehe ;;; ;;; This file is part of GNU Guix. ;;; @@ -121,7 +122,6 @@ ("openssl" ,openssl) ("optipng" ,optipng) ("podofo" ,podofo) - ("poppler" ,poppler) ("python" ,python-2) ("python2-apsw" ,python2-apsw) ("python2-chardet" ,python2-chardet) @@ -145,9 +145,9 @@ ("python2-sip" ,python2-sip) ("python2-regex" ,python2-regex) ;; python2-unrardll is needed for decompressing RAR files. - ;; A program called 'pdf2html' is needed for reading PDF books - ;; in the web interface. ("sqlite" ,sqlite))) + (propagated-inputs + `(("poppler" ,poppler))) (arguments `(#:python ,python-2 #:test-target "check"