Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245493 - media-gfx/asymptote-1.47: fails emerge with latex USE_Flag; not defined TEXMFSITE variable in your TeX config
Summary: media-gfx/asymptote-1.47: fails emerge with latex USE_Flag; not defined TEXMF...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-04 09:21 UTC by bootneg
Modified: 2008-11-29 04:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bootneg 2008-11-04 09:21:24 UTC
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"
Comment 1 bootneg 2008-11-06 10:56:22 UTC
media-gfx/asymptote-1.49 behave the same way (compiles without latex USE and doesn't compile with latex USE)
Comment 2 Andrey Grozin gentoo-dev 2008-11-06 15:29:57 UTC
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.
Comment 3 bootneg 2008-11-07 13:15:37 UTC
(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.
Comment 4 Andrey Grozin gentoo-dev 2008-11-29 04:25:17 UTC
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.