Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688438 - dev-tex/pgf: PGF/TikZ not working with lualatex and texlive 2019
Summary: dev-tex/pgf: PGF/TikZ not working with lualatex and texlive 2019
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-21 14:28 UTC by gerion
Modified: 2019-07-17 11:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pgf-3.1.3.ebuild (file_688438.txt,1.30 KB, text/plain)
2019-06-29 14:24 UTC, Nils Freydank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gerion 2019-06-21 14:28:22 UTC
When updating to texlive-2019 PGF does not work anymore.

Minimal example is:
\documentclass{beamer}
\begin{document}
\end{document}

Translate with "latexmk -pdflua file.tex".

This is due a false header line in the pgfsys-luatex.def file, that was introduced in commit 1393c21c9de2d431a071332b45d5460fcb26ead1 to fix bug https://bugs.gentoo.org/607642.

(Because texlive 2019 needs the newer version.)

Also dev-tex/pgf has a version bump. Maybe a solution is to version bump dev-tex/pgf and make this a blocker for texlive-2017 but a dependency for texlive-2019.
Comment 1 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-06-21 18:59:30 UTC
well your comand is invalid, and I con not reproduce anything strange with the correct one.
Comment 2 gerion 2019-06-21 23:07:05 UTC
Sorry, I forgot: The bug occurs only in dev-tex/pgf-3.1.

Here a full log (on a different Gentoo PC):
p% ls                
tmp.tex
% cat tmp.tex                    
\documentclass{beamer}
\begin{document}
\end{document}
% latexmk -pdflua tmp.tex
Latexmk: This is Latexmk, John Collins, 25 May 2018, version: 4.56.
Latexmk: applying rule 'lualatex'...
Rule 'lualatex': Rules & subrules not known to be previously run:
   lualatex
Rule 'lualatex': The following rules & subrules became out-of-date:
      'lualatex'
------------
Run number 1 of rule 'lualatex'
------------
------------
Running 'lualatex  -recorder  "tmp.tex"'
------------
This is LuaTeX, Version 1.10.0 (TeX Live 2019) 
 restricted system commands enabled.
(./tmp.tex
LaTeX2e <2018-12-01>

luaotfload | main : initialization completed in 0.113 seconds
(/usr/share/texmf-site/tex/latex/beamer/base/beamer.cls
Document Class: beamer 2017/01/23 v3.41 A class for typesetting presentations
(/usr/share/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/share/texmf-site/tex/latex/beamer/base/beamerbasemodes.sty
(/usr/share/texmf-site/tex/latex/beamer/base/beamerbasedecode.sty))
(/usr/share/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texmf-site/tex/latex/beamer/base/beamerbaseoptions.sty
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty))
(/usr/share/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/share/texmf-dist/tex/latex/base/size11.clo)
(/usr/share/texmf-site/tex/latex/pgf/basiclayer/pgfcore.sty
(/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/graphics-cfg/graphics.cfg)
(/usr/share/texmf-dist/tex/latex/graphics-def/luatex.def)))
(/usr/share/texmf-site/tex/latex/pgf/systemlayer/pgfsys.sty
(/usr/share/texmf-site/tex/latex/pgf/utilities/pgfrcs.sty
(/usr/share/texmf-site/tex/generic/pgf/utilities/pgfutil-common.tex
(/usr/share/texmf-site/tex/generic/pgf/utilities/pgfutil-common-lists.tex))
(/usr/share/texmf-site/tex/generic/pgf/utilities/pgfutil-latex.def
(/usr/share/texmf-dist/tex/latex/ms/everyshi.sty))
(/usr/share/texmf-site/tex/generic/pgf/utilities/pgfrcs.code.tex
(/usr/share/texmf-site/tex/generic/pgf/pgf.revision.tex)))
(/usr/share/texmf-site/tex/generic/pgf/systemlayer/pgfsys.code.tex
(/usr/share/texmf-site/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/share/texmf-site/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex))
(/usr/share/texmf-site/tex/generic/pgf/systemlayer/pgf.cfg)
(/usr/share/texmf-site/tex/generic/pgf/systemlayer/pgfsys-luatex.def

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.10 \ProvidesFileRCS $H
                      eader: /cvsroot/pgf/pgf/generic/pgf/systemlayer/pgfsys...

? X
 359 words of node memory still in use:
   2 hlist, 1 rule, 1 local_par, 1 dir, 1 glue, 3 kern, 1 glyph, 3 attribute, 4
2 glue_spec, 3 attribute_list, 1 temp, 1 if_stack nodes
   avail lists: 1:1,2:8,3:1,4:2,7:1

warning  (pdf backend): no pages of output.
Transcript written on tmp.log.
=== TeX engine is 'LuaTeX'
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  lualatex: Command for 'lualatex' gave return code 1
      Refer to 'tmp.log' for details
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.
% LANG=en eix -I latex-beamer
[I] dev-tex/latex-beamer
     Available versions:  3.36 (~)3.41 {doc examples}
     Installed versions:  3.41(01:33:49 12/16/17)(-doc -examples)
     Homepage:            https://github.com/josephwright/beamer
     Description:         LaTeX class for creating presentations using a video projector

% LANG=en eix -I pgf         
[I] dev-tex/pgf
     Available versions:  3.0.1-r1 (~)3.1 {doc source}
     Installed versions:  3.1(00:51:30 06/22/19)(-doc -source)
     Homepage:            https://sourceforge.net/projects/pgf
     Description:         The TeX Portable Graphic Format

% LANG=en eix -I texlive-core
[I] app-text/texlive-core
     Available versions:  2017-r4 (~)2019-r4 {X cjk doc +luajittex source tk xetex}
     Installed versions:  2019-r4(23:59:31 06/19/19)(X luajittex xetex -cjk -doc -source -tk)
     Homepage:            https://tug.org/texlive/
     Description:         A complete TeX distribution

When analyzing the file /usr/share/texmf-site/tex/generic/pgf/systemlayer/pgfsys-luatex.def it is the Gentoo copied version and not the one defined upstream:
https://github.com/pgf-tikz/pgf/blob/master/tex/generic/pgf/systemlayer/pgfsys-luatex.def#L11

What do you mean with invalid?
Comment 3 Markus Walter 2019-06-24 08:02:30 UTC
I see the same problem. My reproducer is the following:

====================================
\documentclass{article}
\usepackage{tikz}
\begin{document}
\end{document}
====================================

which causes 

$ lualatex reproducer.tex 
This is LuaTeX, Version 1.10.0 (TeX Live 2019) 
 restricted system commands enabled.
(./reproducer.tex
LaTeX2e <2018-12-01>
<<<snip 20 lines removed>>>
(/usr/share/texmf-site/tex/generic/pgf/systemlayer/pgfsys-luatex.def

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.10 \ProvidesFileRCS $H
                      eader: /cvsroot/pgf/pgf/generic/pgf/systemlayer/pgfsys...

?
Comment 4 Nils Freydank 2019-06-29 13:39:34 UTC
Hi,

I can confirm the bug. If I just drop the patch/the lualatex file in ${FILES}
it looks as lualatex works fine in general.
Comment 5 Nils Freydank 2019-06-29 14:24:21 UTC
Created attachment 581358 [details]
pgf-3.1.3.ebuild

This version bump is a draft that works fine on my Gentoo host (~amd64, texlive-2019).

Could someone please test if this works with texlive-2017 aswell, so we could avoid the blocker at all?
Comment 6 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-07-17 11:24:01 UTC
I've added 3.1.4. Should be fine.