Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334361 - dev-tex/luatex - lualatex: fatal: kpse_init_format: Unknown format 56.
Summary: dev-tex/luatex - lualatex: fatal: kpse_init_format: Unknown format 56.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 23:26 UTC by Olof Frahm
Modified: 2010-10-01 01:38 UTC (History)
0 users

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


Attachments
testcase (foo.tex,105 bytes, text/plain)
2010-08-24 23:28 UTC, Olof Frahm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olof Frahm 2010-08-24 23:26:59 UTC
The dev-tex/luatex is installed using the system libkpathsea library, which up to the ~2009-r2 version of texlive-core doesn't contain the necessary changes for loading a compiled lua file.  The broken behaviour can be triggered by the supplied tex file, which tries to load a lua file, but breaks with "lualatex: fatal: kpse_init_format: Unknown format 56."  (It could certainly be triggered in a better way, but this example is short ...)

I think the upstream revision 16676, e.g. http://tug.org/svn/texlive/trunk/Build/source/texk/kpathsea/types.h?r1=16274&r2=16676 fixes this, but in the meantime, luatex isn't fully functional with either of the current texlive-core-2009-* versions.

In detail, the tex tree inside luatex has the "kpse_clua_format" constant from the above patch, but the system-wide libkpathsea hasn't, so while trying to load the file, luatex hands over its own constant (which is 56) to the system library (where 56 is kpse_last_format, that is "one past last index") and therefore breaks.

(tested on AMD64, packages pgf-2.00, texlive-core-2009-r2, luatex-0.60.2)
Comment 1 Olof Frahm 2010-08-24 23:28:46 UTC
Created attachment 244479 [details]
testcase
Comment 2 Alexis Ballier gentoo-dev 2010-10-01 01:38:30 UTC
should be fixed with luatex 0.63.0
its not using system libkpathsea anymore; I'll about using it again with texlive 2010