[MacPorts] #45401: Pymol destroot fails
MacPorts
noreply at macports.org
Fri Oct 31 03:07:59 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 matteo.tiberti@…):
Thanks I thought that was pretty strange. I tried selfupdating but nothing
changed (I had also done so before modifying the portfile). Besides, would
you mind attaching your modified Portfile and maybe where it is located in
your file system? So I can test it as well. Thank you
Replying to [comment:9 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:10>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list