First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 196167
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: TeX herd <tex@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Daniel Oehry <oda@gmx.li>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 196167 depends on: Show dependency tree
Bug 196167 blocks: 195815
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-10-17 13:25 0000
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 "etex" because MetaPost is
% expecting DVI, and not "tex" because we want first line parsing.
TEX = etex

------- Comment #1 From Alexis Ballier 2007-10-17 13:43:47 0000 -------
While I'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'd say no to this one.


And what was the problem with makempx ?

------- Comment #2 From Daniel Oehry 2007-10-17 14:02:39 0000 -------
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

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

With "TEX = etex" in texmf.cnf it works.

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

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

end.

------- Comment #3 From Daniel Oehry 2007-10-17 14:07:40 0000 -------
Sorry, but there was an error in my posted example. Here is the correct one.

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

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

end.

------- Comment #4 From Christian Faulhammer 2007-10-17 14:42:38 0000 -------
From devmanual
(http://devmanual.gentoo.org/general-concepts/filesystem/index.html):

"/usr/local: Non-portage applications. Ebuilds must not install here."

 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.

------- Comment #5 From Alexis Ballier 2007-10-17 14:56:36 0000 -------
(In reply to comment #4)
> From devmanual
> (http://devmanual.gentoo.org/general-concepts/filesystem/index.html):
> 
> "/usr/local: Non-portage applications. Ebuilds must not install here."
> 
>  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.
> 


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

------- Comment #6 From Christian Faulhammer 2007-10-17 15:01:53 0000 -------
(In reply to comment #5)
> 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

 You install the path, any ebuild should leave /usr/local alone, as users are
free to mess around with it.

------- Comment #7 From Alexis Ballier 2007-10-17 15:07:42 0000 -------
(In reply to comment #6)
>  You install the path, any ebuild should leave /usr/local alone, as users are
> free to mess around with it.

I don't understand, it doesn'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't free to mess around with it, having broken libs there already
causes some mess as it's in default search paths.

------- Comment #8 From Christian Faulhammer 2007-10-17 15:26:43 0000 -------
If I remember correctly, the directory is created by one the ebuilds, so I
can't tell for sure.  If I am wrong, just go on.

------- Comment #9 From Daniel Oehry 2007-10-17 15:39:56 0000 -------
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't documentation go to /usr/share/doc?

------- Comment #10 From David Leverton 2007-10-17 16:43:50 0000 -------
(In reply to comment #5)
> 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'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't do anything, but setting TEXMFSYSCONFIG to
/etc/texmf allows fmtutil.cnf to be found via the other route.

It'll be easy to patch this out (line 76 of the toplevel Makefile.in), but I
thought I'd save you the bother of figuring out what's going on.

------- Comment #11 From Alexis Ballier 2007-10-18 07:22:46 0000 -------
thanks, so I think sysconfig will remain as it is; I really don'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.

------- Comment #12 From David Leverton 2007-10-18 12:19:54 0000 -------
(In reply to comment #10)
> I tried this, and it causes a sandbox violation in texlive-core,

*sigh* And now, of course I can'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)
> I really don't want texlive-core installation to be dependant on config
> files installed on the system.

Agreed.

------- Comment #13 From Alexis Ballier 2007-10-19 19:54:37 0000 -------
I'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's not a so good idea to patch texmf.in like mads, because the build system
relies on it at some point.

I'll push a -r1 when I'll have fixed bug #196246

First Last Prev Next    No search results available      Search page      Enter new bug