[MacPorts] #56866: pstoedit @3.73_1: conflict problems with MacTeX - build failure
MacPorts
noreply at macports.org
Thu Jul 26 12:33:53 UTC 2018
#56866: pstoedit @3.73_1: conflict problems with MacTeX - build failure
----------------------------+----------------------
Reporter: majoc-at-astro | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.3
Keywords: haspatch | Port: pstoedit
----------------------------+----------------------
When MacTeX is prepended to `binpath` (using instructions I can't locate
atm), this causes two related problems to `pstoedit` at build time.
* There's a hard build-time dependency on `texlive-bin-extras` to make
`latex2man` available. MacPorts dutifully installs a full copy of
TexLive,
then uses the copy of `latex2man` in MacTeX. (In our builds, the
redundant
texlive is stripped out at the end of business, but it contributes to
build
time, and may distract other package builds.)
'''Fix:''' use a `bin` dependency on `latex2man`, as attached.
* Whichever `latex2man` is used, it's run with Perl from MacPorts (via the
`!#/usr/bin/env perl` trick), which is stricter about regular expressions
than the system version. The copy of `latex2man` in MacTeX 2017 contains
a
regexp which the newer Perl objects to, and the build of `pstoedit`
fails:
{{{
:info:build latex2man -t ./pstoedit.trans -M pstoedit.tex pstoedit.1
:info:build Unescaped left brace in regex is illegal here in regex;
marked by <-- HERE in m/\\([a-zA-Z]+){([^}]*)}{ <-- HERE ([^}]*)}/ at
/Library/TeX/texbin/latex2man line 1287.
:info:build make[1]: *** [pstoedit.1] Error 255
}}}
'''Fix:''' update to MacTeX 2018.
Please find enclosed the obvious one-line fix to the Portfile, which
avoids the redundant `texlive` installation when `latex2man` is available
via MacTeX.
(Admission: I've not tested the MacTeX-absent case.)
I'm not at all sure whether to use a `note` statement to document the
MacTeX
version compatibility problem and solution, or whether it'd be more
appropriate to trap for this as a precondition; please advise.
System details: macOS 10.11, 10.12, 10.13; latest compatible versions of
Xcode for each.
Thanks in advance. Apologies as usual for formatting problems or other
sins of omission or commission, in particular (in the absence of a
`pstoedit` maintainer) not knowing who to CC this to.
PS: Can someone point me to the documentation for prepending MacTeX to
`binpath`, please? That's the logical location for the compatibility
warning, but my search-engine fu is saying only "foo" today.
--
Ticket URL: <https://trac.macports.org/ticket/56866>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list