Changes between Version 1 and Version 2 of Ticket #45401, comment 8


Ignore:
Timestamp:
Oct 30, 2014, 11:40:05 AM (3 years ago)
Author:
matteo.tiberti@…
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45401, comment 8

    v1 v2  
    1 - sorry, please delete this
     1Weirdly 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:
     2
     3
     4{{{
     5
     6$ pwd
     7/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/science/pymol
     8
     9$ tail Portfile
     10}
     11
     12post-destroot {}
     13post-destroot {
     14     # file copy ${worksrcpath}/setup/pymol_macports ${destroot}${prefix}/bin/pymol
     15     # file attributes ${destroot}${prefix}/bin/pymol -permissions a+x
     16     foreach d {data modules examples test scripts} {
     17        copy ${worksrcpath}/${d} ${destroot}${python.pkgd}/pymol
     18    }
     19 }
     20
     21$ sudo port clean pymol; sudo port install pymol
     22--->  Cleaning pymol
     23--->  Computing dependencies for pymol
     24--->  Fetching archive for pymol
     25--->  Attempting to fetch pymol-1.7.1.0_0.darwin_14.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/pymol
     26--->  Attempting to fetch pymol-1.7.1.0_0.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/pymol
     27--->  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
     28--->  Fetching distfiles for pymol
     29--->  Verifying checksums for pymol
     30--->  Extracting pymol
     31--->  Applying patches to pymol
     32--->  Configuring pymol
     33--->  Building pymol
     34--->  Staging pymol into destroot
     35Error: 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
     36Please see the log file for port pymol for details:
     37    /opt/local/var/macports/logs/_Users_matteotiberti_devel_ports_science_pymol/pymol/main.log
     38To report a bug, follow the instructions in the guide:
     39    http://guide.macports.org/#project.tickets
     40Error: Processing of port pymol failed
     41}}}
     42
     43
     44Replying to [comment:6 josh.baraban@…]:
     45> 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.:
     46>
     47>
     48> {{{
     49> #     file copy ${worksrcpath}/setup/pymol_macports ${destroot}${prefix}/bin/pymol
     50> #     file attributes ${destroot}${prefix}/bin/pymol -permissions a+x
     51> }}}
     52
     53>
     54> appears to fix the problem.  pymol installs and runs normally, as far as I can tell.