[lltx] luatexbase-loader having problems with symbolic links
Philipp Gesang
Philipp.Gesang at alumni.uni-heidelberg.de
Fri Aug 16 23:31:31 CEST 2013
This comment from the BUGS file in the kpathsea dir of the Luatex
source tree might interest you:
* Your files reside in a directory that is only pointed to via a
symbolic link, in a leaf directory and is not listed in `ls-R'.
Unfortunately, Kpathsea's subdirectory searching has an
irremediable deficiency: If a directory D being searched for
subdirectories contains plain files and symbolic links to other
directories, but no true subdirectories, D will be considered a
leaf directory, i.e., the symbolic links will not be followed.
*Note Subdirectory expansion::.
You can work around this problem by creating an empty dummy
subdirectory in D. Then D will no longer be a leaf, and the
symlinks will be followed.
I just checked and indeed, creating a “real” directory where the
directory is symlinked to does make kpse find the files even
after initialising it.
Hth,
Philipp
···<date: 2013-08-16, Friday>···<from: Philipp Gesang>···
> ···<date: 2013-08-16, Friday>···<from: Wolfgang Jeltsch>···
>
> > Hi,
> >
> > can you *please* look (again) at this bug report I sent on 3 August?
>
> Hi Wolfgang,
>
> this is a consequence of initializing kpathsea. Your example can
> be condensed to:
>
>
> \documentclass {article}
> \usepackage {pkg1}
> \directlua {kpse.set_program_name "luatex"}
> \usepackage {pkg2}
>
> \begin{document} \ldots \end{document}
>
> Once kpse is up, files in symlinked dirs aren’t resolved anymore.
> Note that this is consistent with the behavior of kpsewhich. I
> haven’t much experience with the kpse library. There is not much
> to configure about it from within Luatex, and unless you are
> willing to go at great lengths to reimplement all file locators
> (like Context) it can’t be avoided.
>
> Best,
> Philipp
>
>
> >
> > Best wishes,
> > Wolfgang
> >
> > Am Samstag, den 03.08.2013, 13:20 +0300 schrieb Wolfgang Jeltsch:
> > > Hi,
> > >
> > > I’m working under Linux and use TeXlive 2013, which contains
> > > luatexbase-loader v0.6 from 11 May 2013.
> > >
> > > I have some symbolic links under $TEXMFHOME/tex/latex that point to
> > > directories that contain LaTeX packages. Usually, I can import these
> > > packages without problems using \usepackage. However when I import
> > > luatexbase-loader, then import of the abovementioned local packages
> > > isn’t possible anymore.
> > >
> > > For example, let’s assume that I have two packages called abc and xyz
> > > under directories linked to from $TEXMFHOME/tex/latex. Consider the
> > > following LaTeX source:
> > >
> > > \documentclass{article}
> > >
> > > \usepackage{abc}
> > > \usepackage{luatexbase-loader}
> > > \usepackage{xyz}
> > >
> > > \begin{document}
> > >
> > > \ldots
> > >
> > > \end{document}
> > >
> > > Processing this source with LuaLaTeX gives me the following error
> > > message:
> > >
> > > ! LaTeX Error: File `xyz.sty' not found.
> > >
> > > Could this problem maybe be fixed?
> > >
> > > Best wishes,
> > > Wolfgang
> > >
> >
> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://tug.org/pipermail/lualatex-dev/attachments/20130816/8e0bf0f4/attachment-0001.bin>
More information about the lualatex-dev
mailing list