After upgrading texlive-base to 20150521_1 last night (full pkg upgrade), latex can no longer find source files. This is happening to me on all three 10.1 machines I've updated.
randy@jorrvaskr ~/cumulus/common/cv % pdflatex westlund_cv.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (Web2C 2015) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
! LaTeX Error: File `article.cls' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)
Enter file name:
I believe this is the search path it has:
randy@jorrvaskr ~/cumulus/common/cv % kpsepath tex |tr ':' '\n'
I saw it run mktexlsr during the upgrade, but I'm not sure how kpathsea works.
article.cls exists in /usr/local/share/texmf-dist/tex/latex/base/.
Does it start working if you run "texhash" to remake the ls-R files? Just ran into the same issue and this seemed to resolve it for me. Also ran "texlinks" but not sure that did anything.
Running texhash fixed the problem. Thanks.
Should the bug be closed yet? Is this fixed in the port itself?
Oh, perhaps not. Here's everything I know:
Upgrading to 20150521_1 caused the problem on all my machines. I used two machines for testing.
When _2 was released, I upgraded both. Same Issue. I used ZFS to roll back the upgrade on one machine.
When _3 was released, I upgraded both. The _2 -> _3 upgrade resolved the problem automatically. The _1 -> _3 upgrade did not (requiring manual texhash).
texhash is a symlink to mktexlsr, which was run automatically as part of each upgrade. It looks like the port is doing the right thing; I'm not sure what would cause the lsr files to be incomplete sometimes.
I just created a fresh jail and installed _3 (via pkg install texlive-full). Everything works as expected.
It looks like whether you encounter this issue depends on your upgrade path. If anything, perhaps just adding a note to /usr/ports/UPDATING would be sufficient: "run texhash if you have any problems."