Opened 19 years ago

Closed 19 years ago

#3123 closed defect (fixed)

teTeX doesn't build

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

Description

Error: Target com.apple.build returned: shell command "cd "/Volumes/Local/DarwinPorts/var/db/ dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/tetex-src-3.0" && make all" returned error 2 Command output: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -g -O2 -c access.c -o access.o gcc -o kpseaccess access.o gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -g -O2 -c readlink.c -o readlink.o gcc -o kpsereadlink readlink.o cp /dev/null sedscript for f in ../kpathsea/paths.h; do \

sed -n -e '/#define/s/#define[ ][ ]*\([A-Z_a-z][A-Z_a-z]*\)[ ][ ]*\(.*\)/s%@\1@%\2%/p'

\

$f \

| sed -e 's/"g' -e 's/[ ]*\/\*[*]*\*\/g' >>sedscript;\

done echo 's%@VERSION@%3.5.4%' >>sedscript echo 's%@BINDIR@%/Volumes/Local/DarwinPorts/var/db/dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/destroot/Volumes/Local/DarwinPorts/bin%' >>sedscript echo 's%@INFODIR@%/Volumes/Local/DarwinPorts/var/db/dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/destroot/Volumes/Local/DarwinPorts/share/info%' >>sedscript echo 's%@TEXINPUTDIR@%/Volumes/Local/DarwinPorts/var/db/dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/destroot/Volumes/Local/DarwinPorts/share/texmf/tex%' >>sedscript echo 's%@MFINPUTDIR@%/Volumes/Local/DarwinPorts/var/db/dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/destroot/Volumes/Local/DarwinPorts/share/texmf/metafont%'>>sedscript echo 's%@MPINPUTDIR@%/Volumes/Local/DarwinPorts/var/db/dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/destroot/Volumes/Local/DarwinPorts/share/texmf/metapost%'>>sedscript echo 's%@FONTDIR@%/Volumes/Local/DarwinPorts/var/db/dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/destroot/Volumes/Local/DarwinPorts/share/texmf/fonts%' >>sedscript echo 's%@FMTDIR@%/Volumes/Local/DarwinPorts/var/db/dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/destroot/Volumes/Local/DarwinPorts/share/texmf/web2c/tex%' >>sedscript echo 's%@BASEDIR@%/Volumes/Local/DarwinPorts/var/db/dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/destroot/Volumes/Local/DarwinPorts/share/texmf/web2c/metafont%'

sedscript

echo 's%@MEMDIR@%/Volumes/Local/DarwinPorts/var/db/dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/destroot/Volumes/Local/DarwinPorts/share/texmf/web2c/metapost%'

sedscript

echo 's%@TEXPOOLDIR@%/Volumes/Local/DarwinPorts/var/db/dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/destroot/Volumes/Local/DarwinPorts/share/texmf/web2c%' >>sedscript echo 's%@MFPOOLDIR@%/Volumes/Local/DarwinPorts/var/db/dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/destroot/Volumes/Local/DarwinPorts/share/texmf/web2c%' >>sedscript echo 's%@MPPOOLDIR@%/Volumes/Local/DarwinPorts/var/db/dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/destroot/Volumes/Local/DarwinPorts/share/texmf/web2c%' >>sedscript echo 's%@FONTMAPDIR@%/Volumes/Local/DarwinPorts/var/db/dports/build/ file._Volumes_Local_DarwinPorts_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports _print_teTeX/work/destroot/Volumes/Local/DarwinPorts/share/texmf/dvips%' >>sedscript echo 's%@LOCALMODES@%%' >>sedscript sed -f sedscript kpseaccess.man >kpseaccess.1 sed: 1: sedscript: extra characters at the end of l command make[2]: * [kpseaccess.1] Error 1 make[1]: * [do-kpathsea] Error 2 make: * [all] Error 1

Change History (7)

comment:1 Changed 19 years ago by gwright@…

Status: newassigned

what is the output of 'which sed'?

/gw

comment:2 Changed 19 years ago by opendarwin@…

See Comment #1 for bug 3125. It doesn't build when Darwin Ports is installed somplace other than /opt/ local (although it *should*).

comment:3 Changed 19 years ago by opendarwin@…

(In reply to comment #1)

what is the output of 'which sed'?

/gw

Install Darwin Ports someplace other than /opt/local (by building from source with ./configure --prefix=/ some/other/directory; make; make install) then instal teTeX for yourself and see.

comment:4 Changed 19 years ago by ronaldoussoren@…

For what it's worth: I have the same problem.

DarwinPorts is installed in /Volumes/Data for me. 'which sed' is /usr/bin/sed and I'm running on 10.4.2.

I noticed that 'sedscript' contains NUL bytes.

Could it be that the long directory name in build is a problem for the script that builds sedscript? In my case this directory is named 'file._Volumes_Data_darwinports_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_ print_teTeX', which is pretty long.

I've just installed gsed, made sure the darwinport directory was at the start of my PATH (which it normally isn't) and then reinstalled teTeX. This solved the problem for me.

comment:5 Changed 19 years ago by gwright@…

Owner: changed from darwinports-bugs@… to gwright@…
Status: assignednew

Hi Ronald,

OK, here seems to be an issue with the system sed. I don't think it is related to the darwinports infrastructure. If there really is a dependency on the location of the DP install tree, I suspect the problem lies in the teTeX configuration scheme, which is trying to be too clever (I wonder if it is assuming that part of the path is the string 'local/').

Thanks for the additional information. I'll have a look at it.

-Greg

comment:6 Changed 19 years ago by gwright@…

Status: newassigned

OK, I have finally discovered the source of the problem. I moved all of DP to another location. TeTeX built fine. I moved DP to yet another location with more subdirectories: /tmp/DarwinPorts/TestVersion/Stuff/dp, and the sed failure occured. The bug is not caused by the directory DP is installed in, rather by some buffer length limitation in sed which is triggered when the path is too long. (Sed has no limitation on the length of the input file, but no such guarantee is made for the pattern space.)

The fix is ugly: make gsed a dependency and patch the makefiles that call sed.

-Greg

comment:7 Changed 19 years ago by gwright@…

Resolution: fixed
Status: assignedclosed

This should be fixed now. In the file where BSD sed's pattern space overflows, gnused is used instead.

-Greg

Note: See TracTickets for help on using tickets.