Summary: | sci-visualization/gnuplot-5.0.3: USE="doc" fails to build unless USE="cairo" is set | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Karl-Johan Karlsson <creideiki+gentoo-bugzilla> |
Component: | Current packages | Assignee: | Ulrich Müller <ulm> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | junghans, sci |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=689894 https://bugs.gentoo.org/show_bug.cgi?id=296732 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
Do not require picins.sty |
Description
Karl-Johan Karlsson
2016-03-20 11:12:35 UTC
Fails for me even with USE="doc cairo", due to missing file picins.sty: make -j2 -C docs gnuplot.pdf make: Entering directory '/var/tmp/portage/sci-visualization/gnuplot-5.0.3/work/gnuplot-5.0.3/docs' ./doc2tex -figures ./gnuplot.doc figures.tex GNUPLOT_LIB=../demo ../src/gnuplot ./plotstyles.gnu touch pdf_figures if test pdflatex != no ; then \ rm -f figures.idx ; \ touch figures.idx ; \ rm -f pdffigures.tex ; \ ( echo "\usepackage{graphicx}" > pdffigures.tex ; \ echo "\usepackage{picins}" >> pdffigures.tex ; \ ) ; \ TEXINPUTS=.:.:..:/usr/lib64/ocaml/ocamldoc:: pdflatex figures.tex ; \ TEXINPUTS=.:.:..:/usr/lib64/ocaml/ocamldoc:: pdflatex figures.tex ; \ TEXINPUTS=.:.:..:/usr/lib64/ocaml/ocamldoc:: pdflatex figures.tex ; \ makeindex figures ; \ TEXINPUTS=.:.:..:/usr/lib64/ocaml/ocamldoc:: pdflatex figures.tex ; \ mv figures.pdf gnuplot.pdf ; \ rm -f pdffigurex.tex pdffigures.aux ; \ else \ echo pdflatex not found - cannot build pdf file ; \ fi This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./figures.tex LaTeX2e <2015/01/01> patch level 2 Babel <3.9l> and hyphenation patterns for 14 languages loaded. (./titlepag.tex (/usr/share/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/share/texmf-dist/tex/latex/base/size10.clo)) (./toc_entr.sty `toc_entry.sty' 1.0 of 13 Dec 90 ) (/usr/share/texmf-dist/tex/latex/base/latexsym.sty) (/usr/share/texmf-dist/tex/latex/base/inputenc.sty (/usr/share/texmf-dist/tex/latex/ucs/utf8x.def)) (/usr/share/texmf-dist/tex/latex/ucs/ucs.sty (/usr/share/texmf-dist/tex/latex/ucs/data/uni-global.def)) (/usr/share/texmf-dist/tex/latex/hyperref/hyperref.sty (/usr/share/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty (/usr/share/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty)) (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texmf-dist/tex/generic/ifxetex/ifxetex.sty) (/usr/share/texmf-dist/tex/latex/oberdiek/auxhook.sty) (/usr/share/texmf-dist/tex/latex/oberdiek/kvoptions.sty) (/usr/share/texmf-dist/tex/latex/hyperref/pd1enc.def) (/usr/share/texmf-dist/tex/latex/latexconfig/hyperref.cfg) (/usr/share/texmf-dist/tex/latex/url/url.sty)) Package hyperref Message: Driver (autodetected): hpdftex. (/usr/share/texmf-dist/tex/latex/hyperref/hpdftex.def (/usr/share/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)) (/usr/share/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty) (/usr/share/texmf-dist/tex/latex/base/makeidx.sty) Writing index file figures.idx (/usr/share/texmf-dist/tex/latex/tools/longtable.sty) \@input{pdffigures.aux} (./pdffigures.tex (/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/share/texmf-dist/tex/latex/graphics/graphics.sty (/usr/share/texmf-dist/tex/latex/graphics/trig.sty) (/usr/share/texmf-dist/tex/latex/latexconfig/graphics.cfg) (/usr/share/texmf-dist/tex/latex/pdftex-def/pdftex.def)))) ! LaTeX Error: File `picins.sty' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: sty) Enter file name: ! Emergency stop. <read *> l.51 \include{pdffigures} ^^M ! ==> Fatal error occurred, no output PDF file produced! Transcript written on figures.log. @ottxor: Looks like bug 517058 is hitting us again? > Fails for me even with USE="doc cairo", due to missing file picins.sty:
+1
build of gnuplot-5.0.6 is still broken. Created attachment 501700 [details, diff]
Do not require picins.sty
Please test if attached patch fixes the build with USE="doc cairo".
The patch replaces the wrapped-around figures by plain figures. It slightly increases the size of gnuplot.pdf (from 259 to 263 pages here) but I think this is acceptable.
I have also tried replacing picins.sty by wrapfig.sty or floatflt.sty but the result of either is far from perfect. wrapfig gets completely confused at some point and doesn't reset the right margin (i.e. leaves the text narrow), and floatflt has some trouble too which results in overlap between text and figures.
For the USE="doc -cairo" case I see five possible options (ordered by their intrusiveness): 1. Build the documentation without figures (i.e. nofigures.pdf) and output a warning. 2. Automatically disable doc with USE="-cairo" 3. Automatically enable cairo with USE="doc" 4. REQUIRED_USE="doc? ( cairo )" 5. Make cairo an unconditional dependency. (IMHO building without cairo should be strongly discouraged, as there won't be any PDF output without it.) Unless somebody will raise a good argument against it, I will implement the first option in a few days from now. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87d20a9ab246fda845fad3456e412a8b32fc8895 commit 87d20a9ab246fda845fad3456e412a8b32fc8895 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2017-11-19 11:18:34 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2017-11-19 11:46:15 +0000 sci-visualization/gnuplot: Fix building with USE="doc". - Do not require picins.sty. - Build documentation without figures if cairo is disabled. Closes: https://bugs.gentoo.org/577828 Package-Manager: Portage-2.3.14, Repoman-2.3.6 .../gnuplot/files/gnuplot-5.0.6-no-picins.patch | 27 ++++++++++++++++++++++ sci-visualization/gnuplot/gnuplot-5.0.6.ebuild | 15 ++++++++---- sci-visualization/gnuplot/gnuplot-5.0.9999.ebuild | 15 ++++++++---- 3 files changed, 49 insertions(+), 8 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=735a8c0df42dc1486356e695ad82017e23638593 commit 735a8c0df42dc1486356e695ad82017e23638593 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2019-07-16 09:07:38 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2019-07-16 09:08:12 +0000 sci-visualization/gnuplot: Fix build of documentation without gd. Bug: https://bugs.gentoo.org/577828 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Ulrich Müller <ulm@gentoo.org> sci-visualization/gnuplot/gnuplot-5.0.7.ebuild | 6 +++--- sci-visualization/gnuplot/gnuplot-5.2.6.ebuild | 4 ++-- sci-visualization/gnuplot/gnuplot-5.2.7.ebuild | 4 ++-- sci-visualization/gnuplot/gnuplot-5.2.9999.ebuild | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) |