Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97668 - jadetex-3.13-r1 fails with tcfmgr: config file `tcfmgr.map' ... not found.
Summary: jadetex-3.13-r1 fails with tcfmgr: config file `tcfmgr.map' ... not found.
Status: RESOLVED DUPLICATE of bug 120515
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-01 16:45 UTC by Chris Smith
Modified: 2006-02-10 07:57 UTC (History)
4 users (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 Chris Smith 2005-07-01 16:45:01 UTC
localhost jadetex # emerge jadetex
Calculating dependencies ...done!
>>> emerge (1 of 1) app-text/jadetex-3.13-r1 to /
>>> md5 files   ;-) jadetex-3.12.ebuild
>>> md5 files   ;-) jadetex-3.13.ebuild
>>> md5 files   ;-) jadetex-3.13-r1.ebuild
>>> md5 files   ;-) files/digest-jadetex-3.12
>>> md5 files   ;-) files/digest-jadetex-3.13
>>> md5 files   ;-) files/digest-jadetex-3.13-r1
>>> md5 files   ;-) files/80jadetex.cnf
>>> md5 src_uri ;-) jadetex-3.13.tar.gz
>>> Unpacking source...
>>> Unpacking jadetex-3.13.tar.gz to /var/tmp/portage/jadetex-3.13-r1/work
>>> Source unpacked.
tex jadetex.ins
This is TeX, Version 3.141592 (Web2C 7.5.4)
kpathsea: Running mktexfmt tex.fmt
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found.
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `tex.fmt'!
make: *** [basic] Error 1

!!! ERROR: app-text/jadetex-3.13-r1 failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. emerge jadetex
2.
3.




Navigated to /var/tmp/portage/jadetex-3.13-r1/work/jadetex-3.13, and executed
make there.  It worked as expected.
I researched the location of the culprit file, and added TEXMFMAIN to
/etc/profile  , sourced and verified that the environment variable wasn't the
problem.
Successfully running make in the unpacked tar directory would seem to validate
the environment, anyway.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-07-01 17:58:50 UTC
See Bug 90915 if it helps...
Comment 2 Diego Chantrain 2006-01-24 04:54:34 UTC
(In reply to comment #1)
> See Bug 90915 if it helps...
> 

Same problem here. Bug 90915 did not help.

I get the same error when issuing the post-emerge commands for tetex-3.0_p1_r1:

# fmutil-sys --missing && fmutil-sys --byfmt etex
tcfmgr: config file `tcfmgr.map' (usually in $TEXMAIN/texconfig) not found
fmtutil: config file `fmtutil.cnf' not found
Comment 3 Sven 2006-01-25 16:57:44 UTC
same problem for me!
it's a clean system, just installed.

I definitely have a correct root environment (i login on the console) and "emerge jadetex" fails - as well as the instructions given after the emerge of tetex.
Comment 4 Chris Torske 2006-01-26 02:42:51 UTC
I too get the same issue of tetex not finding tcfmgr.map file.  though doing a quick search, and the file is indeed there as it should be.

luke / # locate tcfmgr
/var/lib/texmf/texconfig/tcfmgr
/var/lib/texmf/texconfig/tcfmgr.map
luke / # locate fmtutil
/usr/share/man/man5/fmtutil.cnf.5.gz
/usr/share/man/man1/fmtutil.1.gz
/usr/share/man/man1/fmtutil-sys.1.gz
/usr/bin/fmtutil
/usr/bin/fmtutil-sys
/usr/portage/app-text/ptex/files/20fmtutil-platex.cnf
/usr/portage/app-text/tetex/files/tetex-3.0_p1-fmtutil-etex.patch
/etc/texmf/web2c/fmtutil.cnf
/etc/texmf/fmtutil.d
/etc/texmf/fmtutil.d/00fmtutil.cnf
/var/lib/texmf/web2c/fmtutil.cnf

==================== binaries found by searching $PATH ===================
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.5:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/qt/3/bin:/usr/kde/3.4/sbin:/usr/kde/3.4/bin
kpsewhich: /usr/bin/kpsewhich
updmap: /usr/bin/updmap
fmtutil: /usr/bin/fmtutil
texconfig: /usr/bin/texconfig
tex: /usr/bin/tex
pdfetex: /usr/bin/pdfetex
mktexpk: /usr/bin/mktexpk
dvips: /usr/bin/dvips
dvipdfm: /usr/bin/dvipdfm

=========================== version information ==========================
teTeX-src release:   3.0.90-20050823-beta
teTeX-texmf release: 3.0

=========================== active config files ==========================
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found.
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found.
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found.
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found.
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found.
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found.
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found.
/var/lib/texmf/web2c/texmf.cnf
XDvi: not found
config.ps: not found
config: not found
fmtutil.cnf: not found
mktex.cnf: not found
pdftexconfig.tex: not found
updmap.cfg: not found

=========================== kpathsea variables ===========================
TEXMFMAIN=/var/lib/texmf
TEXMFDIST=/usr/share/texmf
TEXMFLOCAL=/usr/local/share/texmf
TEXMFSYSVAR=/var/lib/texmf
TEXMFSYSCONFIG=/var/lib/texmf
TEXMFVAR=/root/.texmf-var
TEXMFCONFIG=/root/.texmf-config
TEXMFHOME=/root/texmf

Portage 2.1_pre3-r1 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.14-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre15
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X a52 alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdb cdr crypt cups doc dvd dvi dynagraph eds emboss encode erandom esd examples exif expat extensions fam firefox flac foomaticdb fortran fpx gd gdbm gif glitz glut gnome gnutls gpm graphvix graphviz gstreamer gtk gtk2 gtkhtml hal idn imagemagick imlib java javascript jpeg jpeg2k kde kerberos krb4 lcms libedit libwww linuxthreads-tls logmail logrotate lzw lzw-tiff mad maildir mailwrapper mng motif mozilla mp3 mpeg mysql ncurses nls nptl ogg opengl pam pam_chroot pam_console pam_timestamp pcre pdflib perl php png pwdb python qt quicktime readline sasl sdk sdl snmp spell sql ssl svg symlink t1lib tcltk tcpd tetex theora threads tidy tiff toolbar truetype truetype-fonts type1-fonts udev urandom usb userlocales vorbis wmf xml xml2 xpm xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 5 Chris Torske 2006-01-26 04:31:33 UTC
ok; I have gone through and located the cause of this piticular problem.  The issue resides in tetex package not in jadetex.  to fix the problem so tcfmgr can find the map file you need to modify line 126 in /usr/bin/texconfig to 

      *) elcLoc=`tcfmgr --map /var/lib/texmf/texconfig/tcfmgr.map --cmd find --file "$elc"`;;

I know you shouldn't use absolute referencing; though you should be able to do modify that to -- map $TEXMFMAIN/texconfig/tcfmgr.map.

I am not sure how far back this problem resides; but I do know for sure it does exist in the tetex-3.0_p1 package too once you solve it's other problem.

As a side comment, you may want to remove the tetex-3.0_p1.ebuild as it will not work either way as it references the wrong variables that was fixed in the tetex-3.0_p1-r1.ebuild.  Only changes between both of those is just 2 patches; one I believe fixes the variable referencing issue.

Also with my small change/fix; I tried rebuilding the jadetex for kicks see if it will compile; and it gives a different error.  I will try to debug that problem and post the fix for that issue too.
Comment 6 Chris Torske 2006-01-26 05:07:20 UTC
ok; part 2 of the problem I finaly figured out what was wrong; the ls-R databse in the /usr/share/texmf/ did not exist; so it was not finding all of the config files.  After creating that file; got the next problem; now I ran into a third problem.

No pages of output.
Transcript written on latex.log.
fmtutil: /var/tmp/portage/homedir/.texmf-var/web2c/latex.fmt installed.
---! /var/tmp/portage/homedir/.texmf-var/web2c/latex.fmt was written by pdfetex
(Fatal format file error; I'm stymied)
make: *** [jadetex.fmt] Error 1

!!! ERROR: app-text/jadetex-3.13-r1 failed.
!!! Function src_install, Line 44, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Once I figure out what that error message says; I will debug that too.
Comment 7 Chris Torske 2006-01-26 06:11:40 UTC
well I am stumped on this issue; I guess I will allow someone else to chance to pick up and solve it; while I get my system updated fully (got 500MB to go through :( )  luckly jadetex isn't one of the packages so I am not going to worry about it for now.
Comment 8 Martin Ehmsen (RETIRED) gentoo-dev 2006-01-26 06:16:03 UTC
Your problems are most likely related to the way the tetex eclass and tetex itself handles and installs symlinks.
Nattfodd will have a look at it in the near future.
Comment 9 Alexandre Buisse (RETIRED) gentoo-dev 2006-01-26 08:04:25 UTC
Many thanks for debugging this issue! I will review/include the patch asap (which should hopefully be this weekend).

As for the "I'm stymied" errors, they were supposed to be fixed by tetex-3.0_p1-r1 but I guess it is not perfect yet. You may want to try rebuilding your format files with "fmtutil-sys --all". If it still fails on latex.fmt, you can try changing the line in /etc/texmf/web2c/fmtutil.cnf from


latex           pdfetex         language.dat    -etex -translate-file=cp227.tcx latex.ini

to 

latex           tex         language.dat    -translate-file=cp227.tcx latex.ini
Comment 10 Chris Torske 2006-01-26 16:28:19 UTC
well honestly; may be a little bit before I can try yout your suggestion on modifing the fmtutil.cnf file.  For some strange reason I managed to royaly screwed up my copy of tetex; to the point where I can't figure out how to fix it.  So when ever I ever get done reinstalling the dang thing and hopefuly get it back to the point that it was; I will try that suggestion and see what it happens.  I know the fmtutil-sys --all  didn't help; as I tried that already with no luck.
Comment 11 Chris Torske 2006-01-26 17:35:41 UTC
ok; now that I finaly figured out what was wrong on my system; and got tetex working again.  Your suggestion on the modification of the file helped; as it gave a new error which for now is somewhat out of my hands now; as I am thinking this is coinsiding with the way tetex handles the symbolic links as in comment 8.

Transcript written on jadetex.log.
pdflatex -ini -progname=pdfjadetex "&pdflatex" pdfjadetex.ini
/bin/sh: pdflatex: command not found
make: *** [pdfjadetex.fmt] Error 127

!!! ERROR: app-text/jadetex-3.13-r1 failed.
!!! Function src_install, Line 44, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 12 Chris Torske 2006-01-26 23:36:47 UTC
well finaly figured out thew last part; and figured out a way to work around the way tetex handles symlinks.  If you encounter the problem of pdflatex  not found; go into the usr/bin directory.  If there then make sure there is a pdftex and pdflatex in there; if not make a symlink to pdfetex.  As that is the program that in the end gets run; according to the fmtutil.cnf.  Of course be sure to rerun fmtutil-sys --all as root; to make sure all of the needed fmt files was made.
Comment 13 Martin Ehmsen (RETIRED) gentoo-dev 2006-02-10 01:32:15 UTC
I think all of this should be fixed in tetex-3.0_p1-r2
The /etc/texmf/* directory structure should be fixed in that and hence the TEXMFMAIN var should be given it's correct value now (/var/lib/texmf).
So it shouldn't be necessary to make any of the modifications mentioned above.

Could you please try emerging jadetex again (without any of your suggested modifications) after you upgraded to tetex-3.0_p1-r2 and report back here if it works?
Comment 14 Chris Torske 2006-02-10 03:38:26 UTC
well, when I switch back to gentoo; I will see about unmerging my copy of jadetex and tetex; and try out the fixed tetex; see if it fixes the problems.  Going to be a little while; as tetex is a long download last time I checked; specialy with eclean already cleaned out that folder.
Comment 15 Chris Torske 2006-02-10 07:03:31 UTC
well after going through encountering 2 new packages broken (not from this), and verifing several of the other versions of tetex upgrading to the newest one; there isn't any more problems.  Including installing jadetex; haven't seen any issues now.  So unless someone else has an issue; go ahead and mark it fixed.
Comment 16 Martin Ehmsen (RETIRED) gentoo-dev 2006-02-10 07:57:57 UTC
Since this was not a seperate issue, i'm marking it as a dupe.

*** This bug has been marked as a duplicate of 120515 ***