'context --make' gives an error:

! LuaTeX error .../context/tex/texmf-context/tex/context/base/back-pdf.lua:86: attempt to index global 'nodepool' (a nil value)
stack traceback:
.../context/tex/texmf-context/tex/context/base/back-pdf.lua:86: in function 'code'
.../context/tex/texmf-context/tex/context/base/util-lua.lua:84: in function 'loadedluacode'
.../context/tex/texmf-context/tex/context/base/luat-env.lua:104: in function 'luafilechunk'
.../context/tex/texmf-context/tex/context/base/luat-cod.lua:45: in function 'registercode'
[string "\directlua "]:1: in main chunk.

system          > tex > error on line 35 in file /usr/local/context/tex/texmf-context/tex/context/base/back-pdf.mkiv: LuaTeX error  ...

25     \registerctxluafile{lpdf-wid}{1.001}
26     \registerctxluafile{lpdf-fld}{1.001}
27     \registerctxluafile{lpdf-mov}{1.001}
28     \registerctxluafile{lpdf-u3d}{1.001}
29     \registerctxluafile{lpdf-swf}{1.001}
30     \registerctxluafile{lpdf-tag}{1.001}
31     \registerctxluafile{lpdf-fmt}{1.001}
32     \registerctxluafile{lpdf-epd}{1.001}
33     \registerctxluafile{lpdf-epa}{1.001}
34     
35 >>  \registerctxluafile{back-pdf}{1.001} % some code will move to lpdf-*
36     
37     \unprotect
38     
39     %D We will minimize the number of calls to \PDF\ specific primitives
40     %D and delegate all management and injection of code to the backend.
41     %D
42     %D Here we initialize some internal quantities. We also protect them.
43     
44     \pdfoutput  1         \let\pdfoutput \undefined \newcount\pdfoutput  \pdfoutput  1
45     \pdfhorigin 1 true in \let\pdfhorigin\undefined \newdimen\pdfhorigin \pdfhorigin 1 true in


\registerctxluafile ...ua.registercode("#1","#2")}
                                                  
l.35 \registerctxluafile{back-pdf}{1.001}
                                        % some code will move to lpdf-*


Jannik

Am 02.08.2013 um 21:58 schrieb Hans Hagen <pragma@wxs.nl>:

function nodepool.pdfsetmatrix(rx,sx,sy,ry,tx,ty)
   local t = copy_node(pdfsetmatrix)
   if type(rx) == "string" then
       t.data = rx
   else
       t.data = formatters["%s %s %s %s"](rx or 1,sx or 0,sy or 0,ry or 1) -- todo: tx ty
   end
   return t
end