Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#25567 closed defect (fixed)

pgf 2.0 not recognized by texlive path when installed

Reported by: joseph.gaeddert@… Owned by: nerdling (Jeremy L)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: drkp (Dan Ports)
Port: pgf

Description

After recently upgrading texlive, and pgf (2.0), the LaTeX distro no longer recognizes the pgf and tikz files in the path. When compiling a pgf document with \usepackage{pgf} the following error is given

(/opt/local/share/texmf-texlive-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/opt/local/share/texmf-texlive-dist/tex/latex/base/size10.clo))

! LaTeX Error: File `pgf.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:

The fix usually involves rehashing the tex directories (e.g. texhash) but this does not seem to work. Normally I would consider this an upstream problem, but earlier versions of the Portfiles did not result in errors.

Change History (9)

comment:1 Changed 10 years ago by joseph.gaeddert@…

Cc: joseph.gaeddert@… removed

Cc Me!

comment:2 Changed 10 years ago by joseph.gaeddert@…

This ticket is similar to #25561 which was fixed with r69466. This might be an easy fix by changing the pgf Portfile (line 32 or nearby) from

set latex_local ${destroot}${prefix}/share/texmf-local

to

set latex_local ${destroot}${prefix}/share/texmf-texlive

comment:3 Changed 10 years ago by mf2k (Frank Schima)

Keywords: pgf tikz texlive latex tex removed
Owner: changed from macports-tickets@… to snc@…

Don't forget to Cc the maintainer.

comment:4 Changed 10 years ago by drkp (Dan Ports)

Cc: dports@… added

Cc Me!

comment:5 Changed 10 years ago by drkp (Dan Ports)

You're right -- I changed the local texmf tree to $prefix/share/texmf instead of texmf-local when I moved texlive into $prefix/share/texmf-texlive for TL 2009. Ports referring to texmf-local should be updated to use texmf (not texmf-texlive, that's just for files installed by texlive)

comment:6 Changed 10 years ago by drkp (Dan Ports)

Also worth noting is that these paths are available as $texlive_texmflocal etc. if you use PortGroup texlive (it just sets these variables by default, so safe to include in portfiles)

Now that I think about it, though, pTeX might install its texmf tree into $prefix/share/texmf, in which case putting local files in there is not going to be a great idea. If so, one or the other should be changed.

comment:7 Changed 10 years ago by nerdling (Jeremy L)

Status: newassigned

comment:8 Changed 10 years ago by nerdling (Jeremy L)

Resolution: fixed
Status: assignedclosed

Updated in r69511.

comment:9 Changed 10 years ago by joseph.gaeddert@…

I'm actually now having the same problem with preview.sty not being found. I wonder if it's a similar issue with a different package.

Note: See TracTickets for help on using tickets.