From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 25 06:44:49 2018 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 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 To: guix-patches@gnu.org Subject: [PATCH] gnu: calibre: Fix PDF to EPUB conversion. 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32e X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Mathieu Othacehe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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" -- 2.20.1 From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 06 12:56:40 2019 Received: (at 33868) by debbugs.gnu.org; 6 Jan 2019 17:56:40 +0000 Received: from localhost ([127.0.0.1]:48980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggCfA-0002a8-2h for submit@debbugs.gnu.org; Sun, 06 Jan 2019 12:56:40 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:39084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggCf7-0002Zx-Jp for 33868@debbugs.gnu.org; Sun, 06 Jan 2019 12:56:37 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 5F99D1089; Sun, 6 Jan 2019 18:56:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eO9FA5MaBs4u; Sun, 6 Jan 2019 18:56:35 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 2FEA2238; Sun, 6 Jan 2019 18:56:35 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mathieu Othacehe Subject: Re: [bug#33868] [PATCH] gnu: calibre: Fix PDF to EPUB conversion. References: <20181225114427.2777-1-m.othacehe@gmail.com> Date: Sun, 06 Jan 2019 18:56:34 +0100 In-Reply-To: <20181225114427.2777-1-m.othacehe@gmail.com> (Mathieu Othacehe's message of "Tue, 25 Dec 2018 12:44:27 +0100") Message-ID: <87bm4tzn3h.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 33868 Cc: 33868@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello, Mathieu Othacehe skribis: > When trying to convert a PDF to EPUB, the following error occurs: > > File "/gnu/store/kz6bgqw9z7akj11zh20wkx14cgq0s3n2-calibre-3.35.0/lib/ca= libre/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. I haven=E2=80=99t tested it but I=E2=80=99m confident you can go ahead and = push it. Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 11 18:20:05 2019 Received: (at 33868) by debbugs.gnu.org; 11 Jan 2019 23:20:05 +0000 Received: from localhost ([127.0.0.1]:56432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gi65s-0005Dn-Nv for submit@debbugs.gnu.org; Fri, 11 Jan 2019 18:20:04 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:52409) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gi65r-0005DG-I6 for 33868@debbugs.gnu.org; Fri, 11 Jan 2019 18:20:04 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 9D06B16C6; Fri, 11 Jan 2019 18:19:57 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 11 Jan 2019 18:19:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=/BmiGyLFMiWW2fK5Ut8qb9+Iag FdwYoOJ8GMu19bOZk=; b=jC7EReyjv7SBFpSyOCja4FNdUXpXkz3VVpww93F5qQ XVl3SfC3WjfhdilU892kBAn1pbqZPyu5EJlbYZDh2awwseFnqczvwiArt3tkul6U gofVGRJAIlFhcryyg64DDkUH6ecyKitsiuhqhf4QL7qGOqbOi8dVqMq+83QPUwVV A+EA73drkw8Uw98JXR0/iXeLlSy89M8AoMa/8RVBv+n/rXVLbtUnfgAb9LsXQWTj u9N0XEeAykNblfZKZUS9kF6N5t9LZpwGoYrmbHhoX9pn1v5rjLqc0F3POZ1MSRAi KFQHfTR3nKAf7JNL4GKtlHgYKVj/L3XOqRPEn6Lromtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=/BmiGy LFMiWW2fK5Ut8qb9+IagFdwYoOJ8GMu19bOZk=; b=ismzM/IY2/CzC38GO42Qe1 OoCP9d34jvUCSlfv4TGU9HUuAX+VuuUSt+R6dwYcsMKc5qeJg1siJs+8trUGCXLt MfhfIg6B+GH/O4TNM+TuBTZOKS5SXHvyozspZ4mL0WpPL9t1FiD/Fg5So4ZMlFL4 oBXwBq+ke11cQx8PxK90mAottVTV77DcvQQsWfA9IfvS4TPUrtnAel9SWYNIgNP7 mGv0c4MO2+ZvNylsOPuo/6xZTvS44J9yF6T2UrLdxE75EUCceajDUCkdUXCPcalH WsPsjiHDnCLpCKUoVtg2aeapn5ker5mS9pIt2SKAcAL/l5WkdORXk/UKhjs7gz+g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrfeeigddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufgjfhgfff fkgggtsehgtderredtredtnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggr khhkvgesfhgrshhtmhgrihhlrdgtohhmqeenucfkphepiedvrdduiedrvddviedrudegtd enucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdrtgho mhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 5080C10106; Fri, 11 Jan 2019 18:19:56 -0500 (EST) From: Marius Bakke To: Mathieu Othacehe , 33868@debbugs.gnu.org Subject: Re: [bug#33868] [PATCH] gnu: calibre: Fix PDF to EPUB conversion. In-Reply-To: <20181225114427.2777-1-m.othacehe@gmail.com> References: <20181225114427.2777-1-m.othacehe@gmail.com> User-Agent: Notmuch/0.28 (https://notmuchmail.org) Emacs/26.1 (x86_64-pc-linux-gnu) Date: Sat, 12 Jan 2019 00:19:54 +0100 Message-ID: <878szq7pet.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33868 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Mathieu Othacehe writes: > 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. An less intrusive solution would be to substitute the absolute path to 'pdf2html' in a build step. I.e.: (substitute* "lib/calibre/calibre/ebooks/pdf/pdftohtml.py" (("PDFTOHTML = \"pdftohtml\"") (string-append "PDFTOHTML = \"" (assoc-ref inputs "poppler") "/bin/pdftohtml\""))) Either approach is fine by me, but please leave a comment about why Poppler is propagated if you go that route :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlw5JJoACgkQoqBt8qM6 VPoUKgf/THvcR5YIgj0ccE6CKT+jKOzw1F5xyMTz6O0iJJp/cr7zpCPAxwcSsZEx 6c4o8h2F83XL+3IQyb63s6IQVmhq99EamlSJUSE5G6TEQSYLP+dEIleIyPtvTLZv F59gosFnqfsMgIT32lVWXHJ4L+80auWe1pmApOO911CKnJXYw75lrrRy1bgFJg7x /tVD/p6zkux1LJzxyGBoqoHg/x5fv7a1OZDNt36gEQ3uPFwm+iMIKFE9CgxSIIau otEDkH2YbS5QGnJOuizy2ertt+0GKpDKeL/vlLFT7vWNtvRQwKhSqvHxZX2VsM+B 4JNds6MMP+rIi7ZDMzl9OIbmSZCing== =v4B7 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 12 17:44:00 2019 Received: (at 33868) by debbugs.gnu.org; 12 Jan 2019 22:44:00 +0000 Received: from localhost ([127.0.0.1]:57209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1giS0W-0006PN-36 for submit@debbugs.gnu.org; Sat, 12 Jan 2019 17:44:00 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1giS0T-0006P4-Mj for 33868@debbugs.gnu.org; Sat, 12 Jan 2019 17:43:58 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 5866B2210E; Sat, 12 Jan 2019 17:43:52 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 12 Jan 2019 17:43:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=ZXHm0AuPrxgJR737KIJmoA6u /XjmdfyM/FBBxwgILF8=; b=kdLkYNwbQdK6Jc+9K0TMKC7+FFhsug3S4mwlBT1a wDRt6iW+M207QZrGJoyl8cqAgEw78yBP5AP1H89YalH9Zu7m/6kpL+YkLpRn0cHF zXXv8eLHbcEpE5hqJSGSY+Euhl8Ec04zthXm4gS3MKOFXfqZEwQkUpHu6IRDOKMI owI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ZXHm0A uPrxgJR737KIJmoA6u/XjmdfyM/FBBxwgILF8=; b=gYas/urtQogG+1mp0eoX6y Xv1qWh/Xk7exBt799/GTuQJkN8RRP2VmBArYZe7uxhHlGj+868sRB4y1WMgcuPrX BFZjRPcKKvousTn7p8hOJz9yQBFwMIUnhC3l0mo1/rVHO7HuWs70rv5YaywC3xuE +VpkdV3vrzki6cJ+CdyaqRKFgtfQgHrjvEOLgTtX5FUFbWOg3DR9anoZOTQZaJAZ /6sf5imENWQ/YoSUZClh+OMj4/cYWXUNNVtjLRqHFH1IiF4L24wvX4jAMg46uoNJ SMHqbE9foMDDLfxHnVVKd8O5qSmLY27uCfz92X5dJ1kg4nxff0lgwsa1/KkP8xFQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrfeejgdduieeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvuffkfh ggtggujggfsehgtderredtredvnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehl vghosehfrghmuhhlrghrihdrnhgrmhgvqeenucfkphepvddtkedrheegrdeltddrudehfe enucfrrghrrghmpehmrghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvgen ucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (m995a36d0.tmodns.net [208.54.90.153]) by mail.messagingengine.com (Postfix) with ESMTPA id C92C110281; Sat, 12 Jan 2019 17:43:51 -0500 (EST) Date: Sat, 12 Jan 2019 17:43:09 -0500 From: Leo Famulari To: Marius Bakke Subject: Re: [bug#33868] [PATCH] gnu: calibre: Fix PDF to EPUB conversion. Message-ID: <20190112224309.GA16245@jasmine.lan> References: <20181225114427.2777-1-m.othacehe@gmail.com> <878szq7pet.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline In-Reply-To: <878szq7pet.fsf@fastmail.com> User-Agent: Mutt/1.11.0 (2018-11-25) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33868 Cc: Mathieu Othacehe , 33868@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 12, 2019 at 12:19:54AM +0100, Marius Bakke wrote: > Mathieu Othacehe writes: >=20 > > 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. >=20 > An less intrusive solution would be to substitute the absolute path to > 'pdf2html' in a build step. I.e.: >=20 > (substitute* "lib/calibre/calibre/ebooks/pdf/pdftohtml.py" > (("PDFTOHTML =3D \"pdftohtml\"") > (string-append "PDFTOHTML =3D \"" (assoc-ref inputs "poppler") > "/bin/pdftohtml\""))) >=20 > Either approach is fine by me, but please leave a comment about why > Poppler is propagated if you go that route :-) I think this substitution is the better solution. --azLHFNyN32YCQGCU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlw6bXoACgkQJkb6MLrK fwjzCQ/9Humtck0nakYdl8iDENEI9g3rVAOWblGnakcIAaSkhZFYg2yKfgiNVwXw 6ivY+yCq/3k/yB9TPnpv7NgYICmTPMTz4LbqW9qabZUyaRbW5w+Kwo7lowwGCD5J oNCG/kW4YcbC50+6KfuHROOauajGVHuczQfYmZnOsNeC8G7/BlvWjCYfmXndQkrW b6XCnJ1bEpQySLcsx25CgfG5dqQdKnnLUcZ4w4x93P2OCGdohysNGPBWjG1vBE22 GW3bB3vSG7t2YwdvkFI4H6yuoYqaDCq1I46QtaSqRb2eb+68PdJMVCohZ8pH5JYg /ZsxlxK5FQPLCQKCyYjUhWLDRbtCZdLCouB8/BsRhYphc+pYJlXRiCUqxIeEZmWm YUvm3lE4LEylQ4msSFb6wwdMz8q4nEHrVJ3u3Ue+hWH4tl82uYcRnc29X5jwt+w5 HgPpV+9xW6OBVY2a6HU5HfF3QdIP/FajaWILtcqTju9EDkbkqIYsKH8wsfQ4usQW p6WsYRti3ROcVCCyp8CNb+Apw6HSap/E37+LHLSXyNneeGMbsr8YvqePHhpBdlJJ 1hF9i2RtVNrx+l1wzPBvq100yvHWStrHhdoPhspcjZq7hW5mTA0uCP3W0o8d9gR1 0s3U6IoxoYFV/hIwvVcJuJ+pwiVFH+arF9BOgqQyh0fxamzlbEI= =WeB3 -----END PGP SIGNATURE----- --azLHFNyN32YCQGCU-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 21 04:57:50 2019 Received: (at 33868-done) by debbugs.gnu.org; 21 Jan 2019 09:57:50 +0000 Received: from localhost ([127.0.0.1]:39435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glWKz-0006UW-VJ for submit@debbugs.gnu.org; Mon, 21 Jan 2019 04:57:50 -0500 Received: from mail-wm1-f43.google.com ([209.85.128.43]:38951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glWKz-0006UK-0B for 33868-done@debbugs.gnu.org; Mon, 21 Jan 2019 04:57:49 -0500 Received: by mail-wm1-f43.google.com with SMTP id y8so10063952wmi.4 for <33868-done@debbugs.gnu.org>; Mon, 21 Jan 2019 01:57:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=aqTE+riuxhaGNwxBMP+iRJIzkZkRHJbUqJO94lamaR0=; b=XI8AzzNRVBIuQoEdTIE6qOyOdyFHf8Fvgm/XxYINXduUd4yaqafj5JvPSEZEz22iAr BFl7TGJL51C8FfKqfcA0ROHa9FiJMKSz1PlGOTqjcaICYUt5DvLZ4H4ot8lAtBkP2mz/ WVcXgqcEKhloJS2AoC0m/Vu3aVtRfqggPJ/D9uCcBTFn2EchAtJQeoMydscHAyjvwXsy jE2QYNLNxEQhN7pxFiHKBHrjDfFGdPTwjAnymQmcTdz74z9T/2I9Ubv8MHtlfoCZyvdU e6yU8pdD+iiHSGB2c7C5ozN+Qs6wALmCbRIRwArpcYOcGsrDV+X7Jlf9UAevTo0mohaO TGXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=aqTE+riuxhaGNwxBMP+iRJIzkZkRHJbUqJO94lamaR0=; b=hBZZIqNTPHXh497WB538IatSouReDFjnkOoOeOn1uJeTnavIhX7qhQbcVJdSVjIPte A1tGhW2Dyi57XbyxFeEyz/pTP778KlB4/6bMQ9jwZ8OSIbeg3sbdolYshU6uaOuAvM2s 6i9/2dvsth2Kr77znfx13sbJsHRuRwFfgHCeG9LaBFbp9EqI5tguyytYzpww9DFAcpkj LDAuotGXg90HXc31OpusEWhPXmc2pVF4zB53UXIYI+Lyj3yMu5Lk+SWAz/V9D7UyI2IZ W7u52MM+FFmSIrUp10/XOBvI44rHY7gYQdRYETEISnKKkdNZ6m1jdN1+usUXuFnBXWKj j4Qg== X-Gm-Message-State: AJcUukfs3RAgsO7EpoqCXbV9xJk/nPr8JrVEloJo9MuDr/hPVj00d0m0 I1PJM5dceuWix+ed+c7cKuGf1PD1 X-Google-Smtp-Source: ALg8bN4VnBjk7NF3VxTrsi7QiwPgSBXtzrYIy/TYkijKFdoL/CdsL8j5hdaxmmk7WMTSzTXStVIauA== X-Received: by 2002:a1c:c70f:: with SMTP id x15mr24003781wmf.130.1548064662612; Mon, 21 Jan 2019 01:57:42 -0800 (PST) Received: from fuji (smtp.parrot.biz. [62.23.167.188]) by smtp.gmail.com with ESMTPSA id t199sm34502349wmt.1.2019.01.21.01.57.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Jan 2019 01:57:41 -0800 (PST) References: <20181225114427.2777-1-m.othacehe@gmail.com> <878szq7pet.fsf@fastmail.com> <20190112224309.GA16245@jasmine.lan> User-agent: mu4e 1.0; emacs 26.1 From: Mathieu Othacehe To: Leo Famulari Subject: Re: [bug#33868] [PATCH] gnu: calibre: Fix PDF to EPUB conversion. In-reply-to: <20190112224309.GA16245@jasmine.lan> Date: Mon, 21 Jan 2019 10:57:41 +0100 Message-ID: <87a7ju2uzu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33868-done Cc: Marius Bakke , 33868-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> (substitute* "lib/calibre/calibre/ebooks/pdf/pdftohtml.py" >> (("PDFTOHTML = \"pdftohtml\"") >> (string-append "PDFTOHTML = \"" (assoc-ref inputs "poppler") >> "/bin/pdftohtml\""))) Pushed as b65b78ff using your substitute snippet. Thanks, Mathieu From unknown Sun Jun 22 11:39:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 18 Feb 2019 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator