Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#58786 closed defect (fixed)

libgpod 0.8.3_1+python27: failed to build: "error renaming "/opt/local/.../libgpod/work/destroot/opt/local/lib/python2.7": no such file or directory"

Reported by: juliangilbey (Julian Gilbey) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: libgpod

Description

I tried building this port, but I'm getting the error message:

error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_libgpod/libgpod/work/destroot/opt/local/lib/python2.7": no such file or directory

This has appeared in previous bug reports, but I do have swig-python installed, so that's not the cause. Hmmm.

The named directory has the following contents:

libgpod.4.dylib libgpod.a libgpod.dylib libgpod.la pkgconfig

There is a python2.7 in destroot, but it's in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_libgpod/libgpod/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib

Note that /opt/local/bin/python2.7 symlinks to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7, so this seems eminently reasonable.

I'm not sure how to solve this strange problem.

Attachments (1)

main.log (366.2 KB) - added by juliangilbey (Julian Gilbey) 5 years ago.
Build log

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by juliangilbey (Julian Gilbey)

Attachment: main.log added

Build log

comment:1 Changed 5 years ago by jmroot (Joshua Root)

The post-destroot block in the Portfile is trying to move the files from ${prefix}/lib/python2.7 to the proper framework location. But it looks like they're already there.

comment:2 Changed 5 years ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 65c8c523930116c03f390191cfe3440e89ac7830/macports-ports (master):

libgpod: remove incorrect post-destroot

This may have been needed in the past, but the files are now apparently
already where they should be, so trying to move them causes the build
to fail.

Fixes: #58786

comment:3 Changed 5 years ago by juliangilbey (Julian Gilbey)

Awesome, thanks!

Note: See TracTickets for help on using tickets.