<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">Am 17.05.2018 um 00:30 schrieb Karl
Berry:<br>
</div>
<blockquote type="cite"
cite="mid:201805162230.w4GMUJjb017728@freefriends.org">
<pre wrap=""> [fake dir already mentioned]
Right, sorry.
There is no intentional change in the path search list, and I doubt (but
don't know for a fact) that Debian made such a change either.
BTW, it does not reproduce for me with native TL.
lualatex finds the package in /usr/share/texlive
rather than that in ~/texmf. (While still kpsewhich finds the one
installed in $TEXMFHOME).
Anything I have to update or can do to investigate?
1) Since lualatex is involved, I'd start with mv ~/.texlive2018{,-prev}
and see if it does any better. E.g., I wonder if the move of the
lyluatex files in the update obsoleted its cache, but lualatex didn't
notice. (The behavior of the lua(la)tex caching is unknown to me.)</pre>
</blockquote>
<br>
When your post arrived I was just busy trying to remove *all* TeX
from my system, since I suspected the issue might actually be caused
by the fact that I have a home partition that has survived a number
of installations over the years ...<br>
<br>
After that I newly installed TeXLive from the downloaded installer.<br>
Unfortunately still the same result.<br>
I double-checked compiling documents with other custom packages that
are accessed through that path, and they work, BTW, so the problem
is clearly about the TeXLive version of the package being used
first/instead.<br>
<br>
<br>
<blockquote type="cite"
cite="mid:201805162230.w4GMUJjb017728@freefriends.org">
<pre wrap="">
2) The output of kpsewhich -var-value TEXMF might be interesting to
ensure that $TEXMFHOME really does appear before $TEXMFDIST. I get:
{{}/u/karl/.texlive2018/texmf-config,/u/karl/.texlive2018/texmf-var,/u/karl/texmf,!!/usr/local/texlive/texmf-local,!!/usr/local/texlive/2018/texmf-config,!!/usr/local/texlive/2018/texmf-var,!!/usr/local/texlive/2018/texmf-dist}
(The empty braces at the beginning look weird but are ok.)</pre>
</blockquote>
<br>
Well, my output looks similar and therefore correct too:<br>
<br>
{{}/home/uliska/.texlive2018/texmf-config,/home/uliska/.texlive2018/texmf-var,/home/uliska/texmf,!!/usr/local/texlive/texmf-local,!!/usr/local/texlive/2018/texmf-config,!!/usr/local/texlive/2018/texmf-var,!!/usr/local/texlive/2018/texmf-dist}<br>
<br>
<blockquote type="cite"
cite="mid:201805162230.w4GMUJjb017728@freefriends.org">
<pre wrap="">
3) You can see exactly what is being searched with
lualatex -kpathsea-debug=-1 lyluatex.sty </dev/null 2>/tmp/debug
The output will be lengthy but should be definitive. Feel free to send
it to me (gzipped) if need be. --best, karl.
</pre>
</blockquote>
<br>
I've done so.<br>
When I search the result for lyluatex, the first occurences are
those:<br>
<br>
<blockquote>kdebug:kpse_find_file: searching for lyluatex.sty of
type tex (from texmf.cnf)<br>
kdebug:hash_lookup(try_std_extension_first.lualatex) => (nil)<br>
kdebug:hash_lookup(try_std_extension_first) => t<br>
kdebug:variable: try_std_extension_first = t<br>
kdebug:start generic search(files=[lyluatex.sty], must_exist=0,
find_all=0,
path=.:/home/uliska/.texlive2018/texmf-config/tex/lualatex//:/home/uliska/.texlive2018/texmf-var/tex/lualatex//:/home/uliska/texmf/tex/lualatex//:!!/usr/local/texlive/texmf-local/tex/lualatex//:!!/usr/local/texlive/2018/texmf-config/tex/lualatex//:!!/usr/local/texlive/2018/texmf-var/tex/lualatex//:!!/usr/local/texlive/2018/texmf-dist/tex/lualatex//:
[etc.]<br>
</blockquote>
<br>
So it seems the *first* location is ~/.texlive2018 but if I'm not
completely mistaken there is nothing in there except a font cache:<br>
<br>
<blockquote>~$ cd .texlive2018/<br>
<a class="moz-txt-link-abbreviated" href="mailto:uliska@elitebook-debian:~/.texlive2018$">uliska@elitebook-debian:~/.texlive2018$</a> <br>
<a class="moz-txt-link-abbreviated" href="mailto:uliska@elitebook-debian:~/.texlive2018$">uliska@elitebook-debian:~/.texlive2018$</a> ls<br>
texmf-var<br>
<a class="moz-txt-link-abbreviated" href="mailto:uliska@elitebook-debian:~/.texlive2018$">uliska@elitebook-debian:~/.texlive2018$</a> ls -l<br>
insgesamt 4<br>
drwxr-xr-x 4 uliska uliska 4096 Mai 17 09:15 texmf-var<br>
<a class="moz-txt-link-abbreviated" href="mailto:uliska@elitebook-debian:~/.texlive2018$">uliska@elitebook-debian:~/.texlive2018$</a> ls -la<br>
insgesamt 12<br>
drwxr-xr-x 3 uliska uliska 4096 Mai 17 08:39 .<br>
drwxr-xr-x 91 uliska uliska 4096 Mai 17 09:00 ..<br>
drwxr-xr-x 4 uliska uliska 4096 Mai 17 09:15 texmf-var<br>
<a class="moz-txt-link-abbreviated" href="mailto:uliska@elitebook-debian:~/.texlive2018$">uliska@elitebook-debian:~/.texlive2018$</a> cd texmf-var/<br>
<a class="moz-txt-link-abbreviated" href="mailto:uliska@elitebook-debian:~/.texlive2018/texmf-var$">uliska@elitebook-debian:~/.texlive2018/texmf-var$</a> ls -la<br>
insgesamt 16<br>
drwxr-xr-x 4 uliska uliska 4096 Mai 17 09:15 .<br>
drwxr-xr-x 3 uliska uliska 4096 Mai 17 08:39 ..<br>
drwxr-xr-x 3 uliska uliska 4096 Mai 17 08:39 luatex-cache<br>
drwxr-xr-x 2 uliska uliska 4096 Mai 17 08:51 texdoc<br>
<a class="moz-txt-link-abbreviated" href="mailto:uliska@elitebook-debian:~/.texlive2018/texmf-var$">uliska@elitebook-debian:~/.texlive2018/texmf-var$</a> cd luatex-cache/<br>
<a class="moz-txt-link-abbreviated" href="mailto:uliska@elitebook-debian:~/.texlive2018/texmf-var/luatex-cache$">uliska@elitebook-debian:~/.texlive2018/texmf-var/luatex-cache$</a> ls
-la<br>
insgesamt 12<br>
drwxr-xr-x 3 uliska uliska 4096 Mai 17 08:39 .<br>
drwxr-xr-x 4 uliska uliska 4096 Mai 17 09:15 ..<br>
drwxr-xr-x 4 uliska uliska 4096 Mai 17 08:40 generic<br>
<a class="moz-txt-link-abbreviated" href="mailto:uliska@elitebook-debian:~/.texlive2018/texmf-var/luatex-cache$">uliska@elitebook-debian:~/.texlive2018/texmf-var/luatex-cache$</a> cd
generic/<br>
<a class="moz-txt-link-abbreviated" href="mailto:uliska@elitebook-debian:~/.texlive2018/texmf-var/luatex-cache/generic$">uliska@elitebook-debian:~/.texlive2018/texmf-var/luatex-cache/generic$</a>
ls -la<br>
insgesamt 16<br>
drwxr-xr-x 4 uliska uliska 4096 Mai 17 08:40 .<br>
drwxr-xr-x 3 uliska uliska 4096 Mai 17 08:39 ..<br>
drwxr-xr-x 3 uliska uliska 4096 Mai 17 08:40 fonts<br>
drwxr-xr-x 2 uliska uliska 4096 Mai 17 08:50 names<br>
</blockquote>
<br>
The next location is /home/uliska/texmf/tex/lualatex/, and I think
*there* my 'local' package should have been found, since<br>
<br>
<blockquote>~/texmf/tex/lualatex$ ls -la<br>
insgesamt 12<br>
drwxr-xr-x 3 uliska uliska 4096 Mai 16 16:36 .<br>
drwxr-xr-x 4 uliska uliska 4096 Mai 16 16:35 ..<br>
drwxr-xr-x 2 uliska uliska 4096 Mai 16 16:35 .dummy<br>
lrwxrwxrwx 1 uliska uliska 22 Mai 16 16:36 latex-git ->
/home/uliska/git/latex<br>
</blockquote>
and lyluatex is a subdirectory of this 'latex-git'.<br>
<br>
Looking for the exact location of the custom package file gives
this:<br>
<br>
<blockquote>/tmp$ grep -n "latex-git/lyluatex/lyluatex.sty"
debug-lyluatex <br>
1213:kdebug:hash_lookup(/home/uliska/texmf/tex/lualatex/latex-git/lyluatex/lyluatex.sty)
=> (nil)<br>
1214:kdebug:dir_links(/home/uliska/texmf/tex/lualatex/latex-git/lyluatex/lyluatex.sty)
=> -1<br>
1945:kdebug:returning from generic search([lyluatex.sty]) =>
/home/uliska/texmf/tex/lualatex/latex-git/lyluatex/lyluatex.sty<br>
1949:kdebug:kpse_find_file: searching for
/home/uliska/texmf/tex/lualatex/latex-git/lyluatex/lyluatex.sty of
type tex (from texmf.cnf)<br>
1953:kdebug:start generic
search(files=[/home/uliska/texmf/tex/lualatex/latex-git/lyluatex/lyluatex.sty],
must_exist=0, find_all=0,
path=.:/home/uliska/.texlive2018/texmf-config/tex/lualatex//:/home/uliska/.texlive2018/texmf-var/tex/lualatex//:/home/uliska/texmf/tex/lualatex//:!!/usr/local/texlive/texmf-local/tex/lualatex//:!!/usr/local/texlive/2018/texmf-config/tex/lualatex//:!!/usr/local/texlive/2018/texmf-var/tex/lualatex//:!!/usr/local/texlive/2018/texmf-dist/tex/lualatex//:/home/uliska/.texlive2018/texmf-config/tex/latex//:/home/uliska/.texlive2018/texmf-var/tex/latex//:/home/uliska/texmf/tex/latex//:!!/usr/local/texlive/texmf-local/tex/latex//:!!/usr/local/texlive/2018/texmf-config/tex/latex//:!!/usr/local/texlive/2018/texmf-var/tex/latex//:!!/usr/local/texlive/2018/texmf-dist/tex/latex//:/home/uliska/.texlive2018/texmf-config/tex/luatex//:/home/uliska/.texlive2018/texmf-var/tex/luatex//:/home/uliska/texmf/tex/luatex//:!!/usr/local/texlive/texmf-local/tex/luatex//:!!/usr/local/texlive/2018/texmf-config/tex/luatex//:!!/usr/local/texlive/2018/texmf-var/tex/luatex//:!!/usr/local/texlive/2018/texmf-dist/tex/luatex//:/home/uliska/.texlive2018/texmf-config/tex/generic//:/home/uliska/.texlive2018/texmf-var/tex/generic//:/home/uliska/texmf/tex/generic//:!!/usr/local/texlive/texmf-local/tex/generic//:!!/usr/local/texlive/2018/texmf-config/tex/generic//:!!/usr/local/texlive/2018/texmf-var/tex/generic//:!!/usr/local/texlive/2018/texmf-dist/tex/generic//:/home/uliska/.texlive2018/texmf-config/tex///:/home/uliska/.texlive2018/texmf-var/tex///:/home/uliska/texmf/tex///:!!/usr/local/texlive/texmf-local/tex///:!!/usr/local/texlive/2018/texmf-config/tex///:!!/usr/local/texlive/2018/texmf-var/tex///:!!/usr/local/texlive/2018/texmf-dist/tex///)<br>
1954:kdebug:
absolute_search(/home/uliska/texmf/tex/lualatex/latex-git/lyluatex/lyluatex.sty)
=>
/home/uliska/texmf/tex/lualatex/latex-git/lyluatex/lyluatex.sty<br>
1955:kdebug:returning from generic
search([/home/uliska/texmf/tex/lualatex/latex-git/lyluatex/lyluatex.sty])
=>
/home/uliska/texmf/tex/lualatex/latex-git/lyluatex/lyluatex.sty<br>
1956:kdebug:fopen(/home/uliska/texmf/tex/lualatex/latex-git/lyluatex/lyluatex.sty,
rb) => 0x361c580<br>
4409:kdebug:hash_lookup(/home/uliska/texmf/tex/latex/latex-git/lyluatex/lyluatex.sty)
=> (nil)<br>
4410:kdebug:dir_links(/home/uliska/texmf/tex/latex/latex-git/lyluatex/lyluatex.sty)
=> -1<br>
6968:kdebug:hash_lookup(/home/uliska/texmf/tex/lualatex/latex-git/lyluatex/lyluatex.sty)
=> -1<br>
7768:kdebug:hash_lookup(/home/uliska/texmf/tex/latex/latex-git/lyluatex/lyluatex.sty)
=> -1<br>
</blockquote>
<br>
while<br>
<br>
<blockquote>/tmp$ grep "/usr/*/lyluatex" debug-lyluatex <br>
</blockquote>
returns nothing.<br>
<br>
I think all of this clearly shows that kpsewhich finds the package
in the ~/texmf path.<br>
<br>
On the other hand, if I compile a MWE that just loads lyluatex like
this<br>
<blockquote>\documentclass{article}<br>
\usepackage{lyluatex}<br>
\begin{document}<br>
Test<br>
\end{document}<br>
<br>
</blockquote>
I get the output<br>
<br>
<blockquote>$ lualatex mwe-lyluatex.tex <br>
This is LuaTeX, Version 1.07.0 (TeX Live 2018) <br>
restricted system commands enabled.<br>
(./mwe-lyluatex.tex<br>
LaTeX2e <2018-04-01> patch level 4<br>
(using write cache:
/home/uliska/.texlive2018/texmf-var/luatex-cache/generic)(u<br>
sing read cache:
/usr/local/texlive/2018/texmf-var/luatex-cache/generic /home/u<br>
liska/.texlive2018/texmf-var/luatex-cache/generic)<br>
luaotfload | main : initialization completed in 0.528 seconds<br>
(/usr/local/texlive/2018/texmf-dist/tex/latex/base/article.cls<br>
Document Class: article 2014/09/29 v1.4h Standard LaTeX document
class<br>
(/usr/local/texlive/2018/texmf-dist/tex/latex/base/size10.clo(load
luc: /home/u<br>
liska/.texlive2018/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.l<br>
uc)))
(/usr/local/texlive/2018/texmf-dist/tex/luatex/lyluatex/lyluatex.sty<br>
(/usr/local/texlive/2018/texmf-dist/tex/luatex/luatexbase/luatexbase.sty<br>
...<br>
</blockquote>
which clearly shows that lyluatex is loaded from /usr/local/texlive.<br>
<br>
Is there anything more I can investigate? I've also attached the log
file, as compressing reduced the size from >8M to 200K.<br>
<br>
Any further pointers or ideas would be highly appreciated. I really
don't want to be forced to remove the texlive-music collection just
to be able to run my own packages from the local repositories.<br>
<br>
Thanks<br>
Urs<br>
<br>
<blockquote type="cite"
cite="mid:201805162230.w4GMUJjb017728@freefriends.org">
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>