Opened 21 years ago

Closed 21 years ago

Last modified 19 years ago

#379 closed defect (fixed)

teTeX fails on install

Reported by: stewartsmith@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: fkr@…
Port:

Description

using the following portfile (slightly different from that in CVS, tried to get this going by changing a path...):

# $Id: Portfile,v 1.11 2003/03/03 07:12:26 mij Exp $

PortSystem 1.0 name teTeX version 3.14159 categories print textproc description TeX and METAFONT long_description teTeX is a TeX distribution for UNIX compatible \

systems. It contains the latest versions of TeX & \ friends and nearly everything you need for happy \ TeX'ing. For more information have a look at \ the lengthy FEATURES file of the distribution.

platforms darwin maintainers landonf@… depends_lib lib:libpng.3:libpng lib:libwwwcore.0:libwww

set tetex_src teTeX-src-1.0.7.tar.gz set tetex_texmf teTeX-texmf-1.0.2.tar.gz set tetex_texmftree ${destroot}/${prefix}/share/texmf

master_sites ftp://wuarchive.wustl.edu/packages/TeX/systems/unix/teTeX/1.0/distrib/sources/ \

ftp://ftp.funet.fi/pub/TeX/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \ ftp://ctan.unsw.edu.au/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \ ftp://ftp.cise.ufl.edu/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \ ftp://ftp.tex.ac.uk/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \ ftp://ftp.kddlabs.co.jp/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \ ftp://sunsite.auc.dk/pub/tex/ctan/systems/unix/teTeX/1.0/distrib/sources/ \ ftp://ctan.tug.org/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \ ftp://ftp.dante.de/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \ ftp://ftp.dnsbalance.ring.gr.jp/pub/text/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \ http://www.dnsbalance.ring.gr.jp/archives/text/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \ ftp://ftp.chg.ru/pub/TeX/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \ http://distfiles.opendarwin.org/:lt

dist_subdir teTeX distfiles ${tetex_src} ${tetex_texmf} ltconfig13:lt ltmain13:lt checksums ${tetex_src} md5 2c6da2a45096c2fdc41b8de6a8af1a52 \

${tetex_texmf} md5 7811ed356cca07b16ea8422f00c3cd34 \ ltconfig13 md5 ea53f42a550c9f9e653758a8ed91574e \ ltmain13 md5 e094ae92724c4015dbab97de151c2525

extract.only ${tetex_src} worksrcdir teTeX-1.0

patchfiles patch-autoconf

post-patch { system "cp ${distpath}/ltconfig13 ${worksrcpath}/config/ltconfig"

system "cp ${distpath}/ltmain13 ${worksrcpath}/config/ltmain.sh"

}

configure.type gnu configure.args --disable-multiplatform --without-texinfo --without-dialog \

--with-system-ncurses --with-system-zlib --with-system-wwwlib \ --with-libwww-libdir=${prefix}/lib \ --with-libwww-include=${prefix}/include/w3c-libwww \ --with-system-pnglib --with-pnglib-libdir=${prefix}/lib \ --with-pnglib-include=${prefix}/include

# Apple gcc3 bug configure.env CXXFLAGS=-fno-rtti CPPFLAGS=-no-cpp-precomp

pre-install { file mkdir ${tetex_texmftree}; cd ${tetex_texmftree}

system "tar xfz ${distpath}/${tetex_texmf}"

}

post-install {

# ranlib static library to keep darwin happy system "ranlib ${destroot}/${prefix}/lib/libkpathsea.a" # Modify mktex.opt to force use of varfonts reinplace s|MT_FEATURES=appendonlydir|MT_FEATURES=appendonlydir:varfonts|g' ${destroot}/${prefix}/share/texmf/web2c/mktex.opt # Rename 'dialog' to 'tcdialog' file move ${destroot}/${prefix}/man1/dialog.1 ${destroot}/${prefix}/man1/tcdialog.1 file move ${destroot}/${prefix}/bin/dialog ${destroot}/${prefix}/bin/tcdialog

# Create a local texmf tree file mkdir ${destroot}/${prefix}/share/texmf.local/web2c

# Create the texmf.macosx tree file mkdir ${destroot}/${prefix}/share/texmf.macosx/web2c

}

install.target install strip install.destroot prefix=${destroot}/${prefix}/ texmf=${tetex_texmftree}


in install phase, the end of it is like:

test -f /darwinports/dports/print/teTeX/work/destrootopt/localbin/texconfig && \

TEXMFMAIN=/darwinports/dports/print/teTeX/work/destrootopt/local/share/texmf PATH=/darwinports/dports/print/teTeX/work/destrootopt/localbin:/darwinports/dports/print/teTeX/work/destroot//opt/local//bin:/usr/bin:/bin:/sbin:/usr/bin:/usr/sbin:/Developer/Tools/:/opt/local/bin:/usr/local/bin:/opt/local/bin \

/darwinports/dports/print/teTeX/work/destrootopt/localbin/texconfig init

Error: kpsewhich cannot find file fmtutil.cnf make: * [install] Error 1 Error: Target com.apple.install returned: shell command "cd /darwinports/dports/print/teTeX/work/teTeX-1.0 && make install strip prefix=/darwinports/dports/print/teTeX/work/destrootopt/local/ texmf=/darwinports/dports/print/teTeX/work/destrootopt/local/share/texmf" returned error 2 Warning: the following items did not execute (for teTeX): com.apple.install

Change History (4)

comment:1 Changed 21 years ago by drm@…

Owner: changed from kevin@… to landonf@…

I mentioned the cause of this on the mailing list a while back: some packages (andteTeX is a prime example) need some post-installation work done after the packageis in its final location.This problem did not show up until the $destroot strategy was implemented.dports badly needs the ability to execute a script after the packaged softwarehas been installed. Once that capability is in place, I'll be happy to help fixteTeX (and even upgrade it to 2.0, which is also needed).I'm taking the liberty of reassigning this bug to the teTeX maintainer, landonf.

comment:2 Changed 21 years ago by fkr@…

Cc: fkr@… added
Owner: changed from landonf@… to gwright@…

re-assigning to gregory, since he is (afaik) working on an update to the tetex port. -fkr

comment:3 Changed 21 years ago by gwright@…

Yes, my update to 2.0.2 is almost ready. It builds, installs but needs to do some post-installation stuff. (If I do the post-installation stuff by hand it runs fine---I've used it on a paper that I'm writing.)

Aiming to commit the new port file later this week.

/gw

comment:4 Changed 21 years ago by gwright@…

Resolution: fixed
Status: newclosed

The just released update to 2.0.2 closes this issue. /gw

Note: See TracTickets for help on using tickets.