<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>196167</bug_id>
          
          <creation_ts>2007-10-17 13:25 0000</creation_ts>
          <short_desc>app-text/texlive-core-2007 - texmf.cnf variables</short_desc>
          <delta_ts>2007-10-19 19:54:37 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>195815</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>oda@gmx.li</reporter>
          <assigned_to>tex@gentoo.org</assigned_to>
          <cc>aballier@gentoo.org</cc>
    
    <cc>fauli@gentoo.org</cc>
    
    <cc>levertond@googlemail.com</cc>
    
    <cc>schubert.seb@googlemail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>oda@gmx.li</who>
            <bug_when>2007-10-17 13:25:50 0000</bug_when>
            <thetext>In texlive-2007 (file /etc/texmf/texmf.d/00texmf.cnf) the variables are set as follows.

TEXMFLOCAL = /usr/share/texmf-local
TEXMFSYSVAR = /usr/share/texmf-var
TEXMFSYSCONFIG = /usr/share/texmf-config

In earlier teTeX-3 versions they were set as

TEXMFLOCAL = /usr/local/share/texmf
TEXMFSYSVAR = /var/lib/texmf
TEXMFSYSCONFIG = /var/lib/texmf

Debian sets it as

TEXMFLOCAL = /usr/local/share/texmf
TEXMFSYSVAR = /var/lib/texmf
TEXMFSYSCONFIG = /etc/texmf

I would prefer the last one.

Beside that I needed to add the following (taken from debian) to 00texmf.cnf for makempx to work properly.

% Used by makempx to run TeX.  We use &quot;etex&quot; because MetaPost is
% expecting DVI, and not &quot;tex&quot; because we want first line parsing.
TEX = etex</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2007-10-17 13:43:47 0000</bug_when>
            <thetext>While I&apos;m ok for changing texmflocal, it seems more sane to have it in /usr/local,
changing texmf-var would mean changing the eclass, perhaps breaking file ownership because fmtutil will rebuild the formats in the new texmf var etc. I&apos;d say no to this one.


And what was the problem with makempx ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>oda@gmx.li</who>
            <bug_when>2007-10-17 14:02:39 0000</bug_when>
            <thetext>I am using latexmp to typeset LaTeX-labels in metapost. The following minimal-example gives the error:

