Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751207AbdGOT1v (ORCPT ); Sat, 15 Jul 2017 15:27:51 -0400 Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49]:48985 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751105AbdGOT1t (ORCPT ); Sat, 15 Jul 2017 15:27:49 -0400 Date: Sat, 15 Jul 2017 16:27:41 -0300 From: Mauro Carvalho Chehab To: Markus Heiser Cc: Linux Doc Mailing List , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check Sphinx install Message-ID: <20170715162741.0e4f1298@vento.lan> In-Reply-To: <20170715095509.27503544@vento.lan> References: <7ab9f1045ad103f1da56cb6b19948ea107fdb272.1500050599.git.mchehab@s-opensource.com> <042D234A-6B3D-43D4-84BA-8332C0596AA4@darmarit.de> <20170714232140.0608da3c@vento.lan> <1719549A-CDF5-4448-8CD6-28B52802E00A@darmarit.de> <20170715094940.2bcd7eab@vento.lan> <20170715095509.27503544@vento.lan> Organization: Samsung X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1795 Lines: 43 Em Sat, 15 Jul 2017 09:55:09 -0300 Mauro Carvalho Chehab escreveu: > Em Sat, 15 Jul 2017 09:49:40 -0300 > Mauro Carvalho Chehab escreveu: > > > I guess it could also use kpsewhich to check if the needed > > texlive packages are installed. However, the problem with such > > approach is that texlive-kpathsea-bin package should be installed > > first, in order to provide such command. > > > > So, installing PDF and math dependencies would require two steps. > > Hmm... answering myself: if texlive-kpathsea-bin is not installed, > that probably means that texlive is not installed. So, the script > can just give the command to install all texlive packages that are > needed for a given distribution. While getting the required stuff for OpenSuse Tumbleweed, I noticed a problem with the current toolchain, that affects both html and PDF: /usr/bin/dot -Tpdf /home/mchehab/docs/Documentation/doc-guide/hello.dot Format: "pdf" not recognized. Use one of: canon cmap cmapx cmapx_np dot eps fig gv imap imap_np ismap pic plain plain-ext pov ps ps2 svg svgz tk vml vmlz xdot xdot1.2 xdot1.4 $ ls -lctra Documentation/output/doc-guide/latex/hello.pdf -rw-rw-r-- 1 mchehab mchehab 0 jul 15 16:20 Documentation/output/doc-guide/latex/hello.pdf Btw, the same error is happening also with Fedora 26. So, I guess kfigure should test if pdf is supported, otherwise convert to some other format (like ps or svg). E. g. calling it with something like: $ dot -T help Format: "help" not recognized. Use one of: canon cmap cmapx cmapx_np dot eps fig gv imap imap_np ismap pic plain plain-ext pov ps ps2 svg svgz tk vml vmlz xdot xdot1.2 xdot1.4 then parse its output, before assuming that the requested format is available. Thanks, Mauro