Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284825 - app-text/ptex uses a timebombed version of LaTeX which has expired
Summary: app-text/ptex uses a timebombed version of LaTeX which has expired
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-13 21:50 UTC by Joe Breuer
Modified: 2009-09-30 14:29 UTC (History)
2 users (show)

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


Attachments
Quick-and-Dirty ptex-ebuild bumped to 20090610 (ptex-3.1.10_p20090610.tar.bz2,13.35 KB, application/octet-stream)
2009-09-16 07:11 UTC, Joe Breuer
Details
patch for ptex-3.1.10_p20090610.ebuild (ptex-3.1.10_p20090610.ebuild.patch.txt,3.81 KB, patch)
2009-09-18 15:28 UTC, hiyuh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Breuer 2009-09-13 21:50:09 UTC
ptex builds on a not-so-new version of teTeX, which in turn uses LaTeX sources from their upstream.

This version lag causes the LaTeX source (LaTeX2e <2003/12/01>) to be older than 65 months now; the underlying original LaTeX distribution is timebombed not to build in this case.

In the current portage tree, there is NO VERSION of ptex which can be built as of now.


Reproducible: Always

Steps to Reproduce:
On an x86 stable system, this wil pull app-text/ptex-3.1.10_p20071203:
1. emerge ptex

When enabling ~x86 for app-text/ptex, ptex-3.1.10_p20080414 will be used, WITH THE SAME RESULTS.
Actual Results:  
Error: `pdfetex -ini  -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini' possibly failed.
fmtutil: /var/tmp/portage/app-text/ptex-3.1.10_p20071203/work/build/usr/share/texmf-var/web2c/latex.fmt installed.

###############################################################################
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
  /var/tmp/portage/app-text/ptex-3.1.10_p20071203/work/build/usr/share/texmf-var/web2c
for details.
###############################################################################

This is a summary of all `failed' messages and warnings:
`pdfetex -ini  -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini' possibly failed.
make: *** [stage6] Error 1
 *
 * ERROR: app-text/ptex-3.1.10_p20071203 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3047:  Called die
 * The specific snippet of code:
 *       emake -j1 babel || die "emake babel failed";


Buried deep within /var/tmp/portage/app-text/ptex-3.1.10_p20071203/work/build/usr/share/texmf-var/web2c/latex.log, one can find:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! 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.540 ...aTeX source files more than 5 years old!}

To avoid this error message, obtain new LaTeX sources.

LaTeX2e <2003/12/01>


Expected Results:  
ptex should have been installed correctly - either by always having a "new enough" version stable, or by disabling the timebomb as part of the ebuild.

Apparently, other people have already run into this bug on a different platform; patch available; see:

http://lists.macosforge.org/pipermail/macports-changes/2009-June/033938.html


The most recent ptex release available from upstream would be 2009-06-10; as this appears to be more than 65 months past 2003-12-01 this version from upstream MIGHT contain the necessary patches to remove the timebomb from the LaTeX sources.

I'll try bumping the ebuild to use this ptex distribution tomorrow and post the results.


For completeness' sake, emerge --info:

Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-i686-Intel-R-_Core-TM-2_Duo_CPU_E8600_@_3.33GHz-with-gentoo-1.12.11.1
Timestamp of tree: Sat, 12 Sep 2009 16:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d /usr/share/X11/xkb"
CXXFLAGS="-march=core2 -O2 -pipe -momit-leaf-frame-pointer"
DISTDIR="/var/portage-distfiles"
EMERGE_DEFAULT_OPTS="--jobs --load-average 6"
FEATURES="buildpkg ccache collision-protect distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.intergenia.de http://pandemonium.tiscali.de/pub/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.ynet.sk/pub"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="--jobs --load-average=6"
PKGDIR="/var/portage-packages/genp4"
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"
PORTDIR_OVERLAY="/usr/local/layman/desktop-effects /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr chardet cjk cli cracklib crypt css cups curl dbus dga dri dts dvd dvdr emboss encode evo exif fam fame fastcgi ffmpeg firefox flac flash fluidsynth foomaticdb gd gdbm gif glitz glut gphoto2 gpm gstreamer gtk gtkhtml hal iconv icu imap imlib innodb ipv6 isdnlog java jce jpeg kde kdehiddenvisibility kerberos lame lcms ldap leim libgda libnotify libsamplerate lm_sensors lzo mad mbox mikmod mjpeg mmx mmxext modplug mono mp3 mp4 mpeg mudflap mule ncurses network network-cron nis nls nptl nptlonly nsplugin nvidia offensive ogg openexr opengl openmp pam pcap pcre pda pdf perl pic plotutils png ppds pppd python qt3 qt3support qt4 quicktime readline reflection rtc samba sasl sdk sdl session shout slang slp sndfile socks5 sound sox spell spl sqlite sse sse2 ssl ssse3 startup-notification subversion svg sysfs tcpd thunar tiff tk truetype trusted unicode usb vim-syntax vorbis webdav win32codecs wma wmf x264 x86 xanim xcb xemacs xiph xml xorg xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ulrich Müller gentoo-dev 2009-09-15 06:53:59 UTC
See bug 282874 comment 4 and 5.
Comment 2 Joe Breuer 2009-09-16 07:11:10 UTC
Created attachment 204288 [details]
Quick-and-Dirty ptex-ebuild bumped to 20090610 

Added a quick-and-dirty ptex-ebuild bumped to 20090610, to allow building it all.

This ebuild works-for-me(TM), it is in no way meant to aspire to gentoo quality standards.

The ptexlive migration (see comment above) is certainly the way to go, but apparently not yet available and I needed to rebuild ptex with a changed USE flag.
Comment 3 hiyuh 2009-09-18 15:28:23 UTC
Created attachment 204522 [details, diff]
patch for ptex-3.1.10_p20090610.ebuild

w/ this patch, ptex-3.1.10_p20090610 also WORKSFORME(tm).
 * Clean up some unuseful crufts were commented out.
 * Update teTeX tarball URI, cam.ctan.org has no teTeX tarball ATM.
 * Avoid pre-striping.
 * Overload LD_LIBRARY_PATH and TEXMFMAIN. w/o this magic, doing emerge ptex on system which has no libkpathsea.so (and something?) will fail.
 * Don't doins psfonts_jp.map and texmf-config/web2c which doesn't exist.
 * Inform updmap and updmap-sys thingy.
Comment 4 MATSUU Takuto (RETIRED) gentoo-dev 2009-09-30 14:29:29 UTC
fixed in cvs. thanks
ptex-3.1.10_p20090610