emerging media-gfx/asymptote-1.47 fails with the error Message: You haven't defined the TEXMFSITE variable in your TeX config. Please do so in the file /usr/local/texlive/2008/texmf.cnf Reproducible: Always Steps to Reproduce: 1. emerge asymptote with latex in USE 2. 3. Actual Results: it doesn't compile Expected Results: it should compile my USE configuration for asymptote is: USE="X boehm-gc emacs imagemagick latex* python vim-syntax -doc -examples-fftw -gsl -sigsegv" Without the latex USE-Flag it compiles flawlessly. My tex distribution is: app-text/texlive-2008 USE="X cjk -context -detex -dvi2tty -extra -games -graphics -humanities -jadetex -music -omega png -pstricks -publishers -science truetype -xetex -xindy xml -cyrillic -doc -tex4ht"
media-gfx/asymptote-1.49 behave the same way (compiles without latex USE and doesn't compile with latex USE)
Looks like you have mis-configured TeX. I emerged asymptote with USE=latex successfully on two Gentoo boxes, one with teTeX, one with TeXlive, without any problems. What happens if you say kpsewhich texmf.cnf On the teTeX box, I get /var/lib/texmf/web2c/texmf.cnf On the TeXlive box, I get /usr/share/texmf/web2c/texmf.cnf From the error message you got, I guess you will get /usr/local/texlive/2008/texmf.cnf Why? Have you installed TeXlive to /usr/local? Is it from Gentoo, or you installed it not via portage? In any case, texmf.cnf of any reasonably configured TeX should contain the line like TEXMFSITE = ... On my teTeX box, it is TEXMFSITE = /usr/share/texmf-site On my TeXlive box TEXMFSITE = $SELFAUTODIR/share/texmf-site If such a line is absent in your texmf.cnf, this is not properly configured. The command kpsewhich -var-value=TEXMFSITE extracts the value of TEXMFSITE from texmf.cnf; on both of my boxes, I get /usr/share/texmf-site asymptote puts its LaTeX stuff into this directory. If you haven't defined TEXMFSITE in your texmf.cnf, the asymptote ebuild does not know where to put this stuff. I have not inserted the TEXMFSITE line into texmf.cnf by hand (or by texconfig); it was there after emerging tetex or texlive, correspondingly.
(In reply to comment #2) > What happens if you say > > kpsewhich texmf.cnf As user I get /usr/share/texmf/web2c/texmf.cnf and as root /usr/local/texlive/2008/texmf.cnf > On the teTeX box, I get > /var/lib/texmf/web2c/texmf.cnf > On the TeXlive box, I get > /usr/share/texmf/web2c/texmf.cnf > Why? Have you installed TeXlive to /usr/local? Is it from Gentoo, or you > installed it not via portage? In history I installed texlive-2008 as non gentoo version (from developer homepage) (wasn't in portage at this time). Later I installed texlive-2007 with portage because of dependency problems I didn't solved by hand. This texlive-2007 is now updated to texlive-2008 by portage. The last version compiled at leased 2 times, because I added some more useflags. > In any case, texmf.cnf of any reasonably configured TeX should contain the > line > On my teTeX box, it is > TEXMFSITE = /usr/share/texmf-site > On my TeXlive box > TEXMFSITE = $SELFAUTODIR/share/texmf-site > The command > > kpsewhich -var-value=TEXMFSITE As user /usr/share/texmf-site as root nothing. > extracts the value of TEXMFSITE from texmf.cnf; on both of my boxes, I get > /usr/share/texmf-site OK I see, that this is no Gentoo problem in general, but can you say me how I set the variables correct for root, because they are set correct for a user but I have to emerge with root.
After some discussion at gentoo-dev, we decided not to use this complicated way of finding the texmf-site tree, but to hard-code /usr/share/texmf-site. This is done starting from asymptote-1.53. Now installation of this package no longer depends on local user's configuration. You can install it without problems.