[MacPorts] #39701: root: can't open file '/opt/local/lib/python/genreflex/genreflex.py': [Errno 2] No such file or directory

MacPorts noreply at macports.org
Thu Jul 11 01:40:21 PDT 2013


#39701: root: can't open file '/opt/local/lib/python/genreflex/genreflex.py':
[Errno 2] No such file or directory
----------------------+-----------------------------------
  Reporter:  mojca@…  |      Owner:  mattiafrancescomoro@…
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:  root     |
----------------------+-----------------------------------

Comment (by jonesc@…):

 Looks like the content of the genreflex script has been changed since that
 patch was submitted (that was working at the time).

 {{{
 Chris-Jones-Macbook-Pro ~ > more /opt/local/bin/genreflex
 #!/bin/bash
 if [ "x${ROOTSYS}" = "x" ]; then
     THIS=$(dirname $0)
     ROOTSYS=$(cd ${THIS}/..;pwd); export ROOTSYS
 fi
 python ${ROOTSYS}/lib/genreflex/genreflex.py "$@"
 }}}

 so the lines in the root Portfile

 {{{
 reinplace "s|/opt/local/lib/root|${mypysitedir}|g"
 ${destroot}${prefix}/bin/genreflex
 reinplace "s|python/genreflex/genreflex.py|genreflex/genreflex.py|g"
 ${destroot}${prefix}/bin/genreflex}}}

 are no longer working. Should be relatively easily fixable, but I won't
 have time to do so for a few days. If you need a fix sooner, please be my
 guest to take a look yourself.

 Chris

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


More information about the macports-tickets mailing list