Bug 201768 - print/texlive-base: cannot find latex files
Summary: print/texlive-base: cannot find latex files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Hiroki Sato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-22 17:53 UTC by Randy Westlund
Modified: 2015-08-13 17:09 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (hrs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Westlund 2015-07-22 17:53:30 UTC
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
(./westlund_cv.tex
LaTeX2e <2015/01/01>
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'
.
/home/randy/.texlive2015/texmf-config/tex/kpsewhich//
/home/randy/.texlive2015/texmf-var/tex/kpsewhich//
/home/randy/texmf/tex/kpsewhich//
!!/usr/local/share/texmf-config/tex/kpsewhich//
!!/usr/local/share/texmf-var/tex/kpsewhich//
!!/usr/local/share/texmf-local/tex/kpsewhich//
!!/usr/local/share/texmf-dist/tex/kpsewhich//
/home/randy/.texlive2015/texmf-config/tex/generic//
/home/randy/.texlive2015/texmf-var/tex/generic//
/home/randy/texmf/tex/generic//
!!/usr/local/share/texmf-config/tex/generic//
!!/usr/local/share/texmf-var/tex/generic//
!!/usr/local/share/texmf-local/tex/generic//
!!/usr/local/share/texmf-dist/tex/generic//
/home/randy/.texlive2015/texmf-config/tex///
/home/randy/.texlive2015/texmf-var/tex///
/home/randy/texmf/tex///
!!/usr/local/share/texmf-config/tex///
!!/usr/local/share/texmf-var/tex///
!!/usr/local/share/texmf-local/tex///
!!/usr/local/share/texmf-dist/tex///

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/.
Comment 1 Roger Leigh 2015-08-11 09:04:22 UTC
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.

Regards,
Roger
Comment 2 Randy Westlund 2015-08-13 02:50:17 UTC
Running texhash fixed the problem.  Thanks.
Comment 3 Roger Leigh 2015-08-13 07:00:11 UTC
Should the bug be closed yet?  Is this fixed in the port itself?
Comment 4 Randy Westlund 2015-08-13 17:09:35 UTC
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."