Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1687753

Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check Sphinx install

From Mauro Carvalho Chehab <mchehab@s-opensource.com>
Newsgroups linux.kernel
Subject Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check Sphinx install
Date 2017-07-15 03:30 +0200
Message-ID <u3k4b-3a5-29@gated-at.bofh.it> (permalink)
References <u3c6B-686-5@gated-at.bofh.it> <u3cJk-6Ez-11@gated-at.bofh.it> <u3hIZ-1w8-15@gated-at.bofh.it>
Organization Samsung

Show all headers | View raw


Em Fri, 14 Jul 2017 15:51:03 -0700
Jim Davis <jim.epost@gmail.com> escreveu:

> On Fri, Jul 14, 2017 at 10:35 AM, Markus Heiser
> <markus.heiser@darmarit.de> wrote:
> >
> >
> > Ok, this won't solve TeX installation problems of Linux distros,  
> 
> Which seems to be the thorniest problem.  It's one thing to identify
> which sphinx versions work, and another to figure out which of the
> metric boatload of TeX packages are needed.

Yes. That's likely the hardest part.

> On a fresh Fedora 26 install I was able to get "make pdfdocs" to build
> (hurrah!) after adding

Just sent a version 2 of the script, with support for Fedora 26.

I tested with a Fedora lxc container. The only package I had to manually
install there is perl. I'm pretty sure that a minimal Fedora image
(outside a LXC) already comes with perl, so I guess the script is
an improvement over manually checking all needed dependencies.

> ImageMagick
> latex
> sphinx-build
> texlive-adjustbox
> texlive-babel-english
> texlive-capt-of
> texlive-cm
> texlive-cmap
> texlive-ec
> texlive-eqparbox
> texlive-euenc
> texlive-fancyhdr
> texlive-fncychap
> texlive-framed
> texlive-hyphen-base
> texlive-mdwtools
> texlive-multirow
> texlive-parskip
> texlive-tablefootnote
> texlive-tabulary
> texlive-threeparttable
> texlive-titlesec
> texlive-unicode-data
> texlive-upquote
> texlive-wrapfig
> xelatex

There is a package called "python-sphinx-latex" that seems to install
almost everything needed for Fedora 26. This one, plus:
	xelatex
	texlive-adjustbox

It also optionally require DeJavu fonts.

are enough for PDF build. You still need:
	ImageMagick
	graphviz

for both html and pdf targets, if you want to have support for
images.
 
> which ended up installing about 160 RPMs.  Figuring out the right
> texlive parts wasn't much fun; footnote.sty is well-hidden in
> texlive-mdwtools, for instance, and without texlive-babel-english the
> build failed with very mysterious errors in userspace-api.

Yeah, that's why I think the right solution is to have a script that
will identify the distribution and install the missing dependencies.

Thanks,
Mauro

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH RFC] scripts/sphinx-pre-install: add a script to check Sphinx install Mauro Carvalho Chehab <mchehab@s-opensource.com> - 2017-07-14 19:00 +0200
  Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check  Sphinx install Markus Heiser <markus.heiser@darmarit.de> - 2017-07-14 19:40 +0200
    Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check  Sphinx install Jim Davis <jim.epost@gmail.com> - 2017-07-15 01:00 +0200
      Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check  Sphinx install Mauro Carvalho Chehab <mchehab@s-opensource.com> - 2017-07-15 03:30 +0200
    Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check  Sphinx install Mauro Carvalho Chehab <mchehab@s-opensource.com> - 2017-07-15 04:30 +0200
      Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check  Sphinx install Markus Heiser <markus.heiser@darmarit.de> - 2017-07-15 12:00 +0200
        Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check  Sphinx install Mauro Carvalho Chehab <mchehab@s-opensource.com> - 2017-07-15 14:50 +0200
          Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check  Sphinx install Mauro Carvalho Chehab <mchehab@s-opensource.com> - 2017-07-15 15:00 +0200
            Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check  Sphinx install Mauro Carvalho Chehab <mchehab@s-opensource.com> - 2017-07-15 21:30 +0200
          Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check  Sphinx install Markus Heiser <markus.heiser@darmarit.de> - 2017-07-16 09:30 +0200
            Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check  Sphinx install Mauro Carvalho Chehab <mchehab@s-opensource.com> - 2017-07-16 12:00 +0200

csiph-web