[MacPorts] #53974: Dvips on macOS 10.12.4 exits with trap 6 building asymptote 2.41 documentation
Andrew L. Moore
slewsys at gmail.com
Mon Apr 24 12:11:46 UTC 2017
On Apr 21, 2017, at 10:48 PM, MacPorts <noreply at macports.org> wrote:
>
> #53974: Dvips on macOS 10.12.4 exits with trap 6 building asymptote 2.41
> documentation
> --------------------------------------+----------------------
> Reporter: slewsys | Owner: drkp
> Type: defect | Status: assigned
> Priority: Normal | Milestone:
> Component: ports | Version:
> Resolution: | Keywords:
> Port: texlive-basic asymptote |
> --------------------------------------+----------------------
>
> Comment (by mojca):
>
> Can you please also attach the dvi files in questions (for example
> `CAD1_.dvi`)?
DVIs have been attached to the ticket. Now please allow me a tangent rant. Or maybe just PDN (Press Delete Now). A cursory comparison of MacPorts and MacTeX dvips configurations already looks problematic.
Here’s a couple of examples. Start by running the two version of `dvips' with debug flag `-d 2’, and diff the output, i.e., (MacPorts /opt/local is a symlink to /opt on my system, and the additional dvips command-line arguments are generated by asymptote):
$ /opt/bin/dvips -d 2 -R -Pdownload35 -D600 -O-128.4bp,522.983bp -T612bp,792bp -tletterSize -oBode_.ps Bode_.dvi >~/macports.OUT 2>&1
$ /Library/TeX/texbin/dvips -d 2 -R -Pdownload35 -D600 -O-128.4bp,522.983bp -T612bp,792bp -tletterSize -oBode_.ps Bode_.dvi >~/mactex.OUT 2>&1
$ diff -u ~/macports.OUT ~/mactex.OUT | head -20
--- /Users/macports/macports.OUT 2017-04-23 17:15:49.000000000 -0400
+++ /Users/macports/mactex.OUT 2017-04-23 17:16:21.000000000 -0400
@@ -1,10 +1,10 @@
kdebug:Search path for cnf files (from compile-time paths.h)
-kdebug: = /opt/etc/texmf
-kdebug: before expansion = /opt/etc/texmf
+kdebug: = /opt/texlive/2016/bin/x86_64-darwin:/opt/texlive/2016/bin/x86_64-darwin/share/texmf-local/web2c:/opt/texlive/2016/bin/x86_64-darwin/share/texmf-dist/web2c:/opt/texlive/2016/bin/x86_64-darwin/share/texmf/web2c:/opt/texlive/2016/bin/x86_64-darwin/texmf-local/web2c:/opt/texlive/2016/bin/x86_64-darwin/texmf-dist/web2c:/opt/texlive/2016/bin/x86_64-darwin/texmf/web2c:/opt/texlive/2016/bin:/opt/texlive/2016/bin/share/texmf-local/web2c:/opt/texlive/2016/bin/share/texmf-dist/web2c:/opt/texlive/2016/bin/share/texmf/web2c:/opt/texlive/2016/bin/texmf-local/web2c:/opt/texlive/2016/bin/texmf-dist/web2c:/opt/texlive/2016/bin/texmf/web2c:/opt/texlive/texmf-local/web2c:/opt/texlive/2016:/opt/texlive/2016/share/texmf-local/web2c:/opt/texlive/2016/share/texmf-dist/web2c:/opt/texlive/2016/share/texmf/web2c:/opt/texlive/2016/texmf-local/web2c:/opt/texlive/2016/texmf-dist/web2c:/opt/texlive/2016/texmf/web2c
+kdebug: before expansion = {$SELFAUTOLOC,$SELFAUTOLOC/share/texmf-local/web2c,$SELFAUTOLOC/share/texmf-dist/web2c,$SELFAUTOLOC/share/texmf/web2c,$SELFAUTOLOC/texmf-local/web2c,$SELFAUTOLOC/texmf-dist/web2c,$SELFAUTOLOC/texmf/web2c,$SELFAUTODIR,$SELFAUTODIR/share/texmf-local/web2c,$SELFAUTODIR/share/texmf-dist/web2c,$SELFAUTODIR/share/texmf/web2c,$SELFAUTODIR/texmf-local/web2c,$SELFAUTODIR/texmf-dist/web2c,$SELFAUTODIR/texmf/web2c,$SELFAUTOGRANDPARENT/texmf-local/web2c,$SELFAUTOPARENT,$SELFAUTOPARENT/share/texmf-local/web2c,$SELFAUTOPARENT/share/texmf-dist/web2c,$SELFAUTOPARENT/share/texmf/web2c,$SELFAUTOPARENT/texmf-local/web2c,$SELFAUTOPARENT/texmf-dist/web2c,$SELFAUTOPARENT/texmf/web2c}
kdebug: application override path = (none)
kdebug: application config file path = (none)
kdebug: texmf.cnf path = (none)
-kdebug: compile-time path = /opt/etc/texmf
+kdebug: compile-time path = {$SELFAUTOLOC,$SELFAUTOLOC/share/texmf-local/web2c,$SELFAUTOLOC/share/texmf-dist/web2c,$SELFAUTOLOC/share/texmf/web2c,$SELFAUTOLOC/texmf-local/web2c,$SELFAUTOLOC/texmf-dist/web2c,$SELFAUTOLOC/texmf/web2c,$SELFAUTODIR,$SELFAUTODIR/share/texmf-local/web2c,$SELFAUTODIR/share/texmf-dist/web2c,$SELFAUTODIR/share/texmf/web2c,$SELFAUTODIR/texmf-local/web2c,$SELFAUTODIR/texmf-dist/web2c,$SELFAUTODIR/texmf/web2c,$SELFAUTOGRANDPARENT/texmf-local/web2c,$SELFAUTOPARENT,$SELFAUTOPARENT/share/texmf-local/web2c,$SELFAUTOPARENT/share/texmf-dist/web2c,$SELFAUTOPARENT/share/texmf/web2c,$SELFAUTOPARENT/texmf-local/web2c,$SELFAUTOPARENT/texmf-dist/web2c,$SELFAUTOPARENT/texmf/web2c}
kdebug: environment variables = TEXMFCNF
kdebug: default suffixes = .cnf
kdebug: other suffixes = (none)
@@ -16,11 +16,11 @@
kdebug: open files in binary mode = 0
kdebug: numeric format value = 8
kdebug:Search path for ls-R files (from texmf.cnf)
The dvips search path in MacPorts is truncated to /opt/etc/texmf/. This isn’t the cause of trap 6 (I don’t think), but it's worrisome.
Second example comes from comparing config.ps files between MacPorts and MacTeX:
$ diff -u /opt/etc/texmf/dvips/config/config.ps /opt/texlive/2016/texmf-dist/dvips/config/config.ps | head
--- /opt/etc/texmf/dvips/config/config.ps 2017-04-23 17:00:29.000000000 -0400
+++ /opt/texlive/2016/texmf-dist/dvips/config/config.ps 2016-07-14 18:33:33.000000000 -0400
@@ -1,4 +1,4 @@
-% $Id: config.ps 24459 2011-11-02 15:13:04Z preining $
+% $Id: config.ps 41704 2016-07-14 22:33:33Z karl $
% config.ps - configuration file for dvips.
% Tomas Rokicki, Thomas Esser, Karl Berry, et al., 1986ff, public domain.
@@ -67,15 +67,6 @@
%
In this case, MacPorts version of config.ps is six years behind that of MacTeX.
Along these lines, it’s unclear to me why MacPorts distribution of TeX Live doesn’t provide a way of syncing sources from CTAN. By analogy, it's like distributing Ruby without gem(1), or Perl without cpan(1). TeX Live provides tlmgr(1), but it appears to have been removed from MacPorts distribution, and I see only traces left of tlmgr documentation in texlive-basic.
None of this helps resolve the immediate question of why dvips is failing, but TeX Live is the product of decades of effort. MacPorts brings to TeX the benefit of a powerful build system. But need the end result diverge so widely from the official (binary) distributions?
-AM
More information about the macports-dev
mailing list