This is MetaPost, Version 0.993 (Web2C 7.5.6)
(test.mp (/usr/share/texmf-dist/metapost/latexmp/latexmp.mp) (ltx-test.tmpmakempx: Command failed: tex --parse-first-line --interaction=nonstopmode mpxerr.tex; see mpxerr.log

&gt;&gt; ltx-test.tmp
&gt;&gt; ltx-test.mpx
! Unable to make mpx file.
l.7 latexmp_picture[1]:= btex
                              $x^2$ etex ;
Transcript written on test.log.

With &quot;TEX = etex&quot; in texmf.cnf it works.

-- example: test.mp --
verbatimtex
input latexmp;

beginfig(1);
label(textext(&quot;$x^2$&quot;),origin);
endfig;

end.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>oda@gmx.li</who>
            <bug_when>2007-10-17 14:07:40 0000</bug_when>
            <thetext>Sorry, but there was an error in my posted example. Here is the correct one.

-- example: test.mp --
input latexmp;

beginfig(1);
label(textext(&quot;$x^2$&quot;),origin);
endfig;

end.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-10-17 14:42:38 0000</bug_when>
            <thetext>From devmanual (http://devmanual.gentoo.org/general-concepts/filesystem/index.html):

&quot;/usr/local: Non-portage applications. Ebuilds must not install here.&quot;

 So the answer is clear. :)  CONFIG in /etc/ sounds logical, Debian is really strict here.  Emacs team was thinking about moving their config directory to /etc, too, but we decided that the change would be very invasive.  TeXLive could do it though as it is a real new package.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2007-10-17 14:56:36 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; From devmanual
&gt; (http://devmanual.gentoo.org/general-concepts/filesystem/index.html):
&gt; 
&gt; &quot;/usr/local: Non-portage applications. Ebuilds must not install here.&quot;
&gt; 
&gt;  So the answer is clear. :)  CONFIG in /etc/ sounds logical, Debian is really
&gt; strict here.  Emacs team was thinking about moving their config directory to
&gt; /etc, too, but we decided that the change would be very invasive.  TeXLive
&gt; could do it though as it is a real new package.
&gt; 


yep, actually I was thinking about integrating all the changes; this seems more logical for texmfvar to be in /var, as it will be modified by texmf-update. ebuilds dont install to texmflocal, but modifying the variable allows people to install their local files into it rather than /usr/share/texmf-local

and +1 also for sysconfig</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-10-17 15:01:53 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; yep, actually I was thinking about integrating all the changes; this seems more
&gt; logical for texmfvar to be in /var, as it will be modified by texmf-update.
&gt; ebuilds dont install to texmflocal, but modifying the variable allows people to
&gt; install their local files into it rather than /usr/share/texmf-local

 You install the path, any ebuild should leave /usr/local alone, as users are free to mess around with it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2007-10-17 15:07:42 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt;  You install the path, any ebuild should leave /usr/local alone, as users are
&gt; free to mess around with it.

I don&apos;t understand, it doesn&apos;t install anything in texmf-local, it just points kpathsea to the location of the local tree, which is intended to be the user installed files.

And users aren&apos;t free to mess around with it, having broken libs there already causes some mess as it&apos;s in default search paths.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-10-17 15:26:43 0000</bug_when>
            <thetext>If I remember correctly, the directory is created by one the ebuilds, so I can&apos;t tell for sure.  If I am wrong, just go on.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>oda@gmx.li</who>
            <bug_when>2007-10-17 15:39:56 0000</bug_when>
            <thetext>Documentation in /usr/share/texmf-doc is not found by texdoc. I copied the following lines from the texmf.cnf contained in the TeX-Live DVD to /etc/texmf.d/00texmf.cnf.

% TeX documentation and source files, for use with kpsewhich.
% TeX Live has a separate hierarchy with just documentation, texmf-doc,
% in addition to the doc files in the other hierarchies.
TEXMFDOCDIR = /usr/share/texmf-doc/doc
TEXDOCS = .;$TEXMF/doc//;$TEXMFDOCDIR//
TEXSOURCES = .;$TEXMF/source//

Another path-related question: Shouldn&apos;t documentation go to /usr/share/doc?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>levertond@googlemail.com</who>
            <bug_when>2007-10-17 16:43:50 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; and +1 also for sysconfig

I tried this, and it causes a sandbox violation in texlive-core, because the build process tries to run fmtutil: normally /etc/texmf/web2c/fmtutil.cnf isn&apos;t on the search path, but is found via the symlink /usr/share/texmf/web2c/fmtutil.cnf.  The build system overrides TEXMFMAIN so that /usr/share/texmf is /not/ on the search path anymore, so with the current configuration fmtutil doesn&apos;t do anything, but setting TEXMFSYSCONFIG to /etc/texmf allows fmtutil.cnf to be found via the other route.

It&apos;ll be easy to patch this out (line 76 of the toplevel Makefile.in), but I thought I&apos;d save you the bother of figuring out what&apos;s going on.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2007-10-18 07:22:46 0000</bug_when>
            <thetext>thanks, so I think sysconfig will remain as it is; I really don&apos;t want texlive-core installation to be dependant on config files installed on the system.
We do not install anything there and config files that are supposed to be modified are in /etc/texmf/$foo.d, symlinked from the texmf tree and handled by texmf-update

raising severity as those changes should really block wide usage of texlive for now.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>levertond@googlemail.com</who>
            <bug_when>2007-10-18 12:19:54 0000</bug_when>
            <thetext>(In reply to comment #10)
&gt; I tried this, and it causes a sandbox violation in texlive-core,

*sigh* And now, of course I can&apos;t reproduce this.  Sorry for the false alarm.  I still think patching out the relevant part of the Makefile is a good idea, though, since there may be other potential issues with certain configurations - it also tries to run mktexlsr, texlinks and updmap-sys.

(In reply to comment #11)
&gt; I really don&apos;t want texlive-core installation to be dependant on config
&gt; files installed on the system.

Agreed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2007-10-19 19:54:37 0000</bug_when>
            <thetext>I&apos;ve gone a different way, shipping files for /etc/texmf/texmf.d that will generate through texmf-update a texmf.cnf
defaults should be much better now, thanks for pointing that.
It&apos;s not a so good idea to patch texmf.in like mads, because the build system relies on it at some point.

I&apos;ll push a -r1 when I&apos;ll have fixed bug #196246</thetext>
          </long_desc>
      
    </bug>

</bugzilla>