Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90765 - tetex-3.0-r2 is broken
Summary: tetex-3.0-r2 is broken
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on: 98827
Blocks:
  Show dependency tree
 
Reported: 2005-04-28 14:01 UTC by Andreas Schwarz
Modified: 2006-04-12 10:53 UTC (History)
6 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 Andreas Schwarz 2005-04-28 14:01:47 UTC
tetex-3.0-r2 is broken. It builds and installs a lot of stuff, but I get a lot of errors like the following:

tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found.
fmtutil: config file `fmtutil.cnf' not found.
make: [install] Error 1 (ignored)

...

man:
gzipping man page: afm2tfm.1
gzipping man page: allcm.1
/usr/lib/portage/bin/prepman: line 1: readlink: command not found

...

strip: strip --strip-unneeded
strip: strip --strip-unneeded
Traceback (most recent call last):
  File "<string>", line 1, in ?
OSError: [Errno 2] No such file or directory: '/var/tmp/portage/tetex-3.0-r2/image///usr/bin/pdfvirtex'

!!! ERROR: app-text/tetex-3.0-r2 failed.
!!! Function stat_perms, Line 1067, Exitcode 1
!!! Failed to perform stat operation on file: /var/tmp/portage/tetex-3.0-r2/image///usr/bin/pdfvirtex
!!! If you need support, post the topmost build error, NOT this status message.


The final error that makes the build fail:
!!! failed to properly create symlink:
!!! /usr/bin/pdfvirtex -> /usr/bin/pdftex
!!! [Errno 2] No such file or directory: '/usr/bin/pdfvirtex'
!!! Failed to move file.
!!! /usr/bin/pdfvirtex -> /usr/bin/pdftex
Comment 1 Andreas Schwarz 2005-04-28 14:02:44 UTC
# emerge info
Invalid package name in package.provided: sys-devel/gdb-5.3-20030128
Invalid package name in package.provided: app-crypt/mit-krb5
!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.51.20-r5 (default-darwin/macos/10.3, gcc-3.3, libsystem-7.1-r0, 7.9.0 Power Macintosh)
=================================================================
System uname: 7.9.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos ~ppc-macos"
AUTOCLEAN="yes"
CBUILD="powerpc-apple-darwin"
CFLAGS="-O2 -pipe -mcpu=7450"
CHOST="powerpc-apple-darwin"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7450"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks strict userpriv"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://localhost:8730/gentoo-portage"
USE="ppc X altivec aqua bzip2 cdr crypt emboss gdbm idea imagemagick imap ldap libwww mbox ncurses nls nntp png ppc-macos readline ruby sqlite ssl threads zlib"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 2 Kito (RETIRED) gentoo-dev 2005-06-05 15:18:25 UTC
`emerge freebsd-stat` then try again. Should have been installed when you first emerged system, but 
perhaps it was added after you installed...
Comment 3 Christoph Hösler 2005-06-05 16:54:41 UTC
I have the same problem here. The reason why the symlink can't be created is
that pdftex has never been build along with other programs (even latex). I've
been looking for a solution but without success.
Comment 4 Fabian Groffen gentoo-dev 2005-07-12 10:38:58 UTC
I get a completely different error, during the install phase:

...
>>> /var/lib/texmf/web2c/pdfetex-pl.pool
>>> /var/lib/texmf/web2c/pdfetex.pool
>>> /var/lib/texmf/web2c/pdfxtex.pool
>>> /var/lib/texmf/web2c/tex.pool
!!! failed to properly create symlink:
!!! /var/lib/texmf/web2c/fmtutil.cnf -> /etc/texmf/web2c/fmtutil.cnf
!!! [Errno 2] No such file or directory: '/var/lib/texmf/web2c/fmtutil.cnf'
!!! Failed to move file.
!!! /var/lib/texmf/web2c/fmtutil.cnf -> /etc/texmf/web2c/fmtutil.cnf


I nailed this down to the tetex-3 eclass which does this:

        # take care of updmap.cfg, fmtutil.cnf and texmf.cnf
        dodir /etc/texmf/{updmap.d,fmtutil.d,texmf.d}
        #cp ${D}/usr/share/texmf/web2c/updmap.cfg
${D}/etc/texmf/updmap.d/00updmap.cfg
        dosym /etc/texmf/web2c/updmap.cfg ${TEXMF_PATH}/web2c/updmap.cfg
        mv ${D}/usr/share/texmf/web2c/updmap.cfg
${D}/etc/texmf/updmap.d/00updmap.cfg
        mv ${D}/etc/texmf/web2c/fmtutil.cnf ${D}/etc/texmf/fmtutil.d/00fmtutil.cnf
        mv ${D}/etc/texmf/web2c/texmf.cnf ${D}/etc/texmf/texmf.d/00texmf.cnf

Above this piece of code in /var/lib/texmf/web2c are made symlinks to the files
in ${D}/etc/texmf/web2c.  These are above moved so the symlinks do not point to
a valid location anymore.  On linux this seems to be no problem (are the files
recreated afterwards perhaps?).
Comment 5 Thomas Kjosmoen 2005-08-16 14:45:20 UTC
I commented out those lines, but it didn't seem like I got any longer. However, I did get a new error 
message:

>>> /usr/share/man/man1/lambda.1.gz -> omega.1.gz
>>> /usr/share/man/man1/mf-nowin.1.gz -> mf.1.gz
>>> /usr/share/man/man1/texconfig-sys.1.gz -> texconfig.1.gz
>>> /usr/share/man/man1/updmap-sys.1.gz -> updmap.1.gz
!!! failed to properly create symlink:
!!! /usr/bin/pdfvirtex -> /usr/bin/pdftex
!!! [Errno 2] No such file or directory: '/usr/bin/pdfvirtex'
!!! Failed to move file.
!!! /usr/bin/pdfvirtex -> /usr/bin/pdftex

I'd LOVE if this could be fixed soon. If it will help, I have a log of the whole emerge session available.
Comment 6 Kito (RETIRED) gentoo-dev 2005-08-16 15:02:24 UTC
Until the ideal solution to portage a) not caring about the order in which files are merged to the live 
filesystem b) raising an exception when trying to merge empty symlinks on Darwin, try :
  touch /usr/bin/pdftex

Then emerge again.

If thats the only symlink its having problems with, it might work.
Comment 7 Thomas Kjosmoen 2005-08-16 19:50:59 UTC
Yes, it was the symlinks that were the problem. This is the band-aid that makes it emerge properly, so run 
this before you emerge tetex:

touch /etc/texmf/web2c/fmtutil.cnf
touch /etc/texmf/web2c/texmf.cnf
touch /etc/texmf/web2c/updmap.cfg
touch /usr/bin/pdftex
touch /usr/bin/pdfvirtex
Comment 8 Fabian Groffen gentoo-dev 2005-08-20 13:02:05 UTC
after installing not all (or not any?) files seem to get chgrp-ed to portage. 
Needs more investigation.
Comment 9 Nick Dimiduk (RETIRED) gentoo-dev 2005-09-02 19:50:58 UTC
These appear to be orphaned files.  My x86 install has them, but equery doesn't
know to what package they belong.  Added the text-markup herd to the CC list.
Comment 10 Fabian Groffen gentoo-dev 2005-09-22 11:10:01 UTC
*** Bug 106886 has been marked as a duplicate of this bug. ***
Comment 11 Fabian Groffen gentoo-dev 2005-09-22 11:30:53 UTC
previous bug is not a duplicate of this bug.  Sorry.
Comment 12 Fabian Groffen gentoo-dev 2005-11-15 09:11:17 UTC
this ebuild is not any more in portage.

See bug #106886 for the follow up revision.
Comment 13 Fabian Groffen gentoo-dev 2005-11-15 11:59:12 UTC
This error looks very familiar to me, as it is the same as for -r2, IMHO.

>>> /usr/share/man/man1/kpsepath.1.gz -> kpsetool.1.gz
>>> /usr/share/man/man1/lambda.1.gz -> omega.1.gz
>>> /usr/share/man/man1/mf-nowin.1.gz -> mf.1.gz
>>> /usr/share/man/man1/oxdvi.1.gz -> xdvi.1.gz
>>> /usr/share/man/man1/texconfig-sys.1.gz -> texconfig.1.gz
>>> /usr/share/man/man1/updmap-sys.1.gz -> updmap.1.gz
!!! failed to properly create symlink:
!!! /usr/bin/pdfvirtex -> /usr/bin/pdftex
!!! [Errno 2] No such file or directory: '/usr/bin/pdfvirtex'
!!! Failed to move file.
!!! /usr/bin/pdfvirtex -> /usr/bin/pdftex