[MacPorts] #45401: Pymol destroot fails

MacPorts noreply at macports.org
Thu Oct 30 09:18:42 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 josh.baraban@…):

 Check the main.log - the destroot stage clearly is still (for some bizarre
 reason) executing those commands.  I don't know if you need to do anything
 after modifying a Portfile to make the changes take effect.  Looking at my
 command history, it doesn't look like I did.

 Your Portfile is different than mine, by the way - I don't have the plain
 post-destroot{} line.  Maybe selfupdate, and then modify the Portfile
 again?

 Replying to [comment:8 matteo.tiberti@…]:
 > Weirdly enough, that doesn't seem to be working for me; I have modified
 the portfile found in
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/science/pymol
 as you suggested:
 >
 >
 > {{{
 >
 > $ pwd
 >
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/science/pymol
 >
 > $ tail Portfile
 > }
 >
 > post-destroot {}
 > post-destroot {
 >      # 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} {
 >         copy ${worksrcpath}/${d} ${destroot}${python.pkgd}/pymol
 >     }
 >  }
 >
 > $ sudo port clean pymol; sudo port install pymol
 > --->  Cleaning pymol
 > --->  Computing dependencies for pymol
 > --->  Fetching archive for pymol
 > --->  Attempting to fetch pymol-1.7.1.0_0.darwin_14.x86_64.tbz2 from
 http://nue.de.packages.macports.org/macports/packages/pymol
 > --->  Attempting to fetch pymol-1.7.1.0_0.darwin_14.x86_64.tbz2 from
 http://lil.fr.packages.macports.org/pymol
 > --->  Attempting to fetch pymol-1.7.1.0_0.darwin_14.x86_64.tbz2 from
 http://mse.uk.packages.macports.org/sites/packages.macports.org/pymol
 > --->  Fetching distfiles for pymol
 > --->  Verifying checksums for pymol
 > --->  Extracting pymol
 > --->  Applying patches to pymol
 > --->  Configuring pymol
 > --->  Building pymol
 > --->  Staging pymol into destroot
 > Error: org.macports.destroot for port pymol returned: error copying
 "/opt/local/var/macports/build/_Users_matteotiberti_devel_ports_science_pymol/pymol/work/pymol/setup/pymol_macports"
 to
 "/opt/local/var/macports/build/_Users_matteotiberti_devel_ports_science_pymol/pymol/work/destroot/opt/local/bin/pymol":
 file already exists
 > Please see the log file for port pymol for details:
 >
 /opt/local/var/macports/logs/_Users_matteotiberti_devel_ports_science_pymol/pymol/main.log
 > To report a bug, follow the instructions in the guide:
 >     http://guide.macports.org/#project.tickets
 > Error: Processing of port pymol failed
 > }}}
 >
 >
 > Replying to [comment:6 josh.baraban@…]:
 > > So, I'm sure this is not an ideal solution, but commenting out the
 first two lines of the destroot section in the Portfile, e.g.:
 > >
 > >
 > > {{{
 > > #     file copy ${worksrcpath}/setup/pymol_macports
 ${destroot}${prefix}/bin/pymol
 > > #     file attributes ${destroot}${prefix}/bin/pymol -permissions a+x
 > > }}}
 > >
 > >
 > > appears to fix the problem.  pymol installs and runs normally, as far
 as I can tell.

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


More information about the macports-tickets mailing list