[lltx] luatexbase-loader having problems with symbolic links
Wolfgang Jeltsch
g9ks157k at acme.softbase.org
Sat Aug 17 17:56:31 CEST 2013
Hi Philipp,
thanks a lot for this information. I created a dummy directory in my
directory of symlinks, and now all packages are found.
Best wishes,
Wolfgang
Am Freitag, den 16.08.2013, 23:31 +0200 schrieb Philipp Gesang:
> 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
> > > >
> > >
> > >
>
>
More information about the lualatex-dev
mailing list