[MacPorts] #45401: Pymol destroot fails

MacPorts noreply at macports.org
Fri Oct 31 13:32:27 PDT 2014


#45401: Pymol destroot fails
-----------------------------+-----------------------
  Reporter:  josh.baraban@…  |      Owner:  howarth@…
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.3.1
Resolution:                  |   Keywords:
      Port:  pymol           |
-----------------------------+-----------------------

Comment (by jhowarth@…):

 For some reason port has regressed such that when it begins to execute the
 post-destroot the following symlink has already been errorenously
 created...

 % ls -l
 "/opt/local/var/macports/build/_Users_howarth_ports_science_pymol/pymol/work/destroot/opt/local/bin/pymol"
 lrwxr-xr-x  1 root  admin  69 Oct 31 16:02
 /opt/local/var/macports/build/_Users_howarth_ports_science_pymol/pymol/work/destroot/opt/local/bin/pymol
 -> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pymol

 So apply the ugly hack below will purge it until we discover why port is
 misbehaving.

 {{{
 --- Portfile.orig       2014-10-31 16:25:18.000000000 -0400
 +++ Portfile    2014-10-31 16:05:58.000000000 -0400
 @@ -7,7 +7,7 @@

  name                pymol
  version             1.7.1.1
 -revision            1
 +revision            2
  categories          science chemistry
  license             GPL
  maintainers         bromo.med.uc.edu:howarth
 @@ -103,6 +103,7 @@
  }

  post-destroot {
 +     file delete ${destroot}${prefix}/bin/pymol
       file copy ${worksrcpath}/setup/pymol_macports
 ${destroot}${prefix}/bin/pymol
       file attributes ${destroot}${prefix}/bin/pymol -permissions a+x
       foreach d {data modules examples test scripts} {

 }}}

 Of course, the most annoying bug of all in pymol is how utterly useless
 the "require_active_variants" field is.
 From a  clean install of MacPorts on Yosemite, with the first install
 being "sudo port -d install pymol", port
 totally ignores the lines...

 require_active_variants tcl "" corefoundation

 require_active_variants tk "" quartz

 which should be preselecting the appropriate tcl and tk variants. You have
 to manually execute...

 sudo port -d install tcl -corefoundation

 sudo port -d install tk -quartz


 to unbreak the installed pymol.

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


More information about the macports-tickets mailing list