[MacPorts] #16133: Fix for XeTeX Leopard Build Failure

MacPorts noreply at macports.org
Thu Aug 28 21:17:59 PDT 2008


#16133: Fix for XeTeX Leopard Build Failure
-------------------------------------+--------------------------------------
  Reporter:  kthenriksson at gmail.com  |       Owner:  milosh at macports.org
      Type:  defect                  |      Status:  new                
  Priority:  Normal                  |   Milestone:  Port Bugs          
 Component:  ports                   |     Version:  1.6.0              
Resolution:                          |    Keywords:  texlive xetex      
-------------------------------------+--------------------------------------

Comment(by kthenriksson at gmail.com):

 I don't know what the deal is with this. I reported it and said what was
 the proper fix, but there doesn't seem to be any progress. I'd be happy to
 detail exactly what you need to do to get everything working. Please let
 me know if you run into a problem.

 First, you need to have some kind of command line text editor, like nano,
 vi, emacs, or joe. I use joe, and that's the example I'll use here, but
 you should just substitute the one you want.

 Run:
 {{{
 sudo -s
 export EDITOR=joe
 port edit texlive
 }}}

 Be sure to enter your password after the sudo command. Increment the value
 of revision by one, e.g. 1->2. Go down to the destroot section and add the
 line
 {{{
 ln -s ${prefix}/bin/xetex ${destroot}${prefix}/bin/xelatex
 }}}
 to this section. Save and exit the text editor.

 Now run
 {{{
 port edit texlive_texmf-minimal
 }}}

 Increment the revision by one, then go down to the build section and
 remove the lines
 {{{
 delete ${worksrcpath}/texmf-dist/tex/latex/latexconfig/xelatex.ini
 delete ${worksrcpath}/texmf-dist/tex/plain/config/xetex.ini
 }}}
 from the file. These should be the second and third lines. Save and exit
 the text editor. Like before, run `port edit texlive_texmf-full` and
 remove the lines
 {{{
 delete ${worksrcpath}/texmf/fmtutil/format.xetex.cnf
 delete ${worksrcpath}/texmf-dist/tex/generic/xetexconfig
 delete ${worksrcpath}/texmf-dist/tex/xelatex/xetexconfig
 delete ${worksrcpath}/texmf-dist/tex/xelatex/xetexurl
 }}}
 from the file. These should be all but the first lines. Also, increment
 the revision by one. Save and exit again. Now run `port edit texlive_base`
 and increment the revision by one again. Then go down to the post-destroot
 section. Remove the line
 {{{
 reinplace "s|.*xetex.*||"
 ${destroot}${prefix}/share/texmf/web2c/fmtutil.cnf
 }}}
 and save and quit.

 Now run `port extract texlive_base` and wait for everything to finish
 executing so you get dropped back to the command line. Now copy and paste
 the command (as one long line)

 '''joe
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007/libs
 /icu-xetex/config/mh-darwin'''

 and go down to a line that says Dependency rules, which is about 60 lines
 down. Just a little below you'll see a couple lines that say "@echo -n
 ..." where I've substituted the end of the lines with ... just for the
 purpose of this explanation. Replace both instances of "echo -n" with
 "/bin/echo -n" and leave everything else alone. Save and exit again.

 Now as the very final step, run `port install texlive` and you should get
 everything installing properly. Now you should be all set to use `xetex`.

-- 
Ticket URL: <http://trac.macports.org/ticket/16133#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list