[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170715162741.0e4f1298@vento.lan>
Date: Sat, 15 Jul 2017 16:27:41 -0300
From: Mauro Carvalho Chehab <mchehab@...pensource.com>
To: Markus Heiser <markus.heiser@...marit.de>
Cc: Linux Doc Mailing List <linux-doc@...r.kernel.org>,
Mauro Carvalho Chehab <mchehab@...radead.org>,
linux-kernel@...r.kernel.org, Jonathan Corbet <corbet@....net>
Subject: Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check
Sphinx install
Em Sat, 15 Jul 2017 09:55:09 -0300
Mauro Carvalho Chehab <mchehab@...pensource.com> escreveu:
> Em Sat, 15 Jul 2017 09:49:40 -0300
> Mauro Carvalho Chehab <mchehab@...pensource.com> 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
Powered by blists - more mailing lists