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.
See Bug 90915 if it helps...
(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
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.
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
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.
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.
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.
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.
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
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.
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.
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.
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?
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.
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.
Since this was not a seperate issue, i'm marking it as a dupe. *** This bug has been marked as a duplicate of 120515 ***