From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:50609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gi66p-0007uQ-Q5 for guix-patches@gnu.org; Fri, 11 Jan 2019 18:21:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gi66p-0006Ms-3J for guix-patches@gnu.org; Fri, 11 Jan 2019 18:21:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57151) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gi66o-0006MX-6c for guix-patches@gnu.org; Fri, 11 Jan 2019 18:21:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gi66o-0005FS-0S for guix-patches@gnu.org; Fri, 11 Jan 2019 18:21:02 -0500 Subject: [bug#33868] [PATCH] gnu: calibre: Fix PDF to EPUB conversion. Resent-Message-ID: From: Marius Bakke In-Reply-To: <20181225114427.2777-1-m.othacehe@gmail.com> References: <20181225114427.2777-1-m.othacehe@gmail.com> 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" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Mathieu Othacehe , 33868@debbugs.gnu.org --=-=-= 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----- --=-=-=--