[MacPorts] #44220: latexml fails in ACTIVATION step. "mktexlsr not found"

MacPorts noreply at macports.org
Thu Jul 3 03:49:24 PDT 2014


#44220: latexml fails in ACTIVATION step.  "mktexlsr not found"
------------------------------+----------------------------
  Reporter:  damon.english@…  |      Owner:  bruce.miller@…
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.3.1
Resolution:                   |   Keywords:
      Port:  LaTeXML          |
------------------------------+----------------------------

Comment (by bruce.miller@…):

 It appears that I have (at least) 2 problems in my Portfile, in trying to
 deal with installing LaTeXML-specific LaTeX style files into whatever TeX
 installation is present (it wants to find 2 commands: kpsewhich and
 mktexlsr). Presumably it works fine if MacPort's texlive is installed (?
 not yet tested separately).
 However it fails to detect MacTeX's presence: On my system, MacTeX's
 binaries ended up in {{{/usr/texbin/}}}, which MacTeX has pushed onto
 {{{$PATH}}}.

 I just now see the documentation on {{{binpath}}}, that the {{{$PATH}}}
 being used within port is restricted,
 but it is recommended not to mess with it.  Is there a legitimate way to
 use the user's {{{$PATH}}}?
 (it wouldn't be very maintainable to explicitly add {{{/usr/texbin/}}},
 since that assumes
 MacTeX with its default installation).

 The second problem is the last line of the Portfile:
 {{{
    post-activate { system "mktexlsr" }
 }}}
 That needs to run ''after'' the real (not staged) installation, to freshen
 TeX's database
 of installed style files so that it sees LaTeXML's new files. However, it
 really should be "soft" because we don't know whether there really ''is''
 a mktexlsr available.  Would it be safe to simply recode that as:
 {{{
    post-activate { system "which mktexlsr && mktexlsr" }
 }}}
 or is there a better way?

 Thanks for any help...

-- 
Ticket URL: <https://trac.macports.org/ticket/44220#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list