Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369883 - dev-texlive/texlive-latex-2008-r2 fails to emerge on fresh installs
Summary: dev-texlive/texlive-latex-2008-r2 fails to emerge on fresh installs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Alexis Ballier
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard:
Keywords:
Depends on:
Blocks: 370301
  Show dependency tree
 
Reported: 2011-06-03 12:26 UTC by Filipe Teixeira
Modified: 2012-01-18 17:09 UTC (History)
16 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,27.77 KB, text/x-log)
2011-06-03 22:44 UTC, Tiago Madeira
Details
Patch for dev-texlive/texlive-latex disabling the "5 years old sources" error. (texlive-latex-2008-fmtutil-oldsources.patch,1.21 KB, patch)
2011-06-10 14:39 UTC, Raphaël Barrois
Details | Diff
Patch for dev-texlive/texlive-latex disabling the "5 years old sources" error (fixed). (texlive-latex-2008-fmtutil-oldsources.patch,1.20 KB, patch)
2011-06-17 21:11 UTC, Duncan Exon Smith
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Filipe Teixeira 2011-06-03 12:26:58 UTC
dev-texlive/texlive-latex-2008-r2 fails to emerge on freshly installed systems, the main error being. This error was discussed in the gentoo forums as a possible problem with luatex, but has been recently confirmed to exist on at least another freshly installed gentoo linux machine. This bug blocks all latex functionality (including programs form the sci* tree).

Reproducible: Always

Steps to Reproduce:
1.emerge texlive-latex

Actual Results:  
(after some lines compiling)
Applying patch file ltpatch.ltx
=================================

(/var/tmp/portage/dev-texlive/texlive-latex-2008-r2/work/texmf-dist/tex/latex/b
ase/ltpatch.ltx)
 ) )
Beginning to dump on file pdflualatex.fmt
 (format=pdflualatex 2011.6.4)
4810 strings using 31698 bytes
158111 memory locations dumped; current usage is 124&47224
3544 multiletter control sequences
\font\nullfont=nullfont
\font\OMX/cmex/m/n/10=cmex10
\font\tenln=line10
\font\tenlnw=linew10
\font\tencirc=lcircle10
\font\tencircw=lcirclew10
\font\OT1/cmr/m/n/5=cmr5
\font\OT1/cmr/m/n/7=cmr7
\font\OT1/cmr/m/n/10=cmr10
\font\OML/cmm/m/it/5=cmmi5
\font\OML/cmm/m/it/7=cmmi7
\font\OML/cmm/m/it/10=cmmi10
\font\OMS/cmsy/m/n/5=cmsy5
\font\OMS/cmsy/m/n/7=cmsy7
\font\OMS/cmsy/m/n/10=cmsy10
14 preloaded fonts
0 words of pdf memory
0 indirect objects
No pages of output.
Transcript written on pdflualatex.log.
Error: `luatex -ini  -jobname=pdflualatex -progname=pdflualatex pdflualatex.ini' possibly failed.
fmtutil: /var/tmp/portage/dev-texlive/texlive-latex-2008-r2/work/texmf-var/web2c/luatex/pdflualatex.fmt installed.

###############################################################################
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
  /var/tmp/portage/dev-texlive/texlive-latex-2008-r2/work/texmf-var/web2c
for details.
###############################################################################

This is a summary of all `failed' messages and warnings:
`pdftex -ini  -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini' possibly failed.
`pdftex -ini  -jobname=pdflatex -progname=pdflatex -translate-file=cp227.tcx *pdflatex.ini' possibly failed.
`luatex -ini  -jobname=lualatex -progname=lualatex lualatex.ini' possibly failed.
`luatex -ini  -jobname=pdflualatex -progname=pdflualatex pdflualatex.ini' possibly failed.
 * ERROR: dev-texlive/texlive-latex-2008-r2 failed (compile phase):
 *   failed to build format texmf/fmtutil/format.latex.cnf
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 2301:  Called texlive-module_src_compile
 *   environment, line 2881:  Called die
 * The specific snippet of code:
 *               VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var" env -u TEXINPUTS fmtutil --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all || die "failed to build format ${i}";
 * 
 * If you need support, post the output of 'emerge --info =dev-texlive/texlive-latex-2008-r2',
 * the complete build log and the output of 'emerge -pqv =dev-texlive/texlive-latex-2008-r2'.
 * The complete build log is located at '/var/tmp/portage/dev-texlive/texlive-latex-2008-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-texlive/texlive-latex-2008-r2/temp/environment'.
 * S: '/var/tmp/portage/dev-texlive/texlive-latex-2008-r2/work'



Expected Results:  
texlive-latex and its dependencies are for a long time in the stable tree and should emerge without errors.

# emerge --info texlive-latex
Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.4.5, libc-0-r0, 2.6.37-gentoo-r4 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.37-gentoo-r4-x86_64-Pentium-R-_Dual-Core_CPU_E5700_@_3.00GHz-with-gentoo-2.0.2
Timestamp of tree: Wed, 01 Jun 2011 21:45:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.12.2
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org/ "
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 bash-completion berkdb branding bzip2 cairo cdr cdrw cli consolekit cracklib crypt cups cxx dbus dri dvdr dvdrw ffmpeg fontconfig fortran gdbm gnome gpm gtk hplip iconv ipv6 java jpeg jpeg2k lapack mad mmx modules mp3 mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin opengl openmp pam pcre pdf perl php png politkit ppds pppd python readline session spell sse sse2 ssl symlink sysfs tcpd tiff tk truetype unicode usb vim-syntax vorbis xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2011-06-03 12:29:58 UTC
Please do not CC arches on your own
Comment 2 Alexey Korepanov 2011-06-03 15:33:16 UTC
hi all. I confirm this happening.

my emerge --info:
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.5, libc-0-r0, 2.6.38-gentoo-r6 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38-gentoo-r6-x86_64-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.2
Timestamp of tree: Thu, 02 Jun 2011 01:00:02 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.12.2
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdr cgi cli consolekit cracklib crypt cups cxx dbus djvu dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif gnome gnome-keyring gpm gstreamer gtk iconv icu ipv6 jpeg kpathsea lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl php png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Michael 2011-06-03 20:28:10 UTC
I can confirm this, very same error. Updating to a newer versions solves it, but is tideous =(
Comment 4 Alexis Ballier gentoo-dev 2011-06-03 20:35:08 UTC
please attach the full build log and reopen, the current snippet is not sufficient to tell what's happening.
Comment 5 Tiago Madeira 2011-06-03 22:44:23 UTC
Created attachment 275753 [details]
build log
Comment 6 Alexis Ballier gentoo-dev 2011-06-03 22:51:09 UTC
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! You are attempting to make a LaTeX format from a source file
! That is more than five years old.
!
! If you enter <return> to scroll past this message then the format
! will be built, but please consider obtaining newer source files
! before continuing to build LaTeX.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! LaTeX source files more than 5 years old!.
l.545 ...aTeX source files more than 5 years old!}


I guess our stable version is getting very old......
Comment 7 Marian Eichholz 2011-06-05 11:41:38 UTC
Same here. Freshly installed AMD64 (yesterday).

Portage 2.1.9.42 (default/linux/amd64/10.0/desktop, gcc-4.4.5, libc-0-r0, 2.6.39.1 x86_64)
System uname: Linux-2.6.39.1-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.0.2
Timestamp of tree: Sat, 04 Jun 2011 09:15:01 +0000

For comparison: I installed some big meta-packages (kde, xfce4, gnome) before, and have adopted a fairly large USE-list (including "tex") from the beginning, like I always do without trouble.

texlive was finally pulled in as dependency by xemacs, if I remember accurately.

Since texlive is fairly new to me, "You are my last hope" :-)

If I can contribute, anyway, please let me know.
Comment 8 Andre Keller 2011-06-06 14:35:24 UTC
same here
Comment 9 François Bissey 2011-06-07 22:23:22 UTC
I stumble upon that on a new install too. But I was able to reproduce it on a system that is a few month old. The rebuild failed in the same way. The build log on the old install matches the one already attached.
I had to rebuild luatex to get to this stage as zlib had changed version which seemed to trip luatex at first.
Comment 10 François Bissey 2011-06-08 03:59:03 UTC
Vile hack to get it to install:
ebuild /usr/portage/dev-tex/texlive-latex/texlive-latex-2008-r2.ebuild prepare

edit $S/texmf/fmtutil/format.latex.cnf
Comment everything...
ebuild /usr/portage/dev-tex/texlive-latex/texlive-latex-2008-r2.ebuild merge.

I am not taking any responsibility for the hack.
Note that cp227.tcx is part of texlive-core.
Comment 11 P Purkayastha 2011-06-08 10:57:07 UTC
I think simply increasing the count for "5 years" check should work good enough. For this, the following patch successfully compiles texlive-latex. I think the number "65" is the number of months since 2005/12/01, which might explain why texlive-latex has started failing only so recently (I last built it successfully on 17 Mar, 2011).

~> diff -u /var/tmp/portage/dev-texlive/texlive-latex-2008-r2/work/texmf-dist/tex/latex/base/latex.ltx /tmp/latex.ltx 
--- /var/tmp/portage/dev-texlive/texlive-latex-2008-r2/work/texmf-dist/tex/latex/base/latex.ltx	2006-08-28 02:16:22.000000000 +0800
+++ /tmp/latex.ltx	2011-06-08 18:44:43.817454757 +0800
@@ -530,7 +530,7 @@
   \advance\count@\month
   \advance\count@-#2\relax}
 \expandafter\reserved@a\fmtversion\@nil
-\ifnum\count@>65
+\ifnum\count@>95
   \typeout{^^J%
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J%
 !  You are attempting to make a LaTeX format from a source file^^J%


I also got a failure even with this patch. The failure was from luatex, about zlib mismatch. It seems luatex was previously compiled with zlib-1.2.3 and sometime later zlib was upgraded to 1.2.5. Recompiling luatex fixed that failure. And I was able to successfully compile texlive-latex.

All of this on an amd64 system.
Comment 12 Jhoga 2011-06-08 21:15:49 UTC
Hi all,

I couldn't make working any of the proposed solutions.
Anyway, since I didn't have much time to find why,
I have simply changed the date of my computer 
and it works.

Hope it could help someone else...
Comment 13 François Bissey 2011-06-08 23:48:41 UTC
(In reply to comment #11)
> I think simply increasing the count for "5 years" check should work good
> enough. For this, the following patch successfully compiles texlive-latex. I
> think the number "65" is the number of months since 2005/12/01, which might
> explain why texlive-latex has started failing only so recently (I last built it
> successfully on 17 Mar, 2011).
> 
> ~> diff -u
> /var/tmp/portage/dev-texlive/texlive-latex-2008-r2/work/texmf-dist/tex/latex/base/latex.ltx
> /tmp/latex.ltx 
> ---
> /var/tmp/portage/dev-texlive/texlive-latex-2008-r2/work/texmf-dist/tex/latex/base/latex.ltx
>    2006-08-28 02:16:22.000000000 +0800
> +++ /tmp/latex.ltx    2011-06-08 18:44:43.817454757 +0800
> @@ -530,7 +530,7 @@
>    \advance\count@\month
>    \advance\count@-#2\relax}
>  \expandafter\reserved@a\fmtversion\@nil
> -\ifnum\count@>65
> +\ifnum\count@>95
>    \typeout{^^J%
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J%
>  !  You are attempting to make a LaTeX format from a source file^^J%
> 
> 
> I also got a failure even with this patch. The failure was from luatex, about
> zlib mismatch. It seems luatex was previously compiled with zlib-1.2.3 and
> sometime later zlib was upgraded to 1.2.5. Recompiling luatex fixed that
> failure. And I was able to successfully compile texlive-latex.
> 
> All of this on an amd64 system.

Works for me as well. It is far less vile than what I had done.
Comment 14 Raphaël Barrois 2011-06-10 14:36:23 UTC
This bug is caused by latex complaining about its sources being 5 years old, and fmtutil believing that this error message is fatal.

Similar bug on other distros: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531569

I have written a patch which gets rid of this error message altogether; texlive-latex compiles properly with it.
Comment 15 Raphaël Barrois 2011-06-10 14:39:08 UTC
Created attachment 276515 [details, diff]
Patch for dev-texlive/texlive-latex disabling the "5 years old sources" error.

This patch should probably be applied to the newer versions (2009/2010) of texlive-latex, which would exhibit the same errors next year / in 2013.
Comment 16 Luis Ferreira 2011-06-11 19:15:21 UTC
TeX Live 2011 pretesting

http://tug.org/texlive/
http://tug.org/texlive/pretest.html
Comment 17 Brent Busby 2011-06-15 04:58:05 UTC
(In reply to comment #15)
> Created attachment 276515 [details, diff]
> Patch for dev-texlive/texlive-latex disabling the "5 years old sources" error.
> 
> This patch should probably be applied to the newer versions (2009/2010) of
> texlive-latex, which would exhibit the same errors next year / in 2013.

I'm getting ready to create a local overlay for this, but before I did, I just wanted to check to see if this is ready to commit to the main tree.  It seems like a small fix, so if your patch is coming through Portage in awhile, it won't make sense for me to create a local overlay to kludge it.

Just thought I'd also note in regard to the earlier replies about getting around this by unmasking and upgrading to newer versions of TeXlive, that doesn't seem to work for me, because of several packages depending on virtual/latex-base rather than the actual dev-texlive/texlive-latex package.  virtual/latex-base unfortunately depends on "<dev-texlive/texlive-latexrecommended-2009", thus anything newer than 2008 is blocked, and the dependency won't let you upgrade.

So either the virtual package needs to allow newer TeXlive dependencies, or the date check has to be taken out of the 2008 version.
Comment 18 Jabby 2011-06-15 13:04:41 UTC
Why does this bug depend on #355085 ?
Does it mean that gentoo doesn't support texlive-latex-2008 anymore ? This bug will be closed as WONTFIX ?
Comment 19 Raphaël Barrois 2011-06-16 10:39:35 UTC
(In reply to comment #17)
> (In reply to comment #15)
> > Created attachment 276515 [details, diff]
> > Patch for dev-texlive/texlive-latex disabling the "5 years old sources" error.
> > 
> > This patch should probably be applied to the newer versions (2009/2010) of
> > texlive-latex, which would exhibit the same errors next year / in 2013.
> 
> I'm getting ready to create a local overlay for this, but before I did, I just
> wanted to check to see if this is ready to commit to the main tree.  It seems
> like a small fix, so if your patch is coming through Portage in awhile, it
> won't make sense for me to create a local overlay to kludge it.
> 
> Just thought I'd also note in regard to the earlier replies about getting
> around this by unmasking and upgrading to newer versions of TeXlive, that
> doesn't seem to work for me, because of several packages depending on
> virtual/latex-base rather than the actual dev-texlive/texlive-latex package. 
> virtual/latex-base unfortunately depends on
> "<dev-texlive/texlive-latexrecommended-2009", thus anything newer than 2008 is
> blocked, and the dependency won't let you upgrade.
> 
> So either the virtual package needs to allow newer TeXlive dependencies, or the
> date check has to be taken out of the 2008 version.

I'm not a gentoo developer, so I can't suggest this to be included. If more testing is required, let me know.

I think this bug should be adressed asap, since it prevents the installation of stable texlive on any system...
Comment 20 François Bissey 2011-06-17 01:11:26 UTC
dev-texlive/texlive-xetex-2008-r1 fails for exactly the same reason.

>>> Emerging (14 of 37) dev-texlive/texlive-xetex-2008-r1
 * Fetching files in the background. To view fetch progress, run
 * `tail -f /var/log/emerge-fetch.log` in another terminal.
 * texlive-module-arabxetex-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                      [ ok ]
 * texlive-module-euenc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                          [ ok ]
 * texlive-module-bidi-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                           [ ok ]
 * texlive-module-fontspec-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                       [ ok ]
 * texlive-module-fontwrap-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                       [ ok ]
 * texlive-module-philokalia-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                     [ ok ]
 * texlive-module-polyglossia-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                    [ ok ]
 * texlive-module-xecyr-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                          [ ok ]
 * texlive-module-xepersian-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                      [ ok ]
 * texlive-module-xetex-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                          [ ok ]
 * texlive-module-xetex-def-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                      [ ok ]
 * texlive-module-xetex-pstricks-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                 [ ok ]
 * texlive-module-xetexconfig-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                    [ ok ]
 * texlive-module-xetexfontinfo-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                  [ ok ]
 * texlive-module-xltxtra-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                        [ ok ]
 * texlive-module-xunicode-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                       [ ok ]
 * texlive-module-collection-xetex-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                               [ ok ]
 * texlive-module-arabxetex.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                  [ ok ]
 * texlive-module-euenc.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                      [ ok ]
 * texlive-module-bidi.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                       [ ok ]
 * texlive-module-fontspec.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                   [ ok ]
 * texlive-module-fontwrap.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                   [ ok ]
 * texlive-module-philokalia.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                 [ ok ]
 * texlive-module-polyglossia.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                [ ok ]
 * texlive-module-xecyr.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                      [ ok ]
 * texlive-module-xepersian.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                  [ ok ]
 * texlive-module-xetex.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                      [ ok ]
 * texlive-module-xetex-pstricks.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                             [ ok ]
 * texlive-module-xetexfontinfo.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                              [ ok ]
 * texlive-module-xltxtra.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                    [ ok ]
 * texlive-module-xunicode.doc-2008.tar.lzma RMD160 SHA1 SHA256 size ;-) ...                                                   [ ok ]
 * Package:    dev-texlive/texlive-xetex-2008-r1
 * Repository: gentoo
 * Maintainer: aballier@gentoo.org tex@gentoo.org
 * USE:        amd64 doc elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   fakeroot preserve-libs sandbox splitdebug
>>> Unpacking source...
>>> Unpacking texlive-module-arabxetex-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-euenc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-bidi-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-fontspec-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-fontwrap-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-philokalia-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-polyglossia-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xecyr-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xepersian-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xetex-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xetex-def-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xetex-pstricks-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xetexconfig-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xetexfontinfo-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xltxtra-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xunicode-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-collection-xetex-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-arabxetex.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-euenc.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-bidi.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-fontspec.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-fontwrap.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-philokalia.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-polyglossia.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xecyr.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xepersian.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xetex.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xetex-pstricks.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xetexfontinfo.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xltxtra.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Unpacking texlive-module-xunicode.doc-2008.tar.lzma to /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Source unpacked in /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work
>>> Compiling source in /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work ...
 * Format xetex already built.
 * Building format texmf/fmtutil/format.xetex.cnf
fmtutil: running `xetex -ini   -jobname=xetex -progname=xetex -etex xetex.ini' ...
This is XeTeXk, Version 3.1415926-2.2-0.999.6 (Web2C 7.5.7) (INITEX)
 %&-line parsing enabled.
entering extended mode
(/usr/share/texmf-dist/tex/plain/config/xetex.ini
(/scratch/portage/dev-texlive/texlive-xetex-2008-r1/work/texmf-dist/tex/generic
/xetexconfig/unicode-letters.tex loading Unicode properties
and character classes) (/usr/share/texmf-dist/tex/plain/etex/etex.src
(/usr/share/texmf-dist/tex/plain/base/plain.tex
Preloading the plain format: codes, registers, parameters, fonts, more fonts,
macros, math definitions, output routines, hyphenation
(/usr/share/texmf/tex/generic/hyphen/hyphen.tex
[skipping from \patterns to end-of-file...]))
(/usr/share/texmf-dist/tex/plain/etex/etexdefs.lib
Skipping module "grouptypes"; Loading module "interactionmodes";
Skipping module "nodetypes"; Skipping module "iftypes";)
(/usr/share/texmf/tex/generic/config/language.def
(/usr/share/texmf/tex/generic/hyphen/hyphen.tex)
(/usr/share/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-eu.tex
UTF-8 Basque Hyphenation Patterns
(/usr/share/texmf-dist/tex/generic/hyph-utf8/patterns/hyph-eu.tex))
(/usr/share/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-fr.tex
UTF-8 French hyphenation patterns (V2.12, 2002/12/11)
(/usr/share/texmf-dist/tex/generic/hyph-utf8/patterns/hyph-fr.tex))
(/usr/share/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-fr.tex
UTF-8 French hyphenation patterns (V2.12, 2002/12/11)
(/usr/share/texmf-dist/tex/generic/hyph-utf8/patterns/hyph-fr.tex))
(/usr/share/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-fr.tex
UTF-8 French hyphenation patterns (V2.12, 2002/12/11)
(/usr/share/texmf-dist/tex/generic/hyph-utf8/patterns/hyph-fr.tex))
(/usr/share/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-en-gb.tex
ASCII Hyphenation Patterns for British English
(/usr/share/texmf-dist/tex/generic/hyph-utf8/patterns/hyph-en-gb.tex))
(/usr/share/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-en-gb.tex
ASCII Hyphenation Patterns for British English
(/usr/share/texmf-dist/tex/generic/hyph-utf8/patterns/hyph-en-gb.tex))
(/usr/share/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-en-gb.tex
ASCII Hyphenation Patterns for British English
(/usr/share/texmf-dist/tex/generic/hyph-utf8/patterns/hyph-en-gb.tex)))
Augmenting the Plain TeX definitions: \tracingall;
Adding new e-TeX definitions: \eTeX, \loggingall, \tracingnone,
register allocation; extended register allocation; 
Recycling: \addlanguage, \@nswer (not defined), \@sk, \b@dresponsetrue,
\b@dresponsefalse, \ch@ckforyn, \mayber@cycle, \et@xabort, \et@xbuf,
\et@xfmtsrc, \et@xfilehdr, \et@xinf, \et@xpatterns, \l@ngdefnfile, \n@xt,
\p@rse (not defined), \pr@mpt (not defined), \pr@mptloop (not defined),
\forcer@cycle, \usef@llback, \usef@llbacktrue, \usef@llbackfalse, 
Retaining: \et@xerr, \et@xinput, \et@xlibhdr, \et@xmsg, \et@xtoks, \et@xwarn,
\et@xl@@d, \et@xl@ad, \et@xload, \et@xlang, \et@xhash, \eTeX, \etexhdrchk,
\etexstatus, \module, \uselanguage, \r@tain, \r@cycle,) )
Beginning to dump on file xetex.fmt
 (format=xetex 2011.6.17)
67768 strings of total length 37554
8306 memory locations dumped; current usage is 320&7485
1218 multiletter control sequences
\font\nullfont=nullfont
\font\tenrm=cmr10
\font\sevenrm=cmr7
\font\fiverm=cmr5
\font\teni=cmmi10
\font\seveni=cmmi7
\font\fivei=cmmi5
\font\tensy=cmsy10
\font\sevensy=cmsy7
\font\fivesy=cmsy5
\font\tenex=cmex10
\font\tenbf=cmbx10
\font\sevenbf=cmbx7
\font\fivebf=cmbx5
\font\tentt=cmtt10
\font\tensl=cmsl10
\font\tenit=cmti10
4739 words of font info for 16 preloaded fonts
38 hyphenation exceptions
Hyphenation trie of length 18396 has 1122 ops out of 35111
  224 for language 7
  224 for language 6
  224 for language 5
  88 for language 4
  88 for language 3
  88 for language 2
  5 for language 1
  181 for language 0
No pages of output.
Transcript written on xetex.log.
fmtutil: /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work/texmf-var/web2c/xetex/xetex.fmt installed.
fmtutil: running `xetex -ini   -jobname=xelatex -progname=xelatex -etex xelatex.ini' ...
This is XeTeXk, Version 3.1415926-2.2-0.999.6 (Web2C 7.5.7) (INITEX)
 %&-line parsing enabled.
entering extended mode
(/usr/share/texmf-dist/tex/latex/latexconfig/xelatex.ini
(/scratch/portage/dev-texlive/texlive-xetex-2008-r1/work/texmf-dist/tex/generic
/xetexconfig/unicode-letters.tex loading Unicode properties
and character classes) (/usr/share/texmf-dist/tex/latex/base/latex.ltx
(/usr/share/texmf-dist/tex/latex/base/texsys.cfg)
./texsys.aux found


\@currdir set to: ./.


Assuming \openin and \input 
have the same search path.


Defining UNIX/DOS style filename parser.

catcodes, registers, compatibility for TeX 2,  parameters,

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! You are attempting to make a LaTeX format from a source file
! That is more than five years old.
!
! If you enter <return> to scroll past this message then the format
! will be built, but please consider obtaining newer source files
! before continuing to build LaTeX.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! LaTeX source files more than 5 years old!.
l.545 ...aTeX source files more than 5 years old!}
                                                  
? 
! Emergency stop.
l.545 ...aTeX source files more than 5 years old!}
                                                  
No pages of output.
Transcript written on xelatex.log.
Error: `xetex -ini  -jobname=xelatex -progname=xelatex -etex xelatex.ini' failed

###############################################################################
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
  /scratch/portage/dev-texlive/texlive-xetex-2008-r1/work/texmf-var/web2c
for details.
###############################################################################

This is a summary of all `failed' messages and warnings:
`xetex -ini  -jobname=xelatex -progname=xelatex -etex xelatex.ini' failed
Comment 21 Duncan Exon Smith 2011-06-17 21:11:40 UTC
Created attachment 277415 [details, diff]
Patch for dev-texlive/texlive-latex disabling the "5 years old sources" error (fixed).

The original posted patch was patching "texmf-dist/tex/latex/base/latex.ltx.orig" instead of "texmf-dist/tex/latex/base/latex.ltx".  This patch applies cleanly when used like this:

src_unpack() {
        unpack ${A}
        cd "${S}"
        epatch "${FILESDIR}/${P}-luatex-0.40.patch"
        epatch "${FILESDIR}/${P}-fmtutil-oldsources.patch"
}
Comment 22 François Bissey 2011-06-17 22:54:10 UTC
The old patch should have worked cleanly as well. I usually prepare my own patches that way and have yet to see one fail. The important file which is the target of the patch is on the second line.
Comment 23 Duncan Exon Smith 2011-06-18 14:42:54 UTC
(In reply to comment #22)
> The old patch should have worked cleanly as well. I usually prepare my own
> patches that way and have yet to see one fail. The important file which is the
> target of the patch is on the second line.

Weird... maybe I downloaded it strangely.  The one I downloaded did not work, and when I looked at it, it had "latex.ltx.orig" on both the first and second lines.  Sorry for the noise.

Actually, I am able to reproduce this behaviour.
 1. Click the "Diff" link next to the patch in the list of attachments.
 2. Click the "Raw Unified" link that is in the list of links above the patch.
 3. Notice that "latex.ltx.orig" is on both the first and second lines.

Bugzilla bug?  Or am I misunderstanding what "Raw Unified" intends?

(I now see that if I just click on the patch itself, I get the correct file.)
Comment 24 Christian Speckner 2011-06-18 22:29:24 UTC
Ran into the same trap, the patch worked for me too, thanks to Raphael and Duncan. I'd say it's high time for a -r3 or for stabilizing a newer texlive tree ;)
Comment 25 Carter Young 2011-06-19 01:03:43 UTC
CC'ed myself as this is also occurring on cave resolve -ex world/emerge -e world.  Decided to do this b/c removal of KDE prefix flag borked KDE, so why not start fresh??
Comment 26 Rémi 2011-06-20 19:14:16 UTC
I confirm patch from Duncan solved the problem
Comment 27 Carter Young 2011-06-20 20:03:35 UTC
(In reply to comment #26)
> I confirm patch from Duncan solved the problem

While I agree that the patch works(as it now resides in my local overlay), and should be implemented in some form or fashion as a temporary workaround, it defeats the purpose the developers of fmutils had, which is to alert users that newer versions of software maybe available.

I tend to agree with Comment #24, rather than removing the warning from the package we should continue stabilizing 2010, and then stabilize newer versions as the warning reappears.  See the blocker Bug(Bug #355085) and help with those if you can...
Comment 28 Wolfram Kahl 2011-06-20 21:47:52 UTC
In Comment #27, Carter Young wrote:

 > I tend to agree with Comment #24, rather than removing the warning from the
 > package we should continue stabilizing 2010, and then stabilize newer versions
 > as the warning reappears.  See the blocker Bug(Bug #355085) and help with those
 > if you can...

Does anybody have a safe way to test 2010 while being able to restore a working 2008 installation? I guess this would involve at least a long list of packages to pack up as binaries (since they won't re-emerge...), a long package.keywords file, and backing up places like /var/lib/texmf...
Comment 29 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-06-22 06:09:54 UTC
aballier: we need this for infra please. It's failing to build on the GSoC box.
Comment 30 Alexis Ballier gentoo-dev 2011-06-22 11:45:48 UTC
fixed, sorry for the delay... fmtutil in tl2010 seems to ignore this warning so there is no need to forward port it and that explains why i've never been able to reproduce the bug...
Comment 31 Robby Klehm 2011-06-23 09:01:36 UTC
I build dev-texlive/texlive-2008 with USE=X doc* extra* graphics* png truetype.
As a dependency dev-texlive/texlive-formatsextra-2008 is to be build, but
fails with the same issue resolved here for dev-texlive/texlive-latex-2008-r2.

Could some please apply a patch to dev-texlive/texlive-formatsextra-2008 too?
Comment 32 Lars 2011-07-11 21:23:18 UTC
(In reply to comment #20)
> dev-texlive/texlive-xetex-2008-r1 fails for exactly the same reason.

I can confirm this on my x86_64 machine. It happend when I did 

emerge -ave world

I wonder if this will also be fixed? Or should I open another bug for dev-texlive/texlive-xetex-2008-r1?
Comment 33 Randall Wald 2012-01-17 00:17:00 UTC
I'm experiencing this exact same bug, only with the newly-stabilized texlive-latex-2011. That is to say, I had a working system under the 2010 version, but when upgrading to 2011, I ran into this problem. I did not previously have texlive-luatex installed, but luatex itself was present; unmerging and re-emerging it hasn't helped, though. I've also tried upgrading poppler (from 0.16.7 to 0.18.2), to no avail. Should this bug be reopened, or should I file a new one?
Comment 34 Stuart Luppescu 2012-01-17 18:04:43 UTC
(In reply to comment #33)
> I'm experiencing this exact same bug, only with the newly-stabilized
> texlive-latex-2011. That is to say, I had a working system under the 2010
> version, but when upgrading to 2011, I ran into this problem. I did not
> previously have texlive-luatex installed, but luatex itself was present;
> unmerging and re-emerging it hasn't helped, though. I've also tried upgrading
> poppler (from 0.16.7 to 0.18.2), to no avail. Should this bug be reopened, or
> should I file a new one?

As Randall Wald mentioned, this bug (or, another bug with the same results) has re-emerged (no pun intended). I unemerged luatex, emerged texlive-luatex, emerged texlive-latex and got the same failure to build the format. Here's the text of the message:

###############################################################################
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
  /var/tmp/portage/dev-texlive/texlive-latex-2011/work/texmf-var/web2c
for details.
###############################################################################

This is a summary of all `failed' messages:
`pdftex -ini  -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini' failed
`pdftex -ini  -jobname=pdflatex -progname=pdflatex -translate-file=cp227.tcx *pdflatex.ini' failed
 * ERROR: dev-texlive/texlive-latex-2011 failed (compile phase):
 *   failed to build format texmf/fmtutil/format.texlive-latex.cnf

I looked in /var/tmp/portage/dev-texlive/texlive-latex-2011/work/texmf-var/web2c but didn't find any thing marked as errors.
Comment 35 Carter Young 2012-01-17 20:00:38 UTC
(In reply to comment #34)
> (In reply to comment #33)
>###############################################################################
> fmtutil: Error! Not all formats have been built successfully.
> Visit the log files in directory
>   /var/tmp/portage/dev-texlive/texlive-latex-2011/work/texmf-var/web2c
> for details.
> ###############################################################################
> 
> This is a summary of all `failed' messages:
> `pdftex -ini  -jobname=latex -progname=latex -translate-file=cp227.tcx
> *latex.ini' failed
> `pdftex -ini  -jobname=pdflatex -progname=pdflatex -translate-file=cp227.tcx
> *pdflatex.ini' failed
>  * ERROR: dev-texlive/texlive-latex-2011 failed (compile phase):
>  *   failed to build format texmf/fmtutil/format.texlive-latex.cnf
> 
> I looked in
> /var/tmp/portage/dev-texlive/texlive-latex-2011/work/texmf-var/web2c but didn't
> find any thing marked as errors.

Googled for cp227.tcx, and found this post by a fellow gentoo user:
http://forums.gentoo.org/viewtopic-t-896000-view-previous.html?sid=71573ae7d0871fe54347d3f9e27aeb19

Try the fix the posters suggest, and report back here.
Comment 36 Randall Wald 2012-01-17 22:59:25 UTC
(In reply to comment #35)
> 
> Googled for cp227.tcx, and found this post by a fellow gentoo user:
> http://forums.gentoo.org/viewtopic-t-896000-view-previous.html?sid=71573ae7d0871fe54347d3f9e27aeb19
> 
> Try the fix the posters suggest, and report back here.

The fix there (which amounted to "unmerge all of texlive and a couple of auxiliary packages, wipe the /etc/texmf/ directory, and rebuild everything") worked for me. I kept a backup copy of the /etc/texmf/ directory (after having unmerged everything that's supposed to put files there); would looking through it help reveal the underlying cause of this bug?
Comment 37 Carter Young 2012-01-18 17:09:24 UTC
(In reply to comment #36)
> (In reply to comment #35)
>
> Would looking through it help reveal the underlying cause of this bug?


The bug is this:
File: cp227.tcx

belongs to app-text/texlive.  app-text/texlive pulls in as an rdepend app-text/texlive-core.  texlive-core installs the directory /etc/texmf.  /etc/texmf is where texlive-latex looks for job files.

This is complicated by the fact that dev-tex/texlive-latex has no rdepend/depend on app-text/texlive because latex is a subset of tex.

We may be able to talk to the ebuild maintainers about fixing this, but they may have a better reason for not adding the rdepend